MythTV  master
Public Member Functions | Protected Types | Protected Attributes | List of all members
MHVideo Class Reference

#include <libmythfreemheg/Stream.h>

Inheritance diagram for MHVideo:
[legend]
Collaboration diagram for MHVideo:
[legend]

Public Member Functions

 MHVideo ()=default
 
const char * ClassName () override
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *fd, int nTabs) const override
 
void Preparation (MHEngine *engine) override
 
void ContentPreparation (MHEngine *engine) override
 
void Activation (MHEngine *engine) override
 
void Deactivation (MHEngine *engine) override
 
void Display (MHEngine *engine) override
 
QRegion GetVisibleArea () override
 
QRegion GetOpaqueArea () override
 
void ScaleVideo (int xScale, int yScale, MHEngine *engine) override
 
void SetVideoDecodeOffset (int newXOffset, int newYOffset, MHEngine *engine) override
 
void GetVideoDecodeOffset (MHRoot *pXOffset, MHRoot *pYOffset, MHEngine *engine) override
 
void BeginPlaying (MHEngine *engine) override
 
void StopPlaying (MHEngine *engine) override
 
- Public Member Functions inherited from MHVisible
 MHVisible ()=default
 
 MHVisible (const MHVisible &ref)
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *fd, int nTabs) const override
 
void Preparation (MHEngine *engine) override
 
void Destruction (MHEngine *engine) override
 
void Activation (MHEngine *engine) override
 
void Deactivation (MHEngine *engine) override
 
void SetPosition (int nXPosition, int nYPosition, MHEngine *engine) override
 
void GetPosition (MHRoot *pXPosN, MHRoot *pYPosN) override
 
void SetBoxSize (int nWidth, int nHeight, MHEngine *engine) override
 
void GetBoxSize (MHRoot *pWidthDest, MHRoot *pHeightDest) override
 
void SetPaletteRef (const MHObjectRef &newPalette, MHEngine *engine) override
 
void BringToFront (MHEngine *engine) override
 
void SendToBack (MHEngine *engine) override
 
void PutBefore (const MHRoot *pRef, MHEngine *engine) override
 
void PutBehind (const MHRoot *pRef, MHEngine *engine) override
 
void ResetPosition () override
 
- Public Member Functions inherited from MHPresentable
 MHPresentable ()=default
 
 MHPresentable (const MHPresentable &)=default
 
void Run (MHEngine *engine) override
 
void Stop (MHEngine *engine) override
 
- Public Member Functions inherited from MHIngredient
 MHIngredient ()=default
 
 MHIngredient (const MHIngredient &ref)
 
 ~MHIngredient () override=default
 
virtual bool InitiallyActive ()
 
virtual bool InitiallyAvailable ()
 
bool IsShared () override
 
void SetData (const MHOctetString &included, MHEngine *engine) override
 
void SetData (const MHContentRef &referenced, bool fSizeGiven, int size, bool fCCGiven, int cc, MHEngine *engine) override
 
void Preload (MHEngine *engine) override
 
void Unload (MHEngine *engine) override
 
virtual void ContentArrived (const unsigned char *, int, MHEngine *)
 
- Public Member Functions inherited from MHRoot
 MHRoot ()=default
 
 MHRoot (const MHRoot &)
 
virtual ~MHRoot ()=default
 
virtual MHRootFindByObjectNo (int n)
 
virtual bool GetAvailabilityStatus ()
 
virtual bool GetRunningStatus ()
 
virtual void SetTimer (int, bool, int, MHEngine *)
 
virtual void MakeClone (MHRoot *, MHRoot *, MHEngine *)
 
virtual void SetInputRegister (int, MHEngine *)
 
virtual MHIngredientClone (MHEngine *)
 
virtual void TestVariable (int, const MHUnion &, MHEngine *)
 
virtual void GetVariableValue (MHUnion &, MHEngine *)
 
virtual void SetVariableValue (const MHUnion &)
 
virtual void GetTextData (MHRoot *, MHEngine *)
 
virtual void SetBackgroundColour (const MHColour &, MHEngine *)
 
virtual void SetTextColour (const MHColour &, MHEngine *)
 
virtual void SetFontAttributes (const MHOctetString &, MHEngine *)
 
virtual void Activate (bool, MHEngine *)
 
virtual void CallProgram (bool, const MHObjectRef &, const MHSequence< MHParameter * > &, MHEngine *)
 
virtual void CallActionSlot (int, MHEngine *)
 
virtual void Move (int, MHEngine *)
 
virtual void MoveTo (int, MHEngine *)
 
virtual void GetTokenPosition (MHRoot *, MHEngine *)
 
virtual void AddItem (int, MHRoot *, MHEngine *)
 
virtual void DelItem (MHRoot *, MHEngine *)
 
