diff options
Diffstat (limited to 'src/apps/mplayerc/DVBChannel.h')
-rw-r--r-- | src/apps/mplayerc/DVBChannel.h | 314 |
1 files changed, 157 insertions, 157 deletions
diff --git a/src/apps/mplayerc/DVBChannel.h b/src/apps/mplayerc/DVBChannel.h index 34905b4be..f9959ff14 100644 --- a/src/apps/mplayerc/DVBChannel.h +++ b/src/apps/mplayerc/DVBChannel.h @@ -28,178 +28,178 @@ typedef enum
{
- DVB_MPV = 0x00,
- DVB_H264 = 0x01,
- DVB_MPA = 0x02,
- DVB_AC3 = 0x03,
- DVB_EAC3 = 0x04,
- DVB_PSI = 0x80,
- DVB_TIF = 0x81,
- DVB_EPG = 0x82,
- DVB_PMT = 0x83,
- DVB_SUB = 0x83,
- DVB_SUBTITLE= 0xFE,
- DVB_UNKNOWN = 0xFF
+ DVB_MPV = 0x00,
+ DVB_H264 = 0x01,
+ DVB_MPA = 0x02,
+ DVB_AC3 = 0x03,
+ DVB_EAC3 = 0x04,
+ DVB_PSI = 0x80,
+ DVB_TIF = 0x81,
+ DVB_EPG = 0x82,
+ DVB_PMT = 0x83,
+ DVB_SUB = 0x83,
+ DVB_SUBTITLE= 0xFE,
+ DVB_UNKNOWN = 0xFF
} DVB_STREAM_TYPE;
typedef struct
{
- ULONG PID;
- DVB_STREAM_TYPE Type;
- PES_STREAM_TYPE PesType;
- CString Language;
+ ULONG PID;
+ DVB_STREAM_TYPE Type;
+ PES_STREAM_TYPE PesType;
+ CString Language;
- LCID GetLCID()
- {
- return ISO6392ToLcid(CStringA(Language));
- };
+ LCID GetLCID()
+ {
+ return ISO6392ToLcid(CStringA(Language));
+ };
} DVBStreamInfo;
class CDVBChannel
{
public:
- CDVBChannel(void);
- ~CDVBChannel(void);
+ CDVBChannel(void);
+ ~CDVBChannel(void);
- void FromString(CString strValue);
- CString ToString();
+ void FromString(CString strValue);
+ CString ToString();
- LPCTSTR GetName() const
- {
- return m_strName;
- };
- ULONG GetFrequency() const
- {
- return m_ulFrequency;
- };
- int GetPrefNumber() const
- {
- return m_nPrefNumber;
- };
- int GetOriginNumber() const
- {
- return m_nOriginNumber;
- };
- ULONG GetONID() const
- {
- return m_ulONID;
- };
- ULONG GetTSID() const
- {
- return m_ulTSID;
- };
- ULONG GetSID() const
- {
- return m_ulSID;
- };
- ULONG GetPMT() const
- {
- return m_ulPMT;
- };
- ULONG GetPCR() const
- {
- return m_ulPCR;
- };
- ULONG GetVideoPID() const
- {
- return m_ulVideoPID;
- };
- DVB_STREAM_TYPE GetVideoType() const
- {
- return m_nVideoType;
- }
- ULONG GetDefaultAudioPID() const
- {
- return m_Audios[0].PID; /* TODO : fa*/
- };
- DVB_STREAM_TYPE GetDefaultAudioType() const
- {
- return m_Audios[0].Type;
- }
- ULONG GetDefaultSubtitlePID() const
- {
- return m_Subtitles[0].PID; /* TODO : fa*/
- };
- int GetAudioCount() const
- {
- return m_nAudioCount;
- };
- int GetSubtitleCount() const
- {
- return m_nSubtitleCount;
- };
- DVBStreamInfo* GetAudio(int nIndex)
- {
- return &m_Audios[nIndex];
- };
- DVBStreamInfo* GetSubtitle(int nIndex)
- {
- return &m_Subtitles[nIndex];
- };
- bool HasName()
- {
- return !m_strName.IsEmpty();
- };
+ LPCTSTR GetName() const
+ {
+ return m_strName;
+ };
+ ULONG GetFrequency() const
+ {
+ return m_ulFrequency;
+ };
+ int GetPrefNumber() const
+ {
+ return m_nPrefNumber;
+ };
+ int GetOriginNumber() const
+ {
+ return m_nOriginNumber;
+ };
+ ULONG GetONID() const
+ {
+ return m_ulONID;
+ };
+ ULONG GetTSID() const
+ {
+ return m_ulTSID;
+ };
+ ULONG GetSID() const
+ {
+ return m_ulSID;
+ };
+ ULONG GetPMT() const
+ {
+ return m_ulPMT;
+ };
+ ULONG GetPCR() const
+ {
+ return m_ulPCR;
+ };
+ ULONG GetVideoPID() const
+ {
+ return m_ulVideoPID;
+ };
+ DVB_STREAM_TYPE GetVideoType() const
+ {
+ return m_nVideoType;
+ }
+ ULONG GetDefaultAudioPID() const
+ {
+ return m_Audios[0].PID; /* TODO : fa*/
+ };
+ DVB_STREAM_TYPE GetDefaultAudioType() const
+ {
+ return m_Audios[0].Type;
+ }
+ ULONG GetDefaultSubtitlePID() const
+ {
+ return m_Subtitles[0].PID; /* TODO : fa*/
+ };
+ int GetAudioCount() const
+ {
+ return m_nAudioCount;
+ };
+ int GetSubtitleCount() const
+ {
+ return m_nSubtitleCount;
+ };
+ DVBStreamInfo* GetAudio(int nIndex)
+ {
+ return &m_Audios[nIndex];
+ };
+ DVBStreamInfo* GetSubtitle(int nIndex)
+ {
+ return &m_Subtitles[nIndex];
+ };
+ bool HasName()
+ {
+ return !m_strName.IsEmpty();
+ };
- void SetName(BYTE* Value);
- void SetName(LPCTSTR Value)
- {
- m_strName = Value;
- };
- void SetFrequency(ULONG Value)
- {
- m_ulFrequency = Value;
- };
- void SetPrefNumber(int Value)
- {
- m_nPrefNumber = Value;
- };
- void SetOriginNumber(int Value)
- {
- m_nOriginNumber = m_nPrefNumber = Value;
- };
- void SetONID(ULONG Value)
- {
- m_ulONID = Value;
- };
- void SetTSID(ULONG Value)
- {
- m_ulTSID = Value;
- };
- void SetSID(ULONG Value)
- {
- m_ulSID = Value;
- };
- void SetPMT(ULONG Value)
- {
- m_ulPMT = Value;
- };
- void SetPCR(ULONG Value)
- {
- m_ulPCR = Value;
- };
- void SetVideoPID(ULONG Value)
- {
- m_ulVideoPID = Value;
- };
+ void SetName(BYTE* Value);
+ void SetName(LPCTSTR Value)
+ {
+ m_strName = Value;
+ };
+ void SetFrequency(ULONG Value)
+ {
+ m_ulFrequency = Value;
+ };
+ void SetPrefNumber(int Value)
+ {
+ m_nPrefNumber = Value;
+ };
+ void SetOriginNumber(int Value)
+ {
+ m_nOriginNumber = m_nPrefNumber = Value;
+ };
+ void SetONID(ULONG Value)
+ {
+ m_ulONID = Value;
+ };
+ void SetTSID(ULONG Value)
+ {
+ m_ulTSID = Value;
+ };
+ void SetSID(ULONG Value)
+ {
+ m_ulSID = Value;
+ };
+ void SetPMT(ULONG Value)
+ {
+ m_ulPMT = Value;
+ };
+ void SetPCR(ULONG Value)
+ {
+ m_ulPCR = Value;
+ };
+ void SetVideoPID(ULONG Value)
+ {
+ m_ulVideoPID = Value;
+ };
- void AddStreamInfo (ULONG ulPID, DVB_STREAM_TYPE nType, PES_STREAM_TYPE nPesType, LPCTSTR strLanguage);
+ void AddStreamInfo (ULONG ulPID, DVB_STREAM_TYPE nType, PES_STREAM_TYPE nPesType, LPCTSTR strLanguage);
private :
- CString m_strName;
- ULONG m_ulFrequency;
- int m_nPrefNumber;
- int m_nOriginNumber;
- ULONG m_ulONID;
- ULONG m_ulTSID;
- ULONG m_ulSID;
- ULONG m_ulPMT;
- ULONG m_ulPCR;
- ULONG m_ulVideoPID;
- DVB_STREAM_TYPE m_nVideoType;
- int m_nAudioCount;
- int m_nSubtitleCount;
- DVBStreamInfo m_Audios[DVB_MAX_AUDIO];
- DVBStreamInfo m_Subtitles[DVB_MAX_SUBTITLE];
+ CString m_strName;
+ ULONG m_ulFrequency;
+ int m_nPrefNumber;
+ int m_nOriginNumber;
+ ULONG m_ulONID;
+ ULONG m_ulTSID;
+ ULONG m_ulSID;
+ ULONG m_ulPMT;
+ ULONG m_ulPCR;
+ ULONG m_ulVideoPID;
+ DVB_STREAM_TYPE m_nVideoType;
+ int m_nAudioCount;
+ int m_nSubtitleCount;
+ DVBStreamInfo m_Audios[DVB_MAX_AUDIO];
+ DVBStreamInfo m_Subtitles[DVB_MAX_SUBTITLE];
};
|