source: svn/newcon3bcm2_21bu/BSEAV/lib/ts_cat/ca_parser.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 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:  $
11 * $brcm_Revision:  $
12 * $brcm_Date: $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log:  $
19 *
20 ***************************************************************************/
21#ifndef CA_PARSER_H__
22#define CA_PARSER_H__
23
24#include "bstd.h"
25#include "berr_ids.h"
26
27#ifdef  HOST_BUILD
28#define BDBG_MSG(x)     
29#define BDBG_WRN(x)     printf x
30//#define       BDBG_ERR(x)     printf x
31#endif
32
33#ifdef  __cplusplus
34extern "C" {
35#endif
36
37#ifndef TS_PSI_DT_CA
38#define TS_PSI_DT_CA                    0x09
39#endif
40
41#define CA_LENGTH_OFFSET                1       /* offset relative to CA descriptor header */
42
43#define CA_MAX_PRIV_DATA                32      /* maximum private data */
44
45typedef struct ca_descriptor
46{
47        uint16_t CA_system_ID;                  /* 16 bit system ID */
48        uint16_t CA_PID;                                /* 13 bit CA PID */
49        uint8_t  priv_length;                   /* length of private data */
50                uint8_t  priv_data[CA_MAX_PRIV_DATA];   /* private data */
51                uint32_t sig;                                   /* signature  */
52} ca_descriptor;
53
54uint8_t *cat_parser(const uint8_t *ca_buf, size_t *psize);
55int ca_parser(const uint8_t *ca_buf, size_t size, ca_descriptor *ca_desc);
56void ca_dump_descriptor(ca_descriptor *ca_desc);
57
58#ifdef  __cplusplus
59}
60#endif
61
62#endif /* CA_PARSER_H__ */
Note: See TracBrowser for help on using the repository browser.