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)
 
 ~VideoVisualSpectrum () override
 
void Draw (QRect Area, MythPainter *Painter, QPaintDevice *Device) override
 
QString Name () override
 
void prepare () override
 
- Public Member Functions inherited from VideoVisual
 VideoVisual (AudioPlayer *audio, MythRender *render)
 
 ~VideoVisual () override
 
bool NeedsPrepare () const
 
virtual void Prepare (const QRect)
 
void add (const void *b, unsigned long b_len, std::chrono::milliseconds timecode, int c, int p) override
 
- Public Member Functions inherited from MythTV::Visual
 Visual ()
 
virtual ~Visual ()
 
QMutex * mutex ()
 

Protected Member Functions

virtual bool Initialise (QRect Area)
 
virtual bool InitialisePriv ()
 
virtual void DrawPriv (MythPainter *Painter, QPaintDevice *Device)
 
- Protected Member Functions inherited from VideoVisual
VisualNodeGetNode (void)
 
void DeleteNodes (void)
 
std::chrono::milliseconds 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_needsPrepare { false }
 
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 VideoVisualCreate (const QString &name, AudioPlayer *audio, MythRender *render)
 
static QStringList GetVisualiserList (RenderType type)
 

Detailed Description

Definition at line 9 of file videovisualspectrum.h.

Constructor & Destructor Documentation

◆ VideoVisualSpectrum()

VideoVisualSpectrum::VideoVisualSpectrum ( AudioPlayer Audio,
MythRender Render 
)

Definition at line 16 of file videovisualspectrum.cpp.

◆ ~VideoVisualSpectrum()

VideoVisualSpectrum::~VideoVisualSpectrum ( )
override

Definition at line 28 of file videovisualspectrum.cpp.

Member Function Documentation

◆ Draw()

void VideoVisualSpectrum::Draw ( QRect  Area,
MythPainter Painter,
QPaintDevice *  Device 
)
overridevirtual

Implements VideoVisual.

Definition at line 40 of file videovisualspectrum.cpp.

◆ Name()

QString VideoVisualSpectrum::Name ( )
inlineoverridevirtual

Implements VideoVisual.

Definition at line 16 of file videovisualspectrum.h.

◆ prepare()

void VideoVisualSpectrum::prepare ( )
overridevirtual

Reimplemented from VideoVisual.

Definition at line 117 of file videovisualspectrum.cpp.

◆ Initialise()

bool VideoVisualSpectrum::Initialise ( QRect  Area)
protectedvirtual

Definition at line 140 of file videovisualspectrum.cpp.

Referenced by Draw().

◆ InitialisePriv()

bool VideoVisualSpectrum::InitialisePriv ( )
protectedvirtual

Reimplemented in VideoVisualCircles.

Definition at line 157 of file videovisualspectrum.cpp.

Referenced by Initialise().

◆ DrawPriv()

void VideoVisualSpectrum::DrawPriv ( MythPainter Painter,
QPaintDevice *  Device 
)
protectedvirtual

Reimplemented in VideoVisualCircles, and MythVisualCirclesVulkan.

Definition at line 123 of file videovisualspectrum.cpp.

Referenced by Draw().

Member Data Documentation

◆ m_numSamples

int VideoVisualSpectrum::m_numSamples { 64 }
protected

Definition at line 24 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 28 of file videovisualspectrum.h.

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

◆ m_falloff

double VideoVisualSpectrum::m_falloff { 3.0 }
protected

Definition at line 29 of file videovisualspectrum.h.

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

◆ m_lplan

fftw_plan VideoVisualSpectrum::m_lplan
protected

Definition at line 31 of file videovisualspectrum.h.

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

◆ m_rplan

fftw_plan VideoVisualSpectrum::m_rplan
protected

Definition at line 32 of file videovisualspectrum.h.

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

◆ m_lin

myth_fftw_float* VideoVisualSpectrum::m_lin { nullptr }
protected

Definition at line 33 of file videovisualspectrum.h.

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

◆ m_rin

myth_fftw_float* VideoVisualSpectrum::m_rin { nullptr }
protected

Definition at line 34 of file videovisualspectrum.h.

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

◆ m_lout

myth_fftw_complex* VideoVisualSpectrum::m_lout { nullptr }
protected

Definition at line 35 of file videovisualspectrum.h.

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

◆ m_rout

myth_fftw_complex* VideoVisualSpectrum::m_rout { nullptr }
protected

Definition at line 36 of file videovisualspectrum.h.

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

◆ m_rects

QVector<QRect> VideoVisualSpectrum::m_rects
private

Definition at line 39 of file videovisualspectrum.h.

Referenced by DrawPriv(), and InitialisePriv().

◆ m_barWidth

int VideoVisualSpectrum::m_barWidth { 1 }
private

Definition at line 40 of file videovisualspectrum.h.

Referenced by Initialise(), and InitialisePriv().


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