source: svn/trunk/newcon3bcm2_21bu/BSEAV/lib/si/scte65/ntt/si_ntt.h

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

first commit

  • Property svn:executable set to *
File size: 1.8 KB
Line 
1/***************************************************************
2**
3** Broadcom Corp. Confidential
4** Copyright 2003-2008 Broadcom Corp. All Rights Reserved.
5**
6** THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED
7** SOFTWARE LICENSE AGREEMENT BETWEEN THE USER AND BROADCOM.
8** YOU HAVE NO RIGHT TO USE OR EXPLOIT THIS MATERIAL EXCEPT
9** SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
10**
11** File:                si_ntt.h
12** Description: defines and headers for function that parses the
13**                              NTT table sections.
14**
15** Created: 03/08/2001
16**
17** REVISION:
18**
19** $Log: $
20**
21**
22****************************************************************/
23
24#ifndef SI_NTT_H
25#define SI_NTT_H
26
27#include "si_ntt_sns.h"
28
29#define NTT_SNS_SUBTYPE         0x6
30
31/* For the following, refer to table 5.10 of ANSI/SCTE65 2002 (DVS234) */
32#define NTT_TABLE_ID_BYTE_INDX          0
33#define NTT_TABLE_ID_BYTE_NUM                   1
34#define NTT_TABLE_ID_SHIFT                      0
35#define NTT_TABLE_ID_MASK                               0xff
36
37#define NTT_SECTION_LENGTH_BYTE_INDX    1
38#define NTT_SECTION_LENGTH_BYTE_NUM    2
39#define NTT_SECTION_LENGTH_SHIFT    0
40#define NTT_SECTION_LENGTH_MASK    0x0fff
41
42#define NTT_PROTOCOL_VERSION_BYTE_INDX    3
43#define NTT_PROTOCOL_VERSION_BYTE_NUM    1
44#define NTT_PROTOCOL_VERSION_SHIFT    0
45#define NTT_PROTOCOL_VERSION_MASK    0x1f
46
47#define NTT_ISO_639_CODE_BYTE_INDX    4
48#define NTT_ISO_639_CODE_BYTE_NUM    3
49#define NTT_ISO_639_CODE_SHIFT    0
50#define NTT_ISO_639_CODE_MASK    0xffffff
51
52#define NTT_TABLE_SUBTYPE_BYTE_INDX    7
53#define NTT_TABLE_SUBTYPE_BYTE_NUM    1
54#define NTT_TABLE_SUBTYPE_SHIFT    0
55#define NTT_TABLE_SUBTYPE_MASK    0xf
56
57
58#ifdef __cplusplus
59extern "C" {
60#endif
61
62void SI_NTT_Init(SI_NTT_SNS_Callback_t *cb, unsigned char NTT_SNS_version_number);
63SI_RET_CODE SI_NTT_parse (unsigned char * table);
64bool SI_NTT_SNS_Complete(void);
65
66#ifdef __cplusplus
67}
68#endif
69
70
71
72#endif
Note: See TracBrowser for help on using the repository browser.