MythTV  master
Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
ContentDescriptor Class Reference

#include <libmythtv/mpeg/dvbdescriptors.h>

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

Public Member Functions

 ContentDescriptor (const unsigned char *data, int len=300)
 
uint Count (void) const
 
uint Nibble1 (uint i) const
 
uint Nibble2 (uint i) const
 
uint Nibble (uint i) const
 
uint UserNibble1 (uint i) const
 
uint UserNibble2 (uint i) const
 
uint UserNibble (uint i) const
 
ProgramInfo::CategoryType GetMythCategory (uint i) const
 
QString GetDescription (uint i) const
 
QString toString (void) 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
 

Static Protected Member Functions

static void Init (void)
 

Static Protected Attributes

static QMutex s_categoryLock
 
static QMap< uint, QString > s_categoryDesc
 
static volatile bool s_categoryDescExists = false
 

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 617 of file dvbdescriptors.h.

Constructor & Destructor Documentation

◆ ContentDescriptor()

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

Definition at line 620 of file dvbdescriptors.h.

Member Function Documentation

◆ Count()

uint ContentDescriptor::Count ( void  ) const
inline

Definition at line 626 of file dvbdescriptors.h.

Referenced by toString().

◆ Nibble1()

uint ContentDescriptor::Nibble1 ( uint  i) const
inline

◆ Nibble2()

uint ContentDescriptor::Nibble2 ( uint  i) const
inline

Definition at line 632 of file dvbdescriptors.h.

Referenced by DishContentDescriptor::GetTheme().

◆ Nibble()

uint ContentDescriptor::Nibble ( uint  i) const
inline

Definition at line 634 of file dvbdescriptors.h.

Referenced by GetDescription().

◆ UserNibble1()

uint ContentDescriptor::UserNibble1 ( uint  i) const
inline

Definition at line 637 of file dvbdescriptors.h.

◆ UserNibble2()

uint ContentDescriptor::UserNibble2 ( uint  i) const
inline

Definition at line 639 of file dvbdescriptors.h.

◆ UserNibble()

uint ContentDescriptor::UserNibble ( uint  i) const
inline

Definition at line 640 of file dvbdescriptors.h.

Referenced by DishContentDescriptor::GetCategory().

◆ GetMythCategory()

ProgramInfo::CategoryType ContentDescriptor::GetMythCategory ( uint  i) const

Definition at line 288 of file dvbdescriptors.cpp.

Referenced by toString().

◆ GetDescription()

QString ContentDescriptor::GetDescription ( uint  i) const

Definition at line 336 of file dvbdescriptors.cpp.

Referenced by toString().

◆ toString()

QString ContentDescriptor::toString ( void  ) const
overridevirtual

Reimplemented from MPEGDescriptor.

Definition at line 357 of file dvbdescriptors.cpp.

◆ Init()

void ContentDescriptor::Init ( void  )
staticprotected

Definition at line 365 of file dvbdescriptors.cpp.

Referenced by GetDescription(), and DishContentDescriptor::Init().

Member Data Documentation

◆ s_categoryLock

QMutex ContentDescriptor::s_categoryLock
staticprotected

◆ s_categoryDesc

QMap< uint, QString > ContentDescriptor::s_categoryDesc
staticprotected

Definition at line 652 of file dvbdescriptors.h.

Referenced by GetDescription(), and Init().

◆ s_categoryDescExists

volatile bool ContentDescriptor::s_categoryDescExists = false
staticprotected

Definition at line 653 of file dvbdescriptors.h.

Referenced by GetDescription(), and Init().


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