source: svn/newcon3bcm2_21bu/BSEAV/lib/scte65/svct/si_svct.h @ 26

Last change on this file since 26 was 26, checked in by phkim, 11 years ago
  1. phkim
  2. 서경방소에서 kctv 로고 변경
  • Property svn:executable set to *
File size: 2.0 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_svct.h
12** Description: defines and headers for function that parses the
13**                              S-VCT table sections.
14**
15** Created: 03/08/2001
16**
17** REVISION:
18**
19** $Log: $
20**
21**
22****************************************************************/
23
24#ifndef SI_SVCT_H
25#define SI_SVCT_H
26
27#include "si_svct_vcm.h"
28
29typedef enum 
30{
31        VCM,
32        DCM,
33        ICM,
34} SVCT_TABLE_SUBTYPE;
35
36/* For the following, refer to table 5.13 of ANSI/SCTE65 2002 (DVS234) */
37#define SVCT_TABLE_ID_BYTE_INDX         0
38#define SVCT_TABLE_ID_BYTE_NUM                  1
39#define SVCT_TABLE_ID_SHIFT                     0
40#define SVCT_TABLE_ID_MASK                              0xff
41
42#define SVCT_SECTION_LENGTH_BYTE_INDX    1
43#define SVCT_SECTION_LENGTH_BYTE_NUM    2
44#define SVCT_SECTION_LENGTH_SHIFT    0
45#define SVCT_SECTION_LENGTH_MASK    0x0fff
46
47#define SVCT_PROTOCOL_VERSION_BYTE_INDX    3
48#define SVCT_PROTOCOL_VERSION_BYTE_NUM    1
49#define SVCT_PROTOCOL_VERSION_SHIFT    0
50#define SVCT_PROTOCOL_VERSION_MASK    0x1f
51
52#define SVCT_TRANS_MEDIUM_BYTE_INDX    4
53#define SVCT_TRANS_MEDIUM_BYTE_NUM    1
54#define SVCT_TRANS_MEDIUM_SHIFT    4
55#define SVCT_TRANS_MEDIUM_MASK    0xf
56
57#define SVCT_TABLE_SUBTYPE_BYTE_INDX    4
58#define SVCT_TABLE_SUBTYPE_BYTE_NUM    1
59#define SVCT_TABLE_SUBTYPE_SHIFT    0
60#define SVCT_TABLE_SUBTYPE_MASK    0xf
61
62#define SVCT_VCT_ID_BYTE_INDX    5
63#define SVCT_VCT_ID_BYTE_NUM    2
64#define SVCT_VCT_ID_SHIFT    0
65#define SVCT_VCT_ID_MASK    0xffff
66
67
68#ifdef __cplusplus
69extern "C" {
70#endif
71
72void SI_SVCT_Init(SI_SVCT_VCM_Callback_t *cb,unsigned char SVCT_VCM_version_number);
73SI_RET_CODE SI_SVCT_parse (unsigned char * table);
74bool SI_SVCT_Complete(void);
75
76#ifdef __cplusplus
77}
78#endif
79
80
81#endif
Note: See TracBrowser for help on using the repository browser.