| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2010, 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: bvbilib_dccparse.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/26 $ |
|---|
| 12 | * $brcm_Date: 10/21/10 4:36p $ |
|---|
| 13 | * |
|---|
| 14 | * Module Description: |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/syslib/vbilib/bvbilib_dccparse.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/26 10/21/10 4:36p darnstein |
|---|
| 21 | * SW7401-2571: cut over to the DSS userdata parser that DSS customer |
|---|
| 22 | * engineers perfer. |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/25 8/27/10 1:51p darnstein |
|---|
| 25 | * SW3548-3022: merge to production branch. |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/SW3548-3022/2 8/2/10 1:28p darnstein |
|---|
| 28 | * SW3548-3022: #include'd another file for backwards compatibiliby. |
|---|
| 29 | * |
|---|
| 30 | * Hydra_Software_Devel/SW3548-3022/1 7/28/10 4:38p darnstein |
|---|
| 31 | * SW3548-3022: bitstream parsing is relayed to commonutils module BUDP. |
|---|
| 32 | * |
|---|
| 33 | * Hydra_Software_Devel/24 3/24/10 3:17p darnstein |
|---|
| 34 | * SW7405-4084: add function BVBIlib_DCCparse_Divicom() to parse Divicom |
|---|
| 35 | * closed caption data. |
|---|
| 36 | * |
|---|
| 37 | * Hydra_Software_Devel/23 12/14/09 3:58p darnstein |
|---|
| 38 | * SW7405-3527: There are now two SEI parsers. One is for legacy |
|---|
| 39 | * customers. The other is for up to data, ATSC-53 style data. |
|---|
| 40 | * |
|---|
| 41 | * Hydra_Software_Devel/22 10/26/07 10:50a ptimariu |
|---|
| 42 | * PR36451: closing bracket, __cplusplus |
|---|
| 43 | * |
|---|
| 44 | * Hydra_Software_Devel/22 10/25/07 6:35p ptimariu |
|---|
| 45 | * PR36451: closing bracket, __cplusplus |
|---|
| 46 | * |
|---|
| 47 | * Hydra_Software_Devel/22 10/25/07 6:31p ptimariu |
|---|
| 48 | * PR36451: closing bracket, __cplusplus |
|---|
| 49 | * |
|---|
| 50 | * Hydra_Software_Devel/21 9/11/07 5:17p darnstein |
|---|
| 51 | * PR25708: First release of SCTE encoder software. |
|---|
| 52 | * |
|---|
| 53 | * Hydra_Software_Devel/20 6/6/07 12:50p darnstein |
|---|
| 54 | * PR30411: multi-line closed caption encoding is ready for test. |
|---|
| 55 | * |
|---|
| 56 | * Hydra_Software_Devel/19 12/6/06 1:55p gmohile |
|---|
| 57 | * PR 25904: add support for AFD parsing |
|---|
| 58 | * |
|---|
| 59 | * Hydra_Software_Devel/19 12/6/06 1:50p gmohile |
|---|
| 60 | * PR 25904: add support for parsing AFD |
|---|
| 61 | * |
|---|
| 62 | * Hydra_Software_Devel/19 12/6/06 12:47p gmohile |
|---|
| 63 | * PR 25904: add support for parsing AFD |
|---|
| 64 | * |
|---|
| 65 | * Hydra_Software_Devel/19 12/6/06 10:22a gmohile |
|---|
| 66 | * PR 25904: add support for parsing AFD |
|---|
| 67 | * |
|---|
| 68 | * Hydra_Software_Devel/18 3/20/06 3:34p darnstein |
|---|
| 69 | * PR20137: Return data items even if they have cc_valid=0. Also, return |
|---|
| 70 | * the information cc_valid=0/1 to the caller of BVBIlib_dccparse(). All |
|---|
| 71 | * this is needed to use the data for EIA-708B processing. |
|---|
| 72 | * |
|---|
| 73 | * Hydra_Software_Devel/17 8/15/05 4:15p darnstein |
|---|
| 74 | * PR16057: Remove reference to a BMVD header file. |
|---|
| 75 | * |
|---|
| 76 | * Hydra_Software_Devel/16 6/8/05 3:10p darnstein |
|---|
| 77 | * PR 15784: Can now parse DSS/AVC/SEI userdata. Lightly tested. Is the |
|---|
| 78 | * top/bottom field decision correct? |
|---|
| 79 | * |
|---|
| 80 | * Hydra_Software_Devel/15 5/31/05 2:33p darnstein |
|---|
| 81 | * PR 15707: Adapt to new data structure BAVC_USERDATA_info. |
|---|
| 82 | * |
|---|
| 83 | * Hydra_Software_Devel/15 5/31/05 2:30p darnstein |
|---|
| 84 | * PR 15707: Adapt to new data structure BAVC_USERDATA_info. |
|---|
| 85 | * |
|---|
| 86 | * Hydra_Software_Devel/14 5/27/05 4:38p vsilyaev |
|---|
| 87 | * PR14397: Accented that BMVD_USERDATA parameter isn't modified |
|---|
| 88 | * |
|---|
| 89 | * Hydra_Software_Devel/13 4/11/05 12:42p darnstein |
|---|
| 90 | * PR 14477: fix coding errors discovered by Biyong's customer. |
|---|
| 91 | * |
|---|
| 92 | * Hydra_Software_Devel/12 4/6/05 5:12p darnstein |
|---|
| 93 | * PR 14477: use a new attribute bIsAnalog to distinguish analog closed |
|---|
| 94 | * caption data from more general (digital) forms. |
|---|
| 95 | * |
|---|
| 96 | * Hydra_Software_Devel/11 4/6/05 3:30p darnstein |
|---|
| 97 | * PR 14477: Parse DVS 157 and DVS053 data according to cc_field_number. |
|---|
| 98 | * |
|---|
| 99 | * Hydra_Software_Devel/10 1/14/05 4:22p darnstein |
|---|
| 100 | * PR 13798: Add Bill Fassl's parsing capability as a separate function. |
|---|
| 101 | * |
|---|
| 102 | * Hydra_Software_Devel/9 12/14/04 12:45p darnstein |
|---|
| 103 | * PR 13504: Take out prototype of function BVBIlib_DCCparse_ccdata(). |
|---|
| 104 | * It is not implemented, and a different calling sequence is required |
|---|
| 105 | * anyway. |
|---|
| 106 | * |
|---|
| 107 | * Hydra_Software_Devel/8 12/14/04 12:43p darnstein |
|---|
| 108 | * PR 13504: Provide userdata type to caller. May help to resolve this |
|---|
| 109 | * PR. |
|---|
| 110 | * |
|---|
| 111 | * Hydra_Software_Devel/7 12/6/04 4:57p darnstein |
|---|
| 112 | * PR 13248: Improve a comment block. |
|---|
| 113 | * |
|---|
| 114 | * Hydra_Software_Devel/6 12/6/04 2:28p darnstein |
|---|
| 115 | * PR 13248: Use a simple method for determining whether to output CC |
|---|
| 116 | * bytes top or bottom field. |
|---|
| 117 | * |
|---|
| 118 | * Hydra_Software_Devel/5 11/16/04 7:58p shyam |
|---|
| 119 | * PR 8365 : Added CC type in parse module |
|---|
| 120 | * |
|---|
| 121 | * Hydra_Software_Devel/4 10/18/04 5:11p darnstein |
|---|
| 122 | * PR 12874: remove an unnecessary #include file from API header file |
|---|
| 123 | * bvbilibdccparse.h. |
|---|
| 124 | * |
|---|
| 125 | * Hydra_Software_Devel/3 10/18/04 5:06p darnstein |
|---|
| 126 | * PR 12874: Restore the calling sequence of BVBILIB_DCCparse() to avoid |
|---|
| 127 | * giving problems to Broadcom customers. |
|---|
| 128 | * |
|---|
| 129 | * Hydra_Software_Devel/2 10/12/04 11:39a darnstein |
|---|
| 130 | * PR 12874: Only access MPEG userdata on 32-bit address boundaries. |
|---|
| 131 | * Otherwise, userdata seems to read as 0xff. I do not know why. Note |
|---|
| 132 | * that the API of this sub-module had to change. |
|---|
| 133 | * |
|---|
| 134 | * Hydra_Software_Devel/1 4/20/04 2:10p darnstein |
|---|
| 135 | * PR 9080: ready for initial testing. |
|---|
| 136 | * |
|---|
| 137 | ***************************************************************************/ |
|---|
| 138 | |
|---|
| 139 | /*= Module Overview ********************************************************* |
|---|
| 140 | <verbatim> |
|---|
| 141 | |
|---|
| 142 | Overview |
|---|
| 143 | This software has been moved to the BUDP commonutils module. |
|---|
| 144 | |
|---|
| 145 | </verbatim> |
|---|
| 146 | ***************************************************************************/ |
|---|
| 147 | |
|---|
| 148 | #ifndef BVBILIBDCCPARSE_H__ |
|---|
| 149 | #define BVBILIBDCCPARSE_H__ |
|---|
| 150 | |
|---|
| 151 | #include "budp_dccparse.h" |
|---|
| 152 | |
|---|
| 153 | #ifdef __cplusplus |
|---|
| 154 | extern "C" { |
|---|
| 155 | #endif |
|---|
| 156 | |
|---|
| 157 | typedef enum { |
|---|
| 158 | BVBIlib_DCCparse_Format_Unknown = BUDP_DCCparse_Format_Unknown, |
|---|
| 159 | BVBIlib_DCCparse_Format_DVS157 = BUDP_DCCparse_Format_DVS157, |
|---|
| 160 | BVBIlib_DCCparse_Format_ATSC53 = BUDP_DCCparse_Format_ATSC53, |
|---|
| 161 | BVBIlib_DCCparse_Format_DVS053 = BUDP_DCCparse_Format_DVS053, |
|---|
| 162 | BVBIlib_DCCparse_Format_SEI = BUDP_DCCparse_Format_SEI, |
|---|
| 163 | BVBIlib_DCCparse_Format_SEI2 = BUDP_DCCparse_Format_SEI2, |
|---|
| 164 | BVBIlib_DCCparse_Format_AFD53 = BUDP_DCCparse_Format_AFD53, |
|---|
| 165 | BVBIlib_DCCparse_Format_Divicom = BUDP_DCCparse_Format_Divicom |
|---|
| 166 | } |
|---|
| 167 | BVBIlib_DCCparse_Format; |
|---|
| 168 | |
|---|
| 169 | /* Data structure */ |
|---|
| 170 | #define BVBIlib_DCCparse_ccdata BUDP_DCCparse_ccdata |
|---|
| 171 | |
|---|
| 172 | /* Functions */ |
|---|
| 173 | #define BVBIlib_DCCparse BUDP_DCCparse |
|---|
| 174 | #define BVBIlib_DCCparse_SEI BUDP_DCCparse_SEI |
|---|
| 175 | #define BVBIlib_DCCparse_Divicom BUDP_DCCparse_Divicom |
|---|
| 176 | |
|---|
| 177 | #ifdef __cplusplus |
|---|
| 178 | } |
|---|
| 179 | #endif |
|---|
| 180 | |
|---|
| 181 | #endif /* BVBILIBDCCPARSE_H__ */ |
|---|