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 <dvdringbuffer.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 () const
 
int64_t GetEndPTS () const
 
int64_t GetSeqEndPTS () const
 
uint32_t GetLBA () const
 
uint32_t GetLBAPrevVideoFrame () const
 Returns the logical block address of the previous VOBU containing video. More...
 
int GetNumFrames () const
 Returns the duration of this VOBU in frames. More...
 
int GetNumFramesPresent () const
 Returns the number of video frames present in this VOBU. More...
 
int GetFPS () 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 DVDRingBuffer
 

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 is mainly represents a single VOBU (video object unit) on a DVD

Definition at line 32 of file dvdringbuffer.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 150 of file dvdringbuffer.cpp.

Member Function Documentation

◆ GetStartPTS()

int64_t MythDVDContext::GetStartPTS ( ) const
inline

◆ GetEndPTS()

int64_t MythDVDContext::GetEndPTS ( ) const
inline

Definition at line 41 of file dvdringbuffer.h.

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

◆ GetSeqEndPTS()

int64_t MythDVDContext::GetSeqEndPTS ( ) const
inline

Definition at line 42 of file dvdringbuffer.h.

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

◆ GetLBA()

uint32_t MythDVDContext::GetLBA ( ) const
inline

◆ GetLBAPrevVideoFrame()

uint32_t MythDVDContext::GetLBAPrevVideoFrame ( ) 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 191 of file dvdringbuffer.cpp.

Referenced by AvFormatDecoderDVD::CheckContext().

◆ GetNumFrames()

int MythDVDContext::GetNumFrames ( ) const

Returns the duration of this VOBU in frames.

See also
GetNumFramesPresent

Definition at line 160 of file dvdringbuffer.cpp.

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

◆ GetNumFramesPresent()

int MythDVDContext::GetNumFramesPresent ( ) const

Returns the number of video frames present in this VOBU.

See also
GetNumFrames

Definition at line 168 of file dvdringbuffer.cpp.

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

◆ GetFPS()

int MythDVDContext::GetFPS ( void  ) const
inline

Definition at line 47 of file dvdringbuffer.h.

Referenced by GetNumFrames(), and GetNumFramesPresent().

Friends And Related Function Documentation

◆ DVDRingBuffer

friend class DVDRingBuffer
friend

Definition at line 34 of file dvdringbuffer.h.

Member Data Documentation

◆ m_dsi

dsi_t MythDVDContext::m_dsi
protected

Definition at line 53 of file dvdringbuffer.h.

Referenced by GetLBAPrevVideoFrame(), and GetNumFramesPresent().

◆ m_pci

pci_t MythDVDContext::m_pci
protected

Definition at line 54 of file dvdringbuffer.h.


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