pcr.h
资源名称:PSParse.rar [点击查看]
上传用户:thjx518
上传日期:2022-03-16
资源大小:179k
文件大小:1k
源码类别:
mpeg/mp3
开发平台:
Visual C++
- #ifndef DVBSEND_H
- #define DVBSEND_H
- #pragma pack(1)
- typedef struct {
- unsigned char SyncByte;
- unsigned short PID:13;
- unsigned short TransPortPriority:1;
- unsigned short PayLoadUnitStartIndicator:1;
- unsigned short TransportErrorIndicator:1;
- unsigned char continuity_conter:4;
- unsigned char adptation_field_control:2;
- unsigned char transport_scrambling_conreol:2;
- }TS;
- typedef struct{
- unsigned char adaptation_field_length;
- unsigned char filled:4;
- unsigned char pcr_flag:1;
- unsigned char elementaty_stream_priority_indicator:1;
- unsigned char random_access_indicator:1;
- unsigned char discontinuity_indicator:1;
- unsigned long pcr_base; //__int_32
- unsigned short pcr_ext:9;
- unsigned short reserved:6;
- unsigned short pcr_basebit:1;
- }Adaptor;
- #pragma pack()
- char *FindType(char *buf,int len,int Type);
- void GetElementPID(const char *filename,USHORT pcrpid,long *bitrate);
- void SetPCR(UCHAR*pack,__int64 pcrvalue);
- #endif