source: svn/trunk/newcon3bcm2_21bu/BSEAV/lib/mpeg2_ts_parse/ts_packet.h

Last change on this file was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 2.1 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: ts_packet.h $
11 * $brcm_Revision: 1 $
12 * $brcm_Date: 2/7/05 11:29p $
13 *
14 * [File Description:]
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /BSEAV/lib/mpeg2_ts_parse/ts_packet.h $
19 *
20 * 1   2/7/05 11:29p dlwin
21 * Merge down for release 2005_REFSW_MERGETOMAIN:
22 *
23 * Irvine_BSEAVSW_Devel/1   8/29/03 5:05p marcusk
24 * Initial Version.
25 *
26 ***************************************************************************/
27#ifndef TS_PACKET_H__
28#define TS_PACKET_H__
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34typedef struct
35{
36        bool            transport_error_indicator;
37        bool            payload_unit_start_indicator;
38        bool            transport_priority;
39        uint16_t        PID;
40        uint8_t         transport_scambling_control;
41        uint8_t         adaptation_field_control;
42        uint8_t         continuity_counter;
43        struct
44        {
45                bool            discontinuity_indicator;
46                bool            random_access_indicator;
47                bool            elementary_stream_priority_indicator;
48                bool            PCR_flag;
49                        uint64_t        program_clock_reference_base;   
50                        uint16_t        program_clock_reference_extension;
51                bool            OPCR_flag;
52                        uint64_t        original_program_clock_reference_base;
53                        uint16_t        original_program_clock_reference_extension;
54                bool            splicing_point_flag;
55                        uint8_t         splice_countdown;
56                bool            transport_private_data_flag;
57                        uint8_t         transport_private_data_length;
58                        const uint8_t *p_private_data_byte;
59                bool            adaptation_field_extension_flag;
60                        bool            ltw_flag;
61                                bool            ltw_valid_flag;
62                                uint16_t        ltw_offset;
63                        bool            piecewise_rate_flag;
64                                uint32_t        piecewise_rate;
65                        bool            seamless_splice_flag;
66                                uint8_t         splice_type;
67                                uint64_t        DTS_next_AU;
68        } adaptation_field;
69        const uint8_t *p_data_byte;
70        uint8_t         data_size;
71} TS_packet;
72
73void TS_parseTsPacket( const uint8_t *buf, TS_packet *p_packet );
74
75#ifdef __cplusplus
76}
77#endif
78#endif
79/* End of File */
Note: See TracBrowser for help on using the repository browser.