MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
VideoVisualSpectrum Class Reference

#include <videovisualspectrum.h>

Inheritance diagram for VideoVisualSpectrum:
Inheritance graph
[legend]
Collaboration diagram for VideoVisualSpectrum:
Collaboration graph
[legend]

Public Member Functions

 VideoVisualSpectrum (AudioPlayer *audio, MythRender *render)
 
virtual ~VideoVisualSpectrum ()
 
void Draw (const QRect &area, MythPainter *painter, QPaintDevice *device) override
 
QString Name (void) override
 
void prepare () override
 
- Public Member Functions inherited from VideoVisual
 VideoVisual (AudioPlayer *audio, MythRender *render)
 
 ~VideoVisual ()
 
void add (const void *b, unsigned long b_len, unsigned long w, int c, int p) override
 
- Public Member Functions inherited from MythTV::Visual
 Visual ()
 
virtual ~Visual ()
 
QMutex * mutex ()
 

Protected Member Functions

virtual bool Initialise (const QRect &area)
 
virtual bool InitialisePriv (void)
 
virtual void DrawPriv (MythPainter *painter, QPaintDevice *device)
 
- Protected Member Functions inherited from VideoVisual
VisualNodeGetNode (void)
 
void DeleteNodes (void)
 
int64_t SetLastUpdate (void)
 

Protected Attributes

int m_numSamples {64}
 
QVector< double > m_magnitudes
 
double m_range {1.0}
 
LogScale m_scale
 
double m_scaleFactor {2.0}
 
double m_falloff {3.0}
 
fftw_plan m_lplan
 
fftw_plan m_rplan
 
myth_fftw_float * m_lin {nullptr}
 
myth_fftw_float * m_rin {nullptr}
 
myth_fftw_complex * m_lout {nullptr}
 
myth_fftw_complex * m_rout {nullptr}
 
- Protected Attributes inherited from VideoVisual
AudioPlayerm_audio {nullptr}
 
bool m_disabled {false}
 
QRect m_area
 
MythRenderm_render {nullptr}
 
QList< VisualNode * > m_nodes
 
QDateTime m_lastUpdate
 

Private Attributes

QVector< QRect > m_rects
 
int m_barWidth {1}
 

Additional Inherited Members

- Static Public Member Functions inherited from VideoVisual
static bool CanVisualise (AudioPlayer *audio, MythRender *render)
 
static VideoVisualCreate (const QString &name, AudioPlayer *audio, MythRender *render)
 
static QStringList GetVisualiserList (RenderType type)
 

Detailed Description

Definition at line 7 of file videovisualspectrum.h.

Constructor & Destructor Documentation

◆ VideoVisualSpectrum()

VideoVisualSpectrum::VideoVisualSpectrum ( AudioPlayer audio,
MythRender render 
)

Definition at line 11 of file videovisualspectrum.cpp.

◆ ~VideoVisualSpectrum()

VideoVisualSpectrum::~VideoVisualSpectrum ( )
virtual

Definition at line 25 of file videovisualspectrum.cpp.

Member Function Documentation

◆ Draw()

void VideoVisualSpectrum::Draw ( const QRect &  area,
MythPainter painter,
QPaintDevice *  device 
)
overridevirtual

Implements VideoVisual.

Definition at line 41 of file videovisualspectrum.cpp.

◆ Name()

QString VideoVisualSpectrum::Name ( void  )
inlineoverridevirtual

Implements VideoVisual.

Definition at line 15 of file videovisualspectrum.h.

◆ prepare()

void VideoVisualSpectrum::prepare ( void  )
overridevirtual

Reimplemented from VideoVisual.

Definition at line 129 of file videovisualspectrum.cpp.

◆ Initialise()

bool VideoVisualSpectrum::Initialise ( const QRect &  area)
protectedvirtual

Definition at line 153 of file videovisualspectrum.cpp.

Referenced by Draw().

◆ InitialisePriv()

bool VideoVisualSpectrum::InitialisePriv ( void  )
protectedvirtual

Reimplemented in VideoVisualCircles.

Definition at line 172 of file videovisualspectrum.cpp.

Referenced by Initialise().

◆ DrawPriv()

void VideoVisualSpectrum::DrawPriv ( MythPainter painter,
QPaintDevice *  device 
)
protectedvirtual

Reimplemented in VideoVisualCircles.

Definition at line 136 of file videovisualspectrum.cpp.

Referenced by Draw().

Member Data Documentation

◆ m_numSamples

int VideoVisualSpectrum::m_numSamples {64}
protected

Definition at line 23 of file videovisualspectrum.h.

Referenced by Initialise(), and VideoVisualCircles::VideoVisualCircles().

◆ m_magnitudes

QVector<double> VideoVisualSpectrum::m_magnitudes
protected

◆ m_range

double VideoVisualSpectrum::m_range {1.0}
protected

◆ m_scale

LogScale VideoVisualSpectrum::m_scale
protected

◆ m_scaleFactor

double VideoVisualSpectrum::m_scaleFactor {2.0}
protected

Definition at line 27 of file videovisualspectrum.h.

Referenced by Draw(), VideoVisualCircles::InitialisePriv(), and InitialisePriv().

◆ m_falloff

double VideoVisualSpectrum::m_falloff {3.0}
protected

Definition at line 28 of file videovisualspectrum.h.

Referenced by Draw(), VideoVisualCircles::InitialisePriv(), and InitialisePriv().

◆ m_lplan

fftw_plan VideoVisualSpectrum::m_lplan
protected

Definition at line 30 of file videovisualspectrum.h.

Referenced by Draw(), VideoVisualSpectrum(), and ~VideoVisualSpectrum().

◆ m_rplan

fftw_plan VideoVisualSpectrum::m_rplan
protected

Definition at line 31 of file videovisualspectrum.h.

Referenced by Draw(), VideoVisualSpectrum(), and ~VideoVisualSpectrum().

◆ m_lin

myth_fftw_float* VideoVisualSpectrum::m_lin {nullptr}
protected

Definition at line 32 of file videovisualspectrum.h.

Referenced by Draw(), VideoVisualSpectrum(), and ~VideoVisualSpectrum().

◆ m_rin

myth_fftw_float* VideoVisualSpectrum::m_rin {nullptr}
protected

Definition at line 33 of file videovisualspectrum.h.

Referenced by Draw(), VideoVisualSpectrum(), and ~VideoVisualSpectrum().

◆ m_lout

myth_fftw_complex* VideoVisualSpectrum::m_lout {nullptr}
protected

Definition at line 34 of file videovisualspectrum.h.

Referenced by Draw(), VideoVisualSpectrum(), and ~VideoVisualSpectrum().

◆ m_rout

myth_fftw_complex* VideoVisualSpectrum::m_rout {nullptr}
protected

Definition at line 35 of file videovisualspectrum.h.

Referenced by Draw(), VideoVisualSpectrum(), and ~VideoVisualSpectrum().

◆ m_rects

QVector<QRect> VideoVisualSpectrum::m_rects
private

Definition at line 38 of file videovisualspectrum.h.

Referenced by DrawPriv(), and InitialisePriv().

◆ m_barWidth

int VideoVisualSpectrum::m_barWidth {1}
private

Definition at line 39 of file videovisualspectrum.h.

Referenced by Initialise(), and InitialisePriv().


The documentation for this class was generated from the following files: