#ifndef __CC_PRIVATE_H__ #define __CC_PRIVATE_H__ //debug //level: 4(0~3) #if CC_DBG_ON #define CCPRINT DCCUtil_DbgPrint #else #define CCPRINT(...) #endif void DCCUtil_DbgPrint(char *pname, char *fmt, ...); void DCCUtil_ShowDbgItem(void); void DCCUtil_SetDbgOn(char *pname, BOOL is_on); void DCCUtil_ToggleDbgOn(char *pname); void DCCUtil_SetDbgOnByIdx(int idx, BOOL is_on); void DCCUtil_ToggleDbgOnByIdx(int idx); //time #define TIMER_NOUSE ((UINT32)-1) #define MAX_NUM_TIMER 8 #define TIMER_ID_RST (MAX_NUM_TIMER-1) #define TIMER_ID_CLEAR_SCREEN (MAX_NUM_TIMER-2) #define TIMER_ID_FLASH (MAX_NUM_TIMER-3) #define CC_MS_PASS(s) (DCCDDI_GetCurMs()-(s)) //MAIN void DCCMain_Init(void); void DCCMain_SendCmd(UINT8 cmd, UINT32 opt, UINT32 param1, UINT32 param2); void DCCMain_ResetQueue(void); void DCCMain_UserMsgOnOff(BOOL bon); //CCDDI #if 1//BRCM typedef DHL_OS_MSGQ_ID tDCCDDI_MSGQ; #else typedef UINT32 tDCCDDI_MSGQ; #endif typedef UINT32 tDCCDDI_SEM; void *DCCDDI_Malloc(int size); void DCCDDI_Printf(const char *fmt, ...); void DCCDDI_SpawnTask(void *func); tDCCDDI_MSGQ DCCDDI_CreateMessageQueue(char *pname, UINT32 num_msgq, UINT32 size_msgq); tDCCDDI_SEM DCCDDI_CreateMutexSemaphore(char *pname); tDCCDDI_SEM DCCDDI_CreateBinarySemaphore(char *pname); void DCCDDI_SendMessage(tDCCDDI_MSGQ id, void *buf, UINT32 len); int DCCDDI_ReceiveMessage(tDCCDDI_MSGQ id, void *buf, UINT32 max_len, int *rcv_len); int DCCDDI_ReceiveMessage_Wait(tDCCDDI_MSGQ id, void *buf, UINT32 max_len, int *rcv_len, UINT32 msec); int DCCDDI_ReceiveMessage_NoWait(tDCCDDI_MSGQ id, void *buf, UINT32 max_len, int *rcv_len); void DCCDDI_TakeSemaphore(tDCCDDI_SEM id); void DCCDDI_GiveSemaphore(tDCCDDI_SEM id); void DCCDDI_Delay(UINT32 msec); UINT32 DCCDDI_GetCurMs(void); typedef void (*tDCC_UserCallback)(tDCC_PicUDRaw *praw_pud); void DCCDDI_Init(void); void DCCDDI_SetUserCallback(tDCC_UserCallback func); int DCCDDI_Feeding608(BOOL is_even, UINT8 data1, UINT8 data2, BOOL is_end); void DCCDDI_GraphicStart(UINT8 resolution); void DCCDDI_GraphicStop(void); void DCCDDI_DrawBox(int x, int y, int w, int h, int color); void DCCDDI_BLT(int x, int y, int w, int h, int height); void DCCDDI_DrawHLine(int x, int y, int w, int color); void DCCDDI_Refresh(void); int DCCDDI_PrintCh(int x, int y, UINT16 ch, int c_font, int c_edge); int DCCDDI_GetChWidth(UINT16 ch); int DCCDDI_GetChHeight(UINT16 ch); void DCCDDI_SetFontAttr(int size, BOOL is_italic, BOOL is_underline, UINT8 font_style, UINT8 edge_type, BOOL is_p16); void DCCDDI_SetKoreanMode(BOOL is_unicode); //CCFRONT void DCCFront_Init(void); int DCCFront_ParsePicUD(tDCC_PicUDRaw *pic_ud_raw, tDCC_PicUD *pic_ud); BOOL DCCFront_IsServiceOn(UINT8 service); void DCCFront_SetService(UINT8 service); void DCCFront_SetFeeding608(BOOL bon); void DCCFront_SetCallback(tDCC_InfoCallback func); //CCEXEC608 #define DCC_608_WIN_WIDTH 32 #define DCC_608_WIN_HEIGHT 15 #define DCC_608_TEXT_START_ROW (8-1) void DCCExec_Process608(UINT8 d1, UINT8 d2); void DCCExec_Reset608Attr(void); //CCEXEC708 void DCCExec_ProcessMsg(tDCC_CmdSet cmd, UINT32 opt, UINT32 param1, UINT32 param2); void DCCExec_Init(void); char* DCCExec_CmdGetStr(tDCC_CmdSet cmd); void DCCExec_SetCallback(tDCC_InfoCallback func); BOOL DCCExec_IsCurDLY(); void DCCExec_ForceDLYRelease(); //WIN tDCC_DefWin *DCCWin_GetWin(int wid); void DCCWin_DrawWin(int wid, BOOL draw_bg, BOOL draw_fg); void DCCWin_EraseWin(int wid); void DCCWin_DrawAllWins(void); void DCCWin_DrawFlashWins(void); void DCCWin_ResetWin(int wid); void DCCWin_ResetTextPos(int wid); void DCCWin_ResetTextOnly(int wid); void DCCWin_ResetAllWins(BOOL berase_screen); void DCCWin_UpdateWinRect(int wid); BOOL DCCWin_CheckWinRect(int wid); void DCCWin_UpdateWinAttr(void); void DCCWin_EraseCurLine(int wid, BOOL is_der); void DCCWin_FillTrpToLine(int wid); void DCCWin_InsertCh(int wid, UINT16 ch, UINT32 opt); void DCCWin_EraseCh(int wid); void DCCWin_UpdateLine(int wid, int row); void DCCWin_ToggleFlashFlag(void); void DCCWin_SetUserPos(int x, int y); void DCCWin_UpdateWinOrderList(int nWinID);//iskang 090608 void DCCWin_DrawByWindowOrder(BOOL bClear);//iskang 090608 BOOL DCCWin_NeedToRedrawWindowOrNot(void);//iskang 090608 //CCUTIL int DCCUtil_UStrLen(UINT16 *str); UINT16 DCCUtil_Ksx1001toUnicode(UINT16 code); void DCCUtil_InitBitBuf(UINT8 *pdata, int size); UINT32 DCCUtil_NextBits(UINT8 size); UINT32 DCCUtil_GetBits(UINT8 size); void DCCUtil_UngetBits(UINT32 size, UINT32 data); int DCCUtil_CheckBits(UINT8 size); //CCGRP enum { ePRIV_CH_DRAW_TYPE_ALL=0, ePRIV_CH_DRAW_TYPE_LEFT, ePRIV_CH_DRAW_TYPE_RIGHT, ePRIV_CH_DRAW_TYPE_NONE }; void DCCGrp_Init(BOOL is_cc_wide, BOOL is_src_wide, BOOL is_korean, int resolution, tDCC_ColorMap *color_map); void DCCGrp_SetService(UINT8 service); void DCCGrp_SetKorean(BOOL is_korean); void DCCGrp_Start(void); void DCCGrp_Stop(void); void DCCGrp_DrawBox(int x, int y, int w, int h, int color); void DCCGrp_EraseBox(int x, int y, int w, int h); void DCCGrp_ClearScreen(void); void DCCGrp_ScrollUp(int x, int y, int w, int h, int height, int bg_color); void DCCGrp_ScrollDown(int x, int y, int w, int h, int height, int bg_color); void DCCGrp_SetScrollSpeed(int delay, int slice); int DCCGrp_PrintCh(int x, int y, UINT16 ch, int draw_mode); int DCCGrp_GetChWidth(UINT16 ch); int DCCGrp_GetStrWidth(UINT16 *str); int DCCGrp_GetStrNWidth(UINT16 *str, int n); void DCCGrp_SetFontAttr(tDCC_PenAttr *pattr); tDCC_PenAttr *DCCGrp_GetFontAttr(void); int DCCGrp_GetMaxFontWidth(UINT8 size, BOOL bhalf); int DCCGrp_GetMaxFontHeight(UINT8 size); int DCCGrp_GetScrPosX(int cc_pos_x); int DCCGrp_GetScrPosY(int cc_pos_y); void DCCGrp_AdjustRect(tDCC_RECT *rect); #endif //__CC_PRIVATE_H__ //neverdai. 080924 enable AFD #define ENABLE_AFD 1 #define ENABLE_AFD_BARDATA 0 #if !ENABLE_AFD && ENABLE_AFD_BARDATA #error BAR Data needs AFD #endif #if ENABLE_AFD void DCC_SetAFDOn(BOOL); BOOL DCC_GetIsAFDOn(); void DCC_SetAFDFormat(UINT8 format); UINT8 DCC_GetAFDFormat(); BOOL DCC_SetAFDCallback(void *cb); UINT32 DCC_GetAFDRefreshCount(); #endif /* end of file */