MythTV  master
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
CaptionServiceDescriptor Class Reference

#include <libmythtv/mpeg/atscdescriptors.h>

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

Public Member Functions

 CaptionServiceDescriptor (const unsigned char *data, int len=300)
 
uint ServicesCount () const
 
int LanguageKey (int i) const
 
QString LanguageString (int i) const
 
int CanonicalLanguageKey (int i) const
 
QString CanonicalLanguageString (int i) const
 
bool Type (int i) const
 
bool Line21Field (int i) const
 
int CaptionServiceNumber (int i) const
 
bool EasyReader (int i) const
 
bool WideAspectRatio (int i) const
 
bool Parse (void)
 
QString toString () const override
 
- Public Member Functions inherited from MPEGDescriptor
 operator const unsigned char * () const
 
 MPEGDescriptor (const unsigned char *data, int len=300)
 
 MPEGDescriptor (const std::vector< uint8_t > &data)
 
 MPEGDescriptor (const unsigned char *data, int len, uint tag)
 
 MPEGDescriptor (const std::vector< uint8_t > &data, uint tag)
 
 MPEGDescriptor (const unsigned char *data, int len, uint tag, uint req_desc_len)
 
virtual ~MPEGDescriptor ()=default
 
bool IsValid (void) const
 
uint size (void) const
 
uint DescriptorTag (void) const
 
uint DescriptorLength (void) const
 
uint DescriptorTagExtension (void) const
 
QString DescriptorTagString (void) const
 
virtual QString toStringPD (uint priv_dsid) const
 
virtual QString toStringXML (uint indent_level) const
 Returns XML representation of string the TS Reader XML format. More...
 
QString hexdump (void) const
 
QString descrDump (const QString &name) const
 

Private Member Functions

const unsigned char * Offset (int i, int j) const
 

Static Private Member Functions

static int Index (int i, int j)
 

Private Attributes

IntToBuf m_ptrs
 

Additional Inherited Members

- Static Public Member Functions inherited from MPEGDescriptor
static desc_list_t Parse (const unsigned char *data, uint len)
 
static desc_list_t ParseAndExclude (const unsigned char *data, uint len, int excluded_descid)
 
static desc_list_t ParseOnlyInclude (const unsigned char *data, uint len, int excluded_descid)
 
static const unsigned char * Find (const desc_list_t &parsed, uint desc_tag)
 
static const unsigned char * FindExtension (const desc_list_t &parsed, uint desc_tag)
 
static desc_list_t FindAll (const desc_list_t &parsed, uint desc_tag)
 
static const unsigned char * FindBestMatch (const desc_list_t &parsed, uint desc_tag, QMap< uint, uint > &langPref)
 
static desc_list_t FindBestMatches (const desc_list_t &parsed, uint desc_tag, QMap< uint, uint > &langPref)
 
- Protected Attributes inherited from MPEGDescriptor
const unsigned char * m_data
 

Detailed Description

Definition at line 74 of file atscdescriptors.h.

Constructor & Destructor Documentation

◆ CaptionServiceDescriptor()

CaptionServiceDescriptor::CaptionServiceDescriptor ( const unsigned char *  data,
int  len = 300 
)
inlineexplicit

Definition at line 77 of file atscdescriptors.h.

Member Function Documentation

◆ ServicesCount()

uint CaptionServiceDescriptor::ServicesCount ( ) const
inline

Definition at line 88 of file atscdescriptors.h.

Referenced by Parse(), AvFormatDecoder::ScanATSCCaptionStreams(), and toString().

◆ LanguageKey()

int CaptionServiceDescriptor::LanguageKey ( int  i) const
inline

Definition at line 91 of file atscdescriptors.h.

Referenced by CanonicalLanguageKey(), and LanguageString().

◆ LanguageString()

QString CaptionServiceDescriptor::LanguageString ( int  i) const
inline

Definition at line 93 of file atscdescriptors.h.

Referenced by toString().

◆ CanonicalLanguageKey()

int CaptionServiceDescriptor::CanonicalLanguageKey ( int  i) const
inline

◆ CanonicalLanguageString()

QString CaptionServiceDescriptor::CanonicalLanguageString ( int  i) const
inline

Definition at line 97 of file atscdescriptors.h.

◆ Type()

bool CaptionServiceDescriptor::Type ( int  i) const
inline

Definition at line 100 of file atscdescriptors.h.

Referenced by AvFormatDecoder::ScanATSCCaptionStreams(), and toString().

◆ Line21Field()

bool CaptionServiceDescriptor::Line21Field ( int  i) const
inline

Definition at line 106 of file atscdescriptors.h.

Referenced by AvFormatDecoder::ScanATSCCaptionStreams(), and toString().

◆ CaptionServiceNumber()

int CaptionServiceDescriptor::CaptionServiceNumber ( int  i) const
inline

Definition at line 110 of file atscdescriptors.h.

Referenced by AvFormatDecoder::ScanATSCCaptionStreams(), and toString().

◆ EasyReader()

bool CaptionServiceDescriptor::EasyReader ( int  i) const
inline

Definition at line 113 of file atscdescriptors.h.

Referenced by toString().

◆ WideAspectRatio()

bool CaptionServiceDescriptor::WideAspectRatio ( int  i) const
inline

Definition at line 116 of file atscdescriptors.h.

Referenced by toString().

◆ Parse()

bool CaptionServiceDescriptor::Parse ( void  )

Definition at line 175 of file atscdescriptors.cpp.

Referenced by CaptionServiceDescriptor().

◆ toString()

QString CaptionServiceDescriptor::toString ( ) const
overridevirtual

Reimplemented from MPEGDescriptor.

Definition at line 186 of file atscdescriptors.cpp.

Referenced by AvFormatDecoder::ScanATSCCaptionStreams().

◆ Index()

static int CaptionServiceDescriptor::Index ( int  i,
int  j 
)
inlinestaticprivate

Definition at line 124 of file atscdescriptors.h.

Referenced by Offset(), and Parse().

◆ Offset()

const unsigned char* CaptionServiceDescriptor::Offset ( int  i,
int  j 
) const
inlineprivate

Member Data Documentation

◆ m_ptrs

IntToBuf CaptionServiceDescriptor::m_ptrs
private

Definition at line 129 of file atscdescriptors.h.

Referenced by Offset(), and Parse().


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