MythTV
master
|
Encapsulates playback context at any given moment. More...
#include <mythdvdcontext.h>
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 |
![]() | |
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) | |
![]() | |
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 |
![]() | |
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 void | PrintDebug (void) |
Print out any leaks if that level of debugging is enabled. More... | |
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.
|
delete |
|
overridedefault |
|
protected |
Definition at line 7 of file mythdvdcontext.cpp.
int64_t MythDVDContext::GetStartPTS | ( | void | ) | const |
Definition at line 14 of file mythdvdcontext.cpp.
Referenced by GetNumFrames(), GetNumFramesPresent(), MythDVDDecoder::ProcessDataPacket(), and MythDVDBuffer::SafeRead().
int64_t MythDVDContext::GetEndPTS | ( | void | ) | const |
Definition at line 19 of file mythdvdcontext.cpp.
Referenced by MythDVDDecoder::CheckContext(), and GetNumFrames().
int64_t MythDVDContext::GetSeqEndPTS | ( | void | ) | const |
Definition at line 24 of file mythdvdcontext.cpp.
Referenced by GetNumFramesPresent(), and MythDVDDecoder::ProcessVideoPacket().
uint32_t MythDVDContext::GetLBA | ( | void | ) | const |
Definition at line 29 of file mythdvdcontext.cpp.
Referenced by MythDVDDecoder::CheckContext(), GetLBAPrevVideoFrame(), MythDVDDecoder::ProcessVideoPacket(), and MythDVDBuffer::SafeRead().
uint32_t MythDVDContext::GetLBAPrevVideoFrame | ( | void | ) | const |
Returns the logical block address of the previous VOBU containing video.
Definition at line 73 of file mythdvdcontext.cpp.
Referenced by MythDVDDecoder::CheckContext().
int MythDVDContext::GetNumFrames | ( | void | ) | const |
Returns the duration of this VOBU in frames.
Definition at line 37 of file mythdvdcontext.cpp.
Referenced by MythDVDDecoder::CheckContext(), GetNumFramesPresent(), and MythDVDDecoder::ProcessVideoPacket().
int MythDVDContext::GetNumFramesPresent | ( | void | ) | const |
Returns the number of video frames present in this VOBU.
Definition at line 45 of file mythdvdcontext.cpp.
Referenced by MythDVDDecoder::CheckContext(), and MythDVDDecoder::ProcessVideoPacket().
int MythDVDContext::GetFPS | ( | void | ) | const |
Definition at line 64 of file mythdvdcontext.cpp.
Referenced by GetNumFrames(), and GetNumFramesPresent().
|
friend |
Definition at line 18 of file mythdvdcontext.h.
|
protected |
Definition at line 37 of file mythdvdcontext.h.
Referenced by GetLBAPrevVideoFrame(), and GetNumFramesPresent().
|
protected |
Definition at line 38 of file mythdvdcontext.h.
Referenced by GetEndPTS(), GetFPS(), GetLBA(), GetSeqEndPTS(), and GetStartPTS().