source: svn/trunk/newcon3bcm2_21bu/BSEAV/lib/bcmplayer/include/bcmsct_index.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.4 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2002-2006, 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: bcmsct_index.h $
11 * $brcm_Revision: Irvine_BSEAVSW_Devel/2 $
12 * $brcm_Date: 3/21/06 11:07a $
13 *
14 * Module Description: Software startcode index generator
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /SetTop/bcmplayer/bcmsct_index.h $
19 *
20 * Irvine_BSEAVSW_Devel/2   3/21/06 11:07a erickson
21 * PR17108: use uint32_t for SCT structure
22 *
23 * Irvine_BSEAVSW_Devel/1   3/18/05 9:38a erickson
24 * PR14451: added 6 word SCT support
25 *
26 ****************************************************************/
27 
28#ifndef BCMSCT_INDEX_H__
29#define BCMSCT_INDEX_H__
30
31#include "bstd.h"
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37/**
38* Summary:
39* Data structure for 4 word start code table (SCT) index entry.
40*
41* Description:
42* In practice, you don't need to know anything about the interals of this structure. Just read data
43* from the Start Code Detect (SCD) hardware in chunks equal to sizeof(BSCT_Entry).
44* Bcmindexer will parse it and produce the Broadcom index.
45**/
46typedef struct
47{
48        uint32_t startCodeBytes;                /* 31:24 Start Code, 23:8 Two Bytes after SC, 7:0 Byte offset into trans packet */
49        uint32_t recordByteCount;       /* Byte offset from start of record to start of trans packet */
50        uint32_t recordByteCountHi;     /* 31:24 MSB Record Offset, 23:0 reserved */
51        uint32_t flags;                         /* various flags */
52} BSCT_Entry;
53
54/**
55Summary:
56Structure on a 6 word SCT entry.
57**/
58typedef struct BSCT_SixWord_Entry
59{
60        uint32_t word0;                         /* 31:24 SC_ENTRY_TYPE, 23:0 reserved */
61        uint32_t word1;                         /* 31:0 reserved */
62        uint32_t startCodeBytes;                /* 31:24 Start Code, 23:8 Two Bytes after SC, 7:0 Byte offset into trans packet */
63        uint32_t recordByteCount;       /* Byte offset from start of record to start of trans packet */
64        uint32_t recordByteCountHi;     /* 31:24 MSB Record Offset,
65                23:0 additional ES payload data, bytes 2, 3 and 4 */
66        uint32_t flags;                         /* 31:24 flags,
67                23:0 additional ES payload data, bytes 5, 6 and 7 */
68} BSCT_SixWord_Entry;
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* BCMSCT_INDEX_H__ */
Note: See TracBrowser for help on using the repository browser.