/*************************************************************************** * Copyright (c) 2002, Broadcom Corporation * All Rights Reserved * Confidential Property of Broadcom Corporation * * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. * * $brcm_Workfile: bcmDccPriv.h $ * $brcm_Revision: SanJose_MSTV_Devel/14 $ * $brcm_Date: 11/14/02 11:16a $ * * Module Description: * * Revision History: * * $brcm_Log: /SetTop/applications/vbi/Common/bcmDccPriv.h $ * * SanJose_MSTV_Devel/14 11/14/02 11:16a erikg * Minor Changes: 1. Made Packet and Service layers robust to a * shortened packet in which there is an incomplete service block: a) * packet layer stops on all packet boundaries, possibly returning * dccWrnPause b) service layer does cbUpdatePeek before exitting to * flush any incomplete service block 2. Improved the PAXEL logic in * bcmDccGfx.c 3. Added support for 16-bit surfaces in bcmDccGfx.c (but * left it in 32-bit mode). Merge from * SanJose_MSTV_Devel_erikg_PAXEL_Support_2002_11_04_1640_02 12-Nov- * 02.14:24:16 \SetTop\applications\vbi\Common\bcmDccPriv.h added * PROFILE_DBG build option --- 13-Nov-02.11:16:34 * \SetTop\applications\vbi\Common\bcmDccPriv.h removed PROFILE_DBG debug * code --- 14-Nov-02.10:56:21 * packet in which there is an incomplete service block: * 1. packet layer stops on all packet boundaries, possibly returning * dccWrnPause * 2. service layer does cbUpdatePeek before exitting to flush any * incomplete service block * --- 14-Nov-02.10:56:27 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccPacket.c cleanup b4 * release --- 12-Nov-02.14:24:23 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c added * PROFILE_DBG build option --- 13-Nov-02.11:16:43 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c removed * PROFILE_DBG debug code --- 12-Nov-02.14:24:27 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccCoding.c added * PROFILE_DBG build option --- 13-Nov-02.11:16:47 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccCoding.c removed * PROFILE_DBG debug code --- 12-Nov-02.15:12:36 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccService.c Made Packet * packet in which there is an incomplete service block: * 1. packet layer stops on all packet boundaries, possibly returning * dccWrnPause * 2. service layer does cbUpdatePeek before exitting to flush any * incomplete service block * --- 06-Nov-02.12:57:13 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c cleaned * up/fixed the paxel logic --- 07-Nov-02.09:26:49 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c put #if's * around WaitForPaxelDone --- 07-Nov-02.15:48:40 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c surface * format is 4444 --- 12-Nov-02.14:24:31 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c added * PROFILE_DBG build option --- 13-Nov-02.11:16:52 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c removed * PROFILE_DBG debug code --- 14-Nov-02.10:56:32 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c cleanup b4 * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_PAXEL_Support_2002_11_04_1640_02/2 11/13/02 11:16a erikg * removed PROFILE_DBG debug code * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_PAXEL_Support_2002_11_04_1640_02/1 11/12/02 2:24p erikg * added PROFILE_DBG build option * * SanJose_MSTV_Devel/13 10/25/02 10:30a erikg * Numerous Changes: 1. cbPostByte/Ptr fixed return val and Len logic 2. * DccEngine_Reset: save/restore user overrides 3. * DccEngine_Process708: finer grained pipe 4. ccgfx: fixed mem leak * in which fonts are not unloaded 5. added pre/post line space in ccgfx * and removed from 608 xcoder 6. 608 transcoder: implemented * BackSpace, ExtendedChar set, TAB 7. improved user override logic 8. * more selective mid-line re-render Merge from * SanJose_MSTV_Devel_erikg_week_oct_14_2002_10_14_1204_17 25-Oct- * 02.08:21:19 \SetTop\applications\vbi\public_inc\bcmDcc.h 1. finer * grained pipe * 2. more selective mid-line re-render --- 18-Oct-02.16:02:11 * \SetTop\applications\vbi\Common\bcmDccPriv.h made a number of the * config #defines actual globals * to facilitate run-time configuration --- 17-Oct-02.08:58:37 * \SetTop\applications\vbi\Common\bcmDccCBuf.c fixed return vals on * cbPostByte and cbPostPtr --- 25-Oct-02.08:20:18 * \SetTop\applications\vbi\Common\bcmDccCBuf.c fixed cbPostPtr Len logic * error --- 18-Oct-02.16:02:17 * \SetTop\applications\vbi\DTVCCLib\public_inc\bcmDccGfx.h made a number * of the config #defines actual globals * to facilitate run-time configuration --- 18-Oct-02.16:02:21 * \SetTop\applications\vbi\DTVCCLib\public_inc\bcmDTVCC708.h made a * number of the config #defines actual globals * to facilitate run-time configuration --- 22-Oct-02.17:09:38 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccPacket.c moved printf - * -- 17-Oct-02.09:01:01 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccInt.c improved user * override handling * DccEngine_Reset and ResetDownstream both preserve overrides --- 25-Oct- * 02.08:21:22 \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c 1. * finer grained pipe * 2. more selective mid-line re-render --- 25-Oct-02.08:42:49 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c misc changes - * -- 25-Oct-02.08:21:26 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntPriv.h 1. finer * grained pipe * 2. more selective mid-line re-render --- 25-Oct-02.08:21:29 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccCoding.c 1. finer * grained pipe * 2. more selective mid-line re-render --- 14-Oct-02.16:03:55 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c fixed MIPS * exception -- FontLoad was not matched w/ FontUnload --- 17-Oct- * 02.11:02:34 \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c * surface clipping --- 18-Oct-02.14:03:07 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c move leading * and trailing space into ccgfx --- 18-Oct-02.16:02:24 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c made a number * of the config #defines actual globals * to facilitate run-time configuration --- 25-Oct-02.08:42:57 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c misc changes * --- 25-Oct-02.10:16:25 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c prep for * release --- 17-Oct-02.09:01:06 * \SetTop\applications\vbi\Common\bcmDccEngine.c improved user override * handling * DccEngine_Reset and ResetDownstream both preserve overrides --- 18-Oct- * 02.16:02:29 \SetTop\applications\vbi\Common\bcmDccEngine.c made a * number of the config #defines actual globals * to facilitate run-time configuration --- 22-Oct-02.17:10:19 * \SetTop\applications\vbi\Common\bcmDccEngine.c added printf --- 25- * Oct-02.08:21:33 \SetTop\applications\vbi\Common\bcmDccEngine.c 1. * finer grained pipe * 2. more selective mid-line re-render --- 25-Oct-02.10:16:31 * \SetTop\applications\vbi\Common\bcmDccEngine.c prep for release --- * 18-Oct-02.14:03:15 * \SetTop\applications\vbi\DTVCCLib\source\bcmDcc608Transcoder.c move * leading and trailing space into ccgfx --- 21-Oct-02.14:51:16 * \SetTop\applications\vbi\DTVCCLib\source\bcmDcc608Transcoder.c support * for backspace and tab * support for extended char sets --- * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_week_oct_14_2002_10_14_1204_17/1 10/18/02 4:2p erikg * made a number of the config #defines actual globals * to facilitate run-time configuration * * SanJose_MSTV_Devel/12 10/4/02 11:40a erikg * Merge from SanJose_MSTV_Devel_erikg_SarnoffTestingA_2002_09_23_1350_22 * 04-Oct-02.11:31:25 \SetTop\applications\vbi\Docs Added file element * "SarnoffTesting.xls". --- 01-Oct-02.11:06:57 * \SetTop\applications\vbi\Common\bcmDccPriv.h various fixes during * testing * 1. window width * 2. pensize and monospacing simulation * 3. anchor logic in ccgfx --- 02-Oct-02.13:39:25 * \SetTop\applications\vbi\Common\bcmDccPriv.h build config as a debug * surface --- 02-Oct-02.15:41:35 * \SetTop\applications\vbi\Common\bcmDccPriv.h removed these #defines * and #if's * RENDER_INCREMENTAL * ANCHOR_LOGIC_IN_CCGFX * CHECK_FOR_OVERLAPPED_SCROLLS * ZEROBASED_RCCOUNT --- 01-Oct-02.11:07:04 * \SetTop\applications\vbi\DTVCCLib\public_inc\bcmDccGfx.h various fixes * during testing * 1. window width * 2. pensize and monospacing simulation * 3. anchor logic in ccgfx --- 02-Oct-02.15:41:41 * \SetTop\applications\vbi\DTVCCLib\public_inc\bcmDccGfx.h removed these * #defines and #if's * RENDER_INCREMENTAL * ANCHOR_LOGIC_IN_CCGFX * CHECK_FOR_OVERLAPPED_SCROLLS * ZEROBASED_RCCOUNT --- 04-Oct-02.10:20:39 * \SetTop\applications\vbi\DTVCCLib\public_inc\bcmDccCoding.h misc * cleanup for release --- 02-Oct-02.15:41:45 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccCodingC1Handlers.c * removed these #defines and #if's * RENDER_INCREMENTAL * ANCHOR_LOGIC_IN_CCGFX * CHECK_FOR_OVERLAPPED_SCROLLS * ZEROBASED_RCCOUNT --- 01-Oct-02.11:07:21 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c various fixes * during testing * 1. window width * 2. pensize and monospacing simulation * 3. anchor logic in ccgfx --- 01-Oct-02.14:43:32 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c flash working * again --- 02-Oct-02.13:39:32 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c build config * as a debug surface --- 02-Oct-02.15:41:49 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c removed these * #defines and #if's * RENDER_INCREMENTAL * ANCHOR_LOGIC_IN_CCGFX * CHECK_FOR_OVERLAPPED_SCROLLS * ZEROBASED_RCCOUNT --- 04-Oct-02.10:20:44 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccIntGfx.c misc cleanup * for release --- 01-Oct-02.11:07:26 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccCoding.c various fixes * during testing * 1. window width * 2. pensize and monospacing simulation * 3. anchor logic in ccgfx --- 04-Oct-02.10:20:48 * \SetTop\applications\vbi\DTVCCLib\source\bcmDccCoding.c misc cleanup * for release --- 01-Oct-02.11:07:30 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c various fixes * during testing * 1. window width * 2. pensize and monospacing simulation * 3. anchor logic in ccgfx --- 01-Oct-02.14:43:37 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c flash working * again --- 01-Oct-02.15:17:09 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c use * cxMonoSpacing instead of cxCell in places --- 02-Oct-02.13:39:36 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c build config * as a debug surface --- 02-Oct-02.15:41:52 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c removed these * #defines and #if's * RENDER_INCREMENTAL * ANCHOR_LOGIC_IN_CCGFX * CHECK_FOR_OVERLAPPED_SCROLLS * ZEROBASED_RCCOUNT --- 04-Oct-02.09:42:11 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c turned on * paxel * --- 04-Oct-02.10:20:52 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c misc cleanup * for release --- 01-Oct-02.11:07:34 * \SetTop\applications\vbi\Common\bcmDccEngine.h various fixes during * testing * 1. window width * 2. pensize and monospacing simulation * 3. anchor logic in ccgfx --- 01-Oct-02.11:07:38 * \SetTop\applications\vbi\Common\bcmDccEngine.c various fixes during * testing * 1. window width * 2. pensize and monospacing simulation * 3. anchor logic in ccgfx --- 04-Oct-02.10:20:57 * \SetTop\applications\vbi\Common\bcmDccEngine.c misc cleanup for * release --- 02-Oct-02.15:41:57 * \SetTop\applications\vbi\DTVCCLib\source\bcmDcc608Transcoder.c removed * these #defines and #if's * RENDER_INCREMENTAL * ANCHOR_LOGIC_IN_CCGFX * CHECK_FOR_OVERLAPPED_SCROLLS * ZEROBASED_RCCOUNT --- 04-Oct-02.11:31:19 * \SetTop\applications\vbi\Docs@@\main\SanJose_MSTV_Devel\SanJose_MSTV_D * evel_erikg_SarnoffTestingA_2002_09_23_1350_22\1\SarnoffTesting.xls new * file --- * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_SarnoffTestingA_2002_09_23_1350_22/3 10/2/02 3:41p erikg * removed these #defines and #if's * RENDER_INCREMENTAL * ANCHOR_LOGIC_IN_CCGFX * CHECK_FOR_OVERLAPPED_SCROLLS * ZEROBASED_RCCOUNT * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_SarnoffTestingA_2002_09_23_1350_22/2 10/2/02 1:39p erikg * build config as a debug surface * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_SarnoffTestingA_2002_09_23_1350_22/1 10/1/02 11:6a erikg * various fixes during testing * 1. window width * 2. pensize and monospacing simulation * 3. anchor logic in ccgfx * * SanJose_MSTV_Devel/11 9/20/02 3:42p erikg * Major Changes: 1. reworked Engine API 2. removed need for include * memory.h, changed memset to dcc_memset 3. fixed cbWritePtr error * handling 4. cleanup of bcmDccPriv.h 5. cleanup of ccgfxInit and * ccgfxFini 6. added support for reset cmd in bcmDccCoding.c 7. added * more error codes in bcmDcc.h Merge from * SanJose_MSTV_Devel_erikg_SarnoffDebug_2002_09_10_1035_19 18-Sep- * 02.10:26:19 \SetTop\applications\vbi\public_inc\bcmDcc.h totally * reworked Engine Interface --- 18-Sep-02.14:44:46 * \SetTop\applications\vbi\public_inc\bcmDcc.h various fixes for build * issues when adding new engine api --- 13-Sep-02.09:03:16 * \SetTop\applications\vbi\Common\bcmDccPriv.h added g_DumpStreamFlags - * -- 18-Sep-02.14:44:52 \SetTop\applications\vbi\Common\bcmDccPriv.h * ccgfxFini calls srpInit --- 13-Sep-02.09:02:04 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c scoot gfx --- * 16-Sep-02.16:41:11 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c merged out -- * - 19-Sep-02.15:08:35 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c cleaned up * bcmDccPriv.h --- 20-Sep-02.15:36:05 * \SetTop\applications\vbi\DTVCCLib\CCGfx\7030\bcmDccGfx.c prep for * release --- 17-Sep-02.15:13:40 * \SetTop\applications\vbi\Common\bcmDccEngine.h reworked engine in * progress --- 18-Sep-02.10:26:16 * \SetTop\applications\vbi\Common\bcmDccEngine.h totally reworked Engine * --- 18-Sep-02.10:26:13 \SetTop\applications\vbi\Common\bcmDccEngine.c * totally reworked Engine Interface --- 18-Sep-02.14:45:08 * \SetTop\applications\vbi\Common\bcmDccEngine.c various fixes for build * issues when adding new engine api --- 19-Sep-02.15:08:39 * \SetTop\applications\vbi\Common\bcmDccEngine.c cleaned up bcmDccPriv.h * --- 19-Sep-02.15:33:11 \SetTop\applications\vbi\Common\bcmDccEngine.c * took out #ifdef'ed out code --- 10-Sep-02.14:08:44 * \SetTop\applications\vbi\DTVCCLib\source\bcmDcc608Transcoder.c added * g_DumpStreamFlags --- 13-Sep-02.09:02:43 * \SetTop\applications\vbi\DTVCCLib\source\bcmDcc608Transcoder.c test * for 15 --- 18-Sep-02.14:45:12 * \SetTop\applications\vbi\DTVCCLib\source\bcmDcc608Transcoder.c various * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_SarnoffDebug_2002_09_10_1035_19/4 9/19/02 3:8p erikg * cleaned up bcmDccPriv.h * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_SarnoffDebug_2002_09_10_1035_19/3 9/19/02 2:32p erikg * cleaned up and removed support for windows/wince * * SanJose_MSTV_Devel/SanJose_MSTV_Devel_erikg_SarnoffDebug_2002_09_10_1035_19/2 9/18/02 2:44p erikg * various fixes for build issues when adding new engine api * * ***************************************************************************/ #ifndef BCMDCCPRIV_H #define BCMDCCPRIV_H #ifdef __cplusplus extern "C" { #endif #include "projinc.h" #define dcc_memset memset #define FLASH_BY_RERENDER 0 #define FLASH_BY_2SURFACES 0 #define CREATE_ONLY_VISIBLE_WINDOWS 0 #if 1 #if 1 #define DccPrintf(x) ((void)0) #define DccPrintfEx(x) ((void)0) #else #define DccPrintf(x) BAPP_EIA708_CHECK() #define DccPrintfEx(x) BAPP_EIA708_CHECK() #endif #else #define DccPrintf(x) printf x #define DccPrintfEx(x) printf x #endif #define dsfUSERDATA 1 #define dsfTRANSPORT 2 #define dsf608TRANSCODER 4 #define dsfCODING 8 #ifndef NULL #define NULL (0) #endif #ifndef min #define min(a,b) (((a)<(b)) ? (a) : (b)) #endif #ifndef max #define max(a,b) (((a)>(b)) ? (a) : (b)) #endif #ifndef DCCPRINTF_HERE extern int g_DumpStreamFlags ; extern void DccPrintfFunctionEx(int cond, const char *FmtStr, ...); extern int SPACE_PRE ; extern int SPACE_POST ; extern int xSafeTitleOffset ; extern int ySafeTitleOffset ; extern int cxCell ; extern int cyCell ; extern int cx3242 ; extern int cy15 ; extern int cxGrid160210 ; extern int cyGrid75 ; #else int g_DumpStreamFlags = 0 ; int SPACE_PRE = 12 ; int SPACE_POST = 12 ; int xSafeTitleOffset = 40 ; int ySafeTitleOffset = 30 ; int cxCell = 15 ; int cyCell = 25 ; int cx3242 = 32 ; int cy15 = 15 ; int cxGrid160210 = 160 ; int cyGrid75 = 75 ; // #include "bcmdevice.h" extern void DccPrintfFunctionEx(int cond, const char *FmtStr, ...); #endif #ifdef __cplusplus } #endif #endif /* BCMDCCPRIV_H */