| 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 |
|---|
| 34 | extern "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 | **/ |
|---|
| 46 | typedef 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 | /** |
|---|
| 55 | Summary: |
|---|
| 56 | Structure on a 6 word SCT entry. |
|---|
| 57 | **/ |
|---|
| 58 | typedef 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__ */ |
|---|