virtual void GetCellItem (int, const MHObjectRef &, MHEngine *)
 
virtual void GetListItem (int, const MHObjectRef &, MHEngine *)
 
virtual void GetItemStatus (int, const MHObjectRef &, MHEngine *)
 
virtual void SelectItem (int, MHEngine *)
 
virtual void DeselectItem (int, MHEngine *)
 
virtual void ToggleItem (int, MHEngine *)
 
virtual void ScrollItems (int, MHEngine *)
 
virtual void SetFirstItem (int, MHEngine *)
 
virtual void GetFirstItem (MHRoot *, MHEngine *)
 
virtual void GetListSize (MHRoot *, MHEngine *)
 
virtual void SetFillColour (const MHColour &, MHEngine *)
 
virtual void SetLineColour (const MHColour &, MHEngine *)
 
virtual void SetLineWidth (int, MHEngine *)
 
virtual void SetLineStyle (int, MHEngine *)
 
virtual void SetTransparency (int, MHEngine *)
 
virtual void ScaleBitmap (int, int, MHEngine *)
 
virtual void SetBitmapDecodeOffset (int, int, MHEngine *)
 
virtual void GetBitmapDecodeOffset (MHRoot *, MHRoot *)
 
virtual void Clear ()
 
virtual void GetLineWidth (MHRoot *)
 
virtual void GetLineStyle (MHRoot *)
 
virtual void GetLineColour (MHRoot *)
 
virtual void GetFillColour (MHRoot *)
 
virtual void DrawArcSector (bool, int, int, int, int, int, int, MHEngine *)
 
virtual void DrawLine (int, int, int, int, MHEngine *)
 
virtual void DrawOval (int, int, int, int, MHEngine *)
 
virtual void DrawRectangle (int, int, int, int, MHEngine *)
 
virtual void DrawPoly (bool, const MHPointVec &, const MHPointVec &, MHEngine *)
 
virtual void GetCounterPosition (MHRoot *, MHEngine *)
 
virtual void GetCounterMaxPosition (MHRoot *, MHEngine *)
 
virtual void SetCounterPosition (int, MHEngine *)
 
virtual void SetSpeed (int, MHEngine *)
 
virtual void SetInteractionStatus (bool, MHEngine *)
 
virtual bool GetInteractionStatus (void)
 
virtual void SetHighlightStatus (bool, MHEngine *)
 
virtual bool GetHighlightStatus (void)
 
virtual void Step (int, MHEngine *)
 
virtual void SetSliderValue (int, MHEngine *)
 
virtual int GetSliderValue (void)
 
virtual void SetPortion (int, MHEngine *)
 
virtual int GetPortion (void)
 
virtual void SetSliderParameters (int, int, int, MHEngine *)
 

Protected Types

enum  Termination : std::uint8_t { VI_Freeze = 1, VI_Disappear }
 
- Protected Types inherited from MHIngredient
enum  : std::uint8_t { IN_NoContent, IN_IncludedContent, IN_ReferencedContent }
 

Protected Attributes

int m_nComponentTag {0}
 
enum MHVideo::Termination VI_Disappear
 
int m_nXDecodeOffset {0}
 
int m_nYDecodeOffset {0}
 
int m_nDecodeWidth {0}
 
int m_nDecodeHeight {0}
 
bool m_fStreamPlaying {false}
 
- Protected Attributes inherited from MHVisible
int m_nOriginalBoxWidth {-1}
 
int m_nOriginalBoxHeight {-1}
 
int m_nOriginalPosX {0}
 
int m_nOriginalPosY {0}
 
MHObjectRef m_originalPaletteRef
 
int m_nBoxWidth {0}
 
int m_nBoxHeight {0}
 
int m_nPosX {0}
 
int m_nPosY {0}
 
MHObjectRef m_paletteRef
 
- Protected Attributes inherited from MHIngredient
bool m_fInitiallyActive {true}
 
int m_nContentHook {0}
 
bool m_fShared {false}
 
enum MHIngredient:: { ... }  IN_NoContent
 
MHOctetString m_origIncludedContent
 
MHContentRef m_origContentRef
 
int m_nOrigContentSize {0}
 
int m_nOrigCCPrio {127}
 
MHOctetString m_includedContent
 
MHContentRef m_contentRef
 
int m_nContentSize {0}
 
int m_nCCPrio {0}
 
- Protected Attributes inherited from MHRoot
bool m_fAvailable {false}
 
bool m_fRunning {false}
 

Additional Inherited Members

- Public Attributes inherited from MHRoot
MHObjectRef m_ObjectReference
 
- Protected Member Functions inherited from MHRoot
void InvalidAction (const char *actionName)
 
- Static Protected Member Functions inherited from MHVisible
static MHRgba GetColour (const MHColour &colour)
 

Detailed Description

