source: svn/newcon3bcm2_21bu/BSEAV/lib/scte_127/pmt_desc_scte_127.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: 2.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: pmt_desc_scte_127.h $
11 * $brcm_Revision: $
12 * $brcm_Date: $
13 *
14 * [File Description:]
15 *
16 * Revision History:
17 *
18 ***************************************************************************/
19#ifndef PMT_DESC_SCTE_127_H__
20#define PMT_DESC_SCTE_127_H__
21
22#include "bstd.h"
23#include "ts_priv.h"
24
25#ifdef  HOST_BUILD
26
27#define SCTE_127_DATA_SERVICE_ID_AMOL           0xFE    /* AMOL 48/96 */
28#define SCTE_127_DATA_SERVICE_ID_NABTS          0xFC    /* North American Basic Teletext Specification */
29#define SCTE_127_DATA_SERVICE_ID_TVG2X          0xFB
30#define SCTE_127_DATA_SERVICE_ID_CP             0xF9    /* copy protection */
31#define SCTE_127_DATA_SERVICE_ID_VITC           0xF7    /* Vertical Interval Time Code */
32
33#else
34#include "scte_127.h"
35#endif
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
41#define PMT_DESC_ADAPTATION_OFFSET              3       /* relative to TS packet */
42#define PMT_DESC_TABLE_ID_OFFSET                5       /* relative to TS packet */
43#define PMT_DESC_SECTION_LEN_OFFSET             6       /* 12 bits */
44#define PMT_DESC_PROGRAM_NO_OFFSET              8       /* 16 bits */
45#define PMT_DESC_INFO_LEN_OFFSET                15      /* 12 bits */
46#define PMT_DESC_LOOP_NO_OFFSET                 17      /* 8 bits */
47
48#define PMT_DESC_TABLE_CODE_ID                  0x02   
49#define PMT_DESC_STREAM_TYPE_MPEG2              0x02   
50#define PMT_DESC_STREAM_TYPE_AC3                0x81   
51#define PMT_DESC_STREAM_TYPE_PRIVATE            0x06   
52#define PMT_DESC_VBI_DESCRIPTOR_ID              0x45    /* VBI descriptor for SCTE 127 */
53
54typedef struct {
55        uint8_t         stream_type;
56        uint16_t        elementary_pid;
57        uint16_t        es_info_length;
58} pmt_descriptor, *ppmt_descriptor;
59
60/* NOTE use these functions in HOST_BUILD only, for embedded platform, use mpeg library functions instead */
61#ifdef  HOST_BUILD
62uint8_t *pmt_parser_ts(const uint8_t *pmt, size_t *size, size_t *desc);
63void pmt_desc_scte127_dump(const uint8_t *desc_data, pmt_descriptor *desc);
64#endif
65
66/* only this function to check descritor in PRIVATE stream descritor is for SCTE 127 or not */
67uint8_t *pmt_table_parser(const uint8_t *pmt_table, size_t size, size_t *desc_bytes);
68uint8_t *pmt_desc_is_scte127(const uint8_t *desc_data, uint16_t es_info_length);
69uint8_t *pmt_desc_find(const uint8_t *desc_data, size_t desc_bytes, pmt_descriptor *pmt_desc);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* PMT_DESC_SCTE_127_H__ */
76/* End of File */
Note: See TracBrowser for help on using the repository browser.