|
vdr 2.6.1
|
Go to the source code of this file.
Classes | |
| class | cRemux |
| class | cTsPayload |
| class | cPatPmtGenerator |
| class | cPatPmtParser |
| class | cEitGenerator |
| class | cTsToPes |
| class | cFrameDetector |
Macros | |
| #define | TS_SYNC_BYTE 0x47 |
| #define | TS_SIZE 188 |
| #define | TS_ERROR 0x80 |
| #define | TS_PAYLOAD_START 0x40 |
| #define | TS_TRANSPORT_PRIORITY 0x20 |
| #define | TS_PID_MASK_HI 0x1F |
| #define | TS_SCRAMBLING_CONTROL 0xC0 |
| #define | TS_ADAPT_FIELD_EXISTS 0x20 |
| #define | TS_PAYLOAD_EXISTS 0x10 |
| #define | TS_CONT_CNT_MASK 0x0F |
| #define | TS_ADAPT_DISCONT 0x80 |
| #define | TS_ADAPT_RANDOM_ACC 0x40 |
| #define | TS_ADAPT_ELEM_PRIO 0x20 |
| #define | TS_ADAPT_PCR 0x10 |
| #define | TS_ADAPT_OPCR 0x08 |
| #define | TS_ADAPT_SPLICING 0x04 |
| #define | TS_ADAPT_TP_PRIVATE 0x02 |
| #define | TS_ADAPT_EXTENSION 0x01 |
| #define | PATPID 0x0000 |
| #define | CATPID 0x0001 |
| #define | EITPID 0x0012 |
| #define | MAXPID 0x2000 |
| #define | PTSTICKS 90000 |
| #define | PCRFACTOR 300 |
| #define | MAX33BIT 0x00000001FFFFFFFFLL |
| #define | MAX27MHZ ((MAX33BIT + 1) * PCRFACTOR - 1) |
| #define | TS_SYNC(Data, Length) (*Data == TS_SYNC_BYTE ? 0 : TsSync(Data, Length, __FILE__, __FUNCTION__, __LINE__)) |
| #define | MAX_SECTION_SIZE 4096 |
| #define | MAX_PMT_TS (MAX_SECTION_SIZE / TS_SIZE + 1) |
| #define | MAX_PMT_PIDS 32 |
| #define | MIN_TS_PACKETS_FOR_FRAME_DETECTOR 100 |
Enumerations | |
| enum | ePesHeader { phNeedMoreData = -1 , phInvalid = 0 , phMPEG1 = 1 , phMPEG2 = 2 , phNeedMoreData = -1 , phInvalid = 0 , phMPEG1 = 1 , phMPEG2 = 2 } |
Functions | |
| ePesHeader | AnalyzePesHeader (const uchar *Data, int Count, int &PesPayloadOffset, bool *ContinuationHeader=NULL) |
| bool | TsHasPayload (const uchar *p) |
| bool | TsHasAdaptationField (const uchar *p) |
| bool | TsPayloadStart (const uchar *p) |
| bool | TsError (const uchar *p) |
| int | TsPid (const uchar *p) |
| void | TsSetPid (uchar *p, int Pid) |
| bool | TsIsScrambled (const uchar *p) |
| uchar | TsContinuityCounter (const uchar *p) |
| void | TsSetContinuityCounter (uchar *p, uchar Counter) |
| int | TsPayloadOffset (const uchar *p) |
| int | TsGetPayload (const uchar **p) |
| int64_t | TsGetPcr (const uchar *p) |
| void | TsHidePayload (uchar *p) |
| void | TsSetPcr (uchar *p, int64_t Pcr) |
| int | TsSync (const uchar *Data, int Length, const char *File=NULL, const char *Function=NULL, int Line=0) |
| int64_t | TsGetPts (const uchar *p, int l) |
| int64_t | TsGetDts (const uchar *p, int l) |
| void | TsSetPts (uchar *p, int l, int64_t Pts) |
| void | TsSetDts (uchar *p, int l, int64_t Dts) |
| bool | PesLongEnough (int Length) |
| bool | PesHasLength (const uchar *p) |
| int | PesLength (const uchar *p) |
| int | PesPayloadOffset (const uchar *p) |
| bool | PesHasPts (const uchar *p) |
| bool | PesHasDts (const uchar *p) |
| int64_t | PesGetPts (const uchar *p) |
| int64_t | PesGetDts (const uchar *p) |
| void | PesSetPts (uchar *p, int64_t Pts) |
| void | PesSetDts (uchar *p, int64_t Dts) |
| int64_t | PtsAdd (int64_t Pts1, int64_t Pts2) |
| int64_t | PtsDiff (int64_t Pts1, int64_t Pts2) |
| void | BlockDump (const char *Name, const u_char *Data, int Length) |
| void | TsDump (const char *Name, const u_char *Data, int Length) |
| void | PesDump (const char *Name, const u_char *Data, int Length) |
| #define MAX_PMT_TS (MAX_SECTION_SIZE / TS_SIZE + 1) |
| #define TS_SYNC | ( | Data, | |
| Length | |||
| ) | (*Data == TS_SYNC_BYTE ? 0 : TsSync(Data, Length, __FILE__, __FUNCTION__, __LINE__)) |
| enum ePesHeader |
| ePesHeader AnalyzePesHeader | ( | const uchar * | Data, |
| int | Count, | ||
| int & | PesPayloadOffset, | ||
| bool * | ContinuationHeader = NULL |
||
| ) |
Definition at line 32 of file remux.c.
Referenced by cRemux::SetBrokenLink().
| void BlockDump | ( | const char * | Name, |
| const u_char * | Data, | ||
| int | Length | ||
| ) |
| void PesDump | ( | const char * | Name, |
| const u_char * | Data, | ||
| int | Length | ||
| ) |
| void PesSetDts | ( | uchar * | p, |
| int64_t | Dts | ||
| ) |
Definition at line 225 of file remux.c.
Referenced by TsSetDts().
| void PesSetPts | ( | uchar * | p, |
| int64_t | Pts | ||
| ) |
Definition at line 216 of file remux.c.
Referenced by TsSetPts().
|
inline |
| int64_t PtsDiff | ( | int64_t | Pts1, |
| int64_t | Pts2 | ||
| ) |
Definition at line 98 of file remux.h.
References TS_CONT_CNT_MASK.
| void TsDump | ( | const char * | Name, |
| const u_char * | Data, | ||
| int | Length | ||
| ) |
|
inline |
Definition at line 114 of file remux.h.
References TS_SIZE, TsHasPayload(), and TsPayloadOffset().
|
inline |
Definition at line 124 of file remux.h.
References PCRFACTOR, TS_ADAPT_PCR, and TsHasAdaptationField().
|
inline |
Definition at line 67 of file remux.h.
References TS_ADAPT_FIELD_EXISTS.
Referenced by TsGetPcr(), and TsPayloadOffset().
|
inline |
|
inline |
Definition at line 93 of file remux.h.
References TS_SCRAMBLING_CONTROL.
|
inline |
Definition at line 108 of file remux.h.
References TS_SIZE, and TsHasAdaptationField().
Referenced by TsGetPayload().
|
inline |
Definition at line 72 of file remux.h.
References TS_PAYLOAD_START.
Referenced by cTsPayload::AtPayloadStart().
|
inline |
Definition at line 82 of file remux.h.
References TS_PID_MASK_HI.
Referenced by cTsPayload::AtPayloadStart().
Definition at line 103 of file remux.h.
References TS_CONT_CNT_MASK.
|
inline |
Definition at line 87 of file remux.h.
References TS_PID_MASK_HI.