⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tvptppdvb.h

📁 ti的数字电视芯片 tvp9000的源码
💻 H
字号:
/***************************************************************************** 
*    Property of Texas Instruments Incorporated, Copyright 2000
*    All rights reserved
******************************************************************************/
/*********************************************************************
*
* Description:
*  TvpTppDvb.h contains private declarations related to the DVB syntax
*  
*  Contents:
*      Control structures
*      Flags and bitstream definitions
*   
**********************************************************************/
/*********************************************************************
*
* $Revision: $
*
* $History: TvpTppDvb.h $
* 
*********************************************************************/
#ifndef TVP_TPP_DVB_DOT_H_IS_DEFINED
#define TVP_TPP_DVB_DOT_H_IS_DEFINED

/* Adaptation Field Flags */

#define TVP_AF_DISC_IND          0x80
#define TVP_AF_RANDOM_IND        0x40
#define TVP_AF_PRIORITY_IND      0x20
#define TVP_AF_PCR_FLAG          0x10
#define TVP_AF_OPCR_FLAG         0x08  
#define TVP_AF_SPLICING_FLAG     0x04  
#define TVP_AF_PRIV_DATA_FLAG    0x02     
#define TVP_AF_EXTENSION_FLAG    0x01


/* PES Flags */

#define TVP_PES_PTS_FLAG         0x80     
#define TVP_PES_DTS_FLAG         0x40     
#define TVP_PES_ESCR_FLAG        0x20     
#define TVP_PES_ES_RATE_FLAG     0x10     
#define TVP_PES_DSM_TRICK_FLAG   0x08
#define TVP_PES_ADD_COPY_FLAG    0x04
#define TVP_PES_CRC_FLAG         0x02
#define TVP_PES_EXTN_FLAG        0x01
#define TVP_PES_PRIV_DATA_FLAG   0x80     

/* STREAM_ID Flags */
#define TVP_PES_VID_STREAMID_MASK   0xF0
#define TVP_PES_VID_STREAMID_VALUE  0xE0
#define TVP_PES_AUD_STREAMID_MASK   0xE0
#define TVP_PES_AUD_STREAMID_VALUE  0xC0
#define TVP_PES_TXT_STREAMID_MASK   0xFF
#define TVP_PES_TXT_STREAMID_VALUE  0xBD

typedef struct
{
     unsigned char psc1;                /* Three bytes for the packet start code  */
     unsigned char psc2;                /* These bytes are all constants          */
     unsigned char psc3;
     unsigned char stream_id;           /* The stream id                          */
     unsigned char packet_length1;      /* The packet length is 16 bits long      */
     unsigned char packet_length2;
     unsigned char flag1;               /* 16 bits of header flags                */
     unsigned char flag2;
     unsigned char header_length;       /* the length of the pes header           */
     unsigned char pts1;
     unsigned char pts2;
     unsigned char pts3;
     unsigned char pts4;
     unsigned char pts5;
     unsigned char dts1;
     unsigned char dts2;
     unsigned char dts3;
     unsigned char dts4;
     unsigned char dts5;
}TvpPesHeader;


/* Section Flags */

#define TVP_SECTION_SIZE_MASK    0x0FFF
#define TVP_SECTION_OFFSET       3        /* to be added to section length    */

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -