MythTV  master
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VideoVisual Class Referenceabstract

#include <videovisual.h>

Inheritance diagram for VideoVisual:
Inheritance graph
Collaboration diagram for VideoVisual:
Collaboration graph

Public Member Functions

 VideoVisual (AudioPlayer *audio, MythRender *render)
 ~VideoVisual () override
bool NeedsPrepare () const
virtual void Prepare (const QRect)
virtual void Draw (QRect area, MythPainter *painter, QPaintDevice *device)=0
virtual QString Name (void)=0
void add (const void *b, unsigned long b_len, std::chrono::milliseconds timecode, int c, int p) override
void prepare () override
- Public Member Functions inherited from MythTV::Visual
 Visual ()
virtual ~Visual ()
QMutex * mutex ()

Static Public Member Functions

static VideoVisualCreate (const QString &name, AudioPlayer *audio, MythRender *render)
static QStringList GetVisualiserList (RenderType type)

Protected Member Functions

VisualNodeGetNode (void)
void DeleteNodes (void)
std::chrono::milliseconds SetLastUpdate (void)

Protected Attributes

AudioPlayerm_audio { nullptr }
bool m_needsPrepare { false }
bool m_disabled { false }
QRect m_area
MythRenderm_render { nullptr }
QList< VisualNode * > m_nodes
QDateTime m_lastUpdate

Detailed Description

Definition at line 43 of file videovisual.h.

Constructor & Destructor Documentation

◆ VideoVisual()

VideoVisual::VideoVisual ( AudioPlayer audio,
MythRender render 

Definition at line 37 of file videovisual.cpp.

◆ ~VideoVisual()

VideoVisual::~VideoVisual ( )

Definition at line 48 of file videovisual.cpp.

Member Function Documentation

◆ Create()

VideoVisual * VideoVisual::Create ( const QString &  name,
AudioPlayer audio,
MythRender render 

Definition at line 20 of file videovisual.cpp.

Referenced by Create(), and MythPlayerVisualiserUI::EnableVisualiser().

◆ GetVisualiserList()

QStringList VideoVisual::GetVisualiserList ( RenderType  type)

Definition at line 7 of file videovisual.cpp.

Referenced by MythPlayerVisualiserUI::MythPlayerVisualiserUI(), and Visualiser().

◆ NeedsPrepare()

bool VideoVisual::NeedsPrepare ( ) const

Definition at line 53 of file videovisual.h.

Referenced by MythPlayerVisualiserUI::PrepareVisualiser().

◆ Prepare()

virtual void VideoVisual::Prepare ( const  QRect)

Reimplemented in MythVisualMonoScopeVulkan.

Definition at line 54 of file videovisual.h.

Referenced by MythPlayerVisualiserUI::PrepareVisualiser().

◆ Draw()

virtual void VideoVisual::Draw ( QRect  area,
MythPainter painter,
QPaintDevice *  device 
pure virtual

◆ Name()

virtual QString VideoVisual::Name ( void  )
pure virtual

◆ add()

void VideoVisual::add ( const void *  b,
unsigned long  b_len,
std::chrono::milliseconds  timecode,
int  c,
int  p 

Implements MythTV::Visual.

Definition at line 121 of file videovisual.cpp.

◆ prepare()

void VideoVisual::prepare ( )

Implements MythTV::Visual.

Reimplemented in VideoVisualSpectrum.

Definition at line 76 of file videovisual.cpp.

Referenced by VideoVisualSpectrum::prepare().

◆ GetNode()

VisualNode * VideoVisual::GetNode ( void  )

◆ DeleteNodes()

void VideoVisual::DeleteNodes ( void  )

Definition at line 66 of file videovisual.cpp.

Referenced by add(), prepare(), and ~VideoVisual().

◆ SetLastUpdate()

std::chrono::milliseconds VideoVisual::SetLastUpdate ( void  )

Definition at line 57 of file videovisual.cpp.

Referenced by VideoVisualSpectrum::Draw().

Member Data Documentation

◆ m_audio

AudioPlayer* VideoVisual::m_audio { nullptr }

Definition at line 69 of file videovisual.h.

Referenced by GetNode(), VideoVisual(), and ~VideoVisual().

◆ m_needsPrepare

bool VideoVisual::m_needsPrepare { false }

Definition at line 70 of file videovisual.h.

◆ m_disabled

bool VideoVisual::m_disabled { false }

◆ m_area

QRect VideoVisual::m_area

◆ m_render

MythRender* VideoVisual::m_render { nullptr }

◆ m_nodes

QList<VisualNode*> VideoVisual::m_nodes

Definition at line 74 of file videovisual.h.

Referenced by add(), DeleteNodes(), and GetNode().

◆ m_lastUpdate

QDateTime VideoVisual::m_lastUpdate

Definition at line 75 of file videovisual.h.

Referenced by SetLastUpdate().

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