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

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

first commit

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2008, 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: psip_dccsct.h $
11 * $brcm_Revision: 2 $
12 * $brcm_Date: 7/3/08 5:09p $
13 *
14 * [File Description:]
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /BSEAV/lib/mpeg2_ts_parse/psip_dccsct.h $
19 *
20 * 2   7/3/08 5:09p tokushig
21 * PR42421: added missing value in DCCSCT update_type enum
22 *
23 * 1   2/7/05 11:24p dlwin
24 * Merge down for release 2005_REFSW_MERGETOMAIN:
25 *
26 * Irvine_BSEAVSW_Devel/1   8/29/03 5:03p marcusk
27 * Initial Version.
28 *
29 ***************************************************************************/
30#ifndef PSIP_DCCSCT_H__
31#define PSIP_DCCSCT_H__
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37typedef struct
38{
39        uint16_t        dccsct_type;
40        uint8_t         updates_defined;
41} PSIP_DCCSCT_header;
42
43typedef enum
44{
45    PSIP_DCCSCT_reserved,
46        PSIP_DCCSCT_new_genre_category,
47        PSIP_DCCSCT_new_state,
48        PSIP_DCCSCT_new_county
49} PSIP_DCCSCT_update_type;
50
51typedef struct
52{
53        uint8_t                 genre_category_code;
54        const uint8_t   *p_genre_category_name_text;
55} PSIP_DCCSCT_genre;
56
57typedef struct
58{
59        uint8_t                 dcc_state_location_code;
60        const uint8_t   *p_dcc_state_location_code_text;
61} PSIP_DCCSCT_state;
62
63typedef struct
64{
65        uint8_t                 state_code;
66        uint16_t                dcc_county_location_code;
67        const uint8_t   *p_dcc_county_location_code_text;
68} PSIP_DCCSCT_county;
69
70typedef struct
71{
72        PSIP_DCCSCT_update_type update_type;
73        union
74        {
75                PSIP_DCCSCT_genre       genre;
76                PSIP_DCCSCT_state       state;
77                PSIP_DCCSCT_county      county;
78        } update;
79} PSIP_DCCSCT_update;
80
81void PSIP_DCCSCT_getHeader( const uint8_t *buf, PSIP_DCCSCT_header *p_header );
82TS_PSI_descriptor PSIP_DCCSCT_getAdditionalDescriptor( const uint8_t *buf, int descriptorNum );
83
84BERR_Code PSIP_DCCT_getUpdate( const uint8_t *buf, int updateNum, PSIP_DCCSCT_update *p_update );
85TS_PSI_descriptor PSIP_DCCT_getUpdateDescriptor( const uint8_t *buf, int updateNum, int descriptorNum );
86
87#ifdef __cplusplus
88}
89#endif
90#endif
91/* End of File */
Note: See TracBrowser for help on using the repository browser.