MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
MythDVDContext Class Reference

Encapsulates playback context at any given moment. More...

#include <mythdvdcontext.h>

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

Public Member Functions

 MythDVDContext ()=delete
 
 ~MythDVDContext () override=default
 
int64_t GetStartPTS (void) const
 
int64_t GetEndPTS (void) const
 
int64_t GetSeqEndPTS (void) const
 
uint32_t GetLBA (void) const
 
uint32_t GetLBAPrevVideoFrame (void) const
 Returns the logical block address of the previous VOBU containing video. More...
 
int GetNumFrames (void) const
 Returns the duration of this VOBU in frames. More...
 
int GetNumFramesPresent (void) const
 Returns the number of video frames present in this VOBU. More...
 
int GetFPS (void) const
 
- Public Member Functions inherited from ReferenceCounter
 ReferenceCounter (const QString &debugName, bool logDebug=true)
 Creates reference counter with an initial value of 1. More...
 
virtual int IncrRef (void)
 Increments reference count. More...
 
virtual int DecrRef (void)
 Decrements reference count and deletes on 0. More...
 

Protected Member Functions

 MythDVDContext (const dsi_t &DSI, const pci_t &PCI)
 
- Protected Member Functions inherited from ReferenceCounter
virtual ~ReferenceCounter (void)
 Called on destruction, will warn if object deleted with references in place. More...
 

Protected Attributes

dsi_t m_dsi
 
pci_t m_pci
 
- Protected Attributes inherited from ReferenceCounter
bool m_logDebug
 This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More...
 
QAtomicInt m_referenceCount {1}
 

Friends

class MythDVDBuffer
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCounter
static void PrintDebug (void)
 Print out any leaks if that level of debugging is enabled. More...
 

Detailed Description

Encapsulates playback context at any given moment.

This class mainly represents a single VOBU (video object unit) on a DVD

Definition at line 16 of file mythdvdcontext.h.

Constructor & Destructor Documentation

◆ MythDVDContext() [1/2]

MythDVDContext::MythDVDContext ( )
delete

◆ ~MythDVDContext()

MythDVDContext::~MythDVDContext ( )
overridedefault

◆ MythDVDContext() [2/2]

MythDVDContext::MythDVDContext ( const dsi_t &  DSI,
const pci_t &  PCI 
)
protected

Definition at line 7 of file mythdvdcontext.cpp.

Member Function Documentation

◆ GetStartPTS()

int64_t MythDVDContext::GetStartPTS ( void  ) const

◆ GetEndPTS()

int64_t MythDVDContext::GetEndPTS ( void  ) const

Definition at line 19 of file mythdvdcontext.cpp.

Referenced by MythDVDDecoder::CheckContext(), and GetNumFrames().

◆ GetSeqEndPTS()

int64_t MythDVDContext::GetSeqEndPTS ( void  ) const

Definition at line 24 of file mythdvdcontext.cpp.

Referenced by GetNumFramesPresent(), and MythDVDDecoder::ProcessVideoPacket().

◆ GetLBA()

uint32_t MythDVDContext::GetLBA ( void  ) const

◆ GetLBAPrevVideoFrame()

uint32_t MythDVDContext::GetLBAPrevVideoFrame ( void  ) const

Returns the logical block address of the previous VOBU containing video.

Returns
LBA or 0xbfffffff if no previous VOBU with video exists

Definition at line 73 of file mythdvdcontext.cpp.

Referenced by MythDVDDecoder::CheckContext().

◆ GetNumFrames()

int MythDVDContext::GetNumFrames ( void  ) const

Returns the duration of this VOBU in frames.

See also
GetNumFramesPresent

Definition at line 37 of file mythdvdcontext.cpp.

Referenced by MythDVDDecoder::CheckContext(), GetNumFramesPresent(), and MythDVDDecoder::ProcessVideoPacket().

◆ GetNumFramesPresent()

int MythDVDContext::GetNumFramesPresent ( void  ) const

Returns the number of video frames present in this VOBU.

See also
GetNumFrames

Definition at line 45 of file mythdvdcontext.cpp.

Referenced by MythDVDDecoder::CheckContext(), and MythDVDDecoder::ProcessVideoPacket().

◆ GetFPS()

int MythDVDContext::GetFPS ( void  ) const

Definition at line 64 of file mythdvdcontext.cpp.

Referenced by GetNumFrames(), and GetNumFramesPresent().

Friends And Related Function Documentation

◆ MythDVDBuffer

friend class MythDVDBuffer
friend

Definition at line 18 of file mythdvdcontext.h.

Member Data Documentation

◆ m_dsi

dsi_t MythDVDContext::m_dsi
protected

Definition at line 37 of file mythdvdcontext.h.

Referenced by GetLBAPrevVideoFrame(), and GetNumFramesPresent().

◆ m_pci

pci_t MythDVDContext::m_pci
protected

Definition at line 38 of file mythdvdcontext.h.

Referenced by GetEndPTS(), GetFPS(), GetLBA(), GetSeqEndPTS(), and GetStartPTS().


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