Definition at line 88 of file Stream.h.

Member Enumeration Documentation

◆ Termination

enum MHVideo::Termination : std::uint8_t
protected
Enumerator
VI_Freeze 
VI_Disappear 

Definition at line 118 of file Stream.h.

Constructor & Destructor Documentation

◆ MHVideo()

MHVideo::MHVideo ( )
default

Member Function Documentation

◆ ClassName()

const char* MHVideo::ClassName ( )
inlineoverridevirtual

Implements MHRoot.

Definition at line 92 of file Stream.h.

◆ Initialise()

void MHVideo::Initialise ( MHParseNode p,
MHEngine engine 
)
overridevirtual

Reimplemented from MHIngredient.

Definition at line 343 of file Stream.cpp.

◆ PrintMe()

void MHVideo::PrintMe ( FILE *  fd,
int  nTabs 
) const
overridevirtual

Reimplemented from MHIngredient.

Definition at line 361 of file Stream.cpp.

◆ Preparation()

void MHVideo::Preparation ( MHEngine engine)
overridevirtual

Reimplemented from MHIngredient.

Definition at line 379 of file Stream.cpp.

◆ ContentPreparation()

void MHVideo::ContentPreparation ( MHEngine engine)
overridevirtual

Reimplemented from MHIngredient.

Definition at line 392 of file Stream.cpp.

◆ Activation()

void MHVideo::Activation ( MHEngine engine)
overridevirtual

Reimplemented from MHRoot.

Definition at line 467 of file Stream.cpp.

◆ Deactivation()

void MHVideo::Deactivation ( MHEngine engine)
overridevirtual

Reimplemented from MHRoot.

Definition at line 479 of file Stream.cpp.

◆ Display()

void MHVideo::Display ( MHEngine engine)
overridevirtual

Implements MHVisible.

Definition at line 399 of file Stream.cpp.

◆ GetVisibleArea()

QRegion MHVideo::GetVisibleArea ( )
overridevirtual

Reimplemented from MHVisible.

Definition at line 452 of file Stream.cpp.

Referenced by GetOpaqueArea(), ScaleVideo(), and SetVideoDecodeOffset().

◆ GetOpaqueArea()

QRegion MHVideo::GetOpaqueArea ( )
inlineoverridevirtual

Reimplemented from MHVisible.

Definition at line 105 of file Stream.h.

◆ ScaleVideo()

void MHVideo::ScaleVideo ( int  xScale,
int  yScale,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 420 of file Stream.cpp.

◆ SetVideoDecodeOffset()

void MHVideo::SetVideoDecodeOffset ( int  newXOffset,
int  newYOffset,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 435 of file Stream.cpp.

◆ GetVideoDecodeOffset()

void MHVideo::GetVideoDecodeOffset ( MHRoot pXOffset,
MHRoot pYOffset,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 445 of file Stream.cpp.

◆ BeginPlaying()

void MHVideo::BeginPlaying ( MHEngine engine)
overridevirtual

Reimplemented from MHPresentable.

Definition at line 494 of file Stream.cpp.

◆ StopPlaying()

void MHVideo::StopPlaying ( MHEngine engine)
overridevirtual

Reimplemented from MHPresentable.

Definition at line 501 of file Stream.cpp.

Member Data Documentation

◆ m_nComponentTag

int MHVideo::m_nComponentTag {0}
protected

Definition at line 117 of file Stream.h.

Referenced by Activation(), BeginPlaying(), Initialise(), and PrintMe().

◆ VI_Disappear

enum MHVideo::Termination MHVideo::VI_Disappear
protected

Referenced by PrintMe().

◆ m_nXDecodeOffset

int MHVideo::m_nXDecodeOffset {0}
protected

Definition at line 121 of file Stream.h.

Referenced by Display(), GetVideoDecodeOffset(), GetVisibleArea(), and SetVideoDecodeOffset().

◆ m_nYDecodeOffset

int MHVideo::m_nYDecodeOffset {0}
protected

Definition at line 122 of file Stream.h.

Referenced by Display(), GetVideoDecodeOffset(), GetVisibleArea(), and SetVideoDecodeOffset().

◆ m_nDecodeWidth

int MHVideo::m_nDecodeWidth {0}
protected

Definition at line 123 of file Stream.h.

Referenced by Display(), GetVisibleArea(), Preparation(), and ScaleVideo().

◆ m_nDecodeHeight

int MHVideo::m_nDecodeHeight {0}
protected

Definition at line 124 of file Stream.h.

Referenced by Display(), GetVisibleArea(), Preparation(), and ScaleVideo().

◆ m_fStreamPlaying

bool MHVideo::m_fStreamPlaying {false}
protected

Definition at line 126 of file Stream.h.

Referenced by Activation(), BeginPlaying(), Deactivation(), and StopPlaying().


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