#include "DST_Common.h" #include "DST_CC_Setup.h" #include "DST_ChannelTune.h" #include "DST_HostInterface.h" #include "DST_FontEngine.h" void DST_CCManagerInit(void); bool DST_608_GetAvailable() ; DS_U8 DST_CC_GetBackColor() // ¹è°æ»öÀ» ¼³Á¤ÇÑ´Ù. { return CC_DEFAULT; } DS_U8 DST_CC_GetBackOpacity() // ¹è°æ Åõ¸íµµ¸¦ ¼±ÅÃÇÑ´Ù. { return CC_DEFAULT; } DS_U8 DST_CC_GetSize() // ÆùÆ® »çÀÌÁ ¼±ÅÃÇÑ´Ù. { return CC_DEFAULT; } DS_U8 DST_CC_GetStyle() // ÆùÆ®¸¦ ¼³Á¤ÇÑ´Ù. { return CC_DEFAULT; } DS_U8 DST_CC_GetColor() // ÆùÆ®»öÀ» ¼±ÅÃÇÑ´Ù. { return CC_DEFAULT; } DS_U8 DST_CC_GetOpacity() //ÆùÆ® Åõ¸íµµ¸¦ ¼±ÅÃÇÑ´Ù. { return CC_DEFAULT; } DS_U8 DST_CC_GetEdge() // ÆùÆ® Edge¸¦ ¼±ÅÃÇÑ´Ù. { return CC_DEFAULT; } DS_U8 DST_CC_GetEdgeColor() // ÆùÆ® EdgeÀÇ »öÀ» ¼±ÅÃÇÑ´Ù. { return CC_DEFAULT; } DS_U8 DST_CC_GetItalic() // ÆùÆ®ÀÇ ÀÌÅŸ¯ ¿©ºÎ ¼³Á¤ { return CC_DEFAULT; } DS_U8 DST_CC_GetUnderline() // ÆùÆ®ÀÇ ¾ð´õ¶óÀÎ ¼³Á¤ { return CC_DEFAULT; } // Wide Screen ÀÎÁö ¼³Á¤ÇÑ´Ù. static DS_U8 DST_g_CC_WideScreen = true; void DST_CC_SetWideScreen(bool bWide) { DST_g_CC_WideScreen = bWide; } bool DST_CC_GetWideScreen() { return DST_g_CC_WideScreen; } int DST_GetCCScreenHeight() { return DST_GetScreenHeight() * 84 / 100; } int DST_GetCCScreenWidth() { return DST_GetScreenWidth() * 84 / 100; } // CCÀÇ ÆùÆ® »çÀÌÁ °áÁ¤ÇÑ´Ù. int DST_DecideFontSize(int nRow) { int i; for ( i = 5; i < 256; i++) { if (DST_GetFontHeight(i) * nRow > DST_GetCCScreenHeight()) return i-1; } return 255; } bool DST_CC_Available() { // Æ©´×ÇÑÁö 1ÃÊ À̳»¶ó¸é ÀÌÀü ä³ÎÀÇ µ¥ÀÌÅÍ ÀÏ ¼ö ÀÖÀ¸´Ï ¹«½ÃÇÑ´Ù. if (DST_g_LastTuneTryTime > DST_OS_GetTickCount()) DST_g_LastTuneTryTime = DST_OS_GetTickCount(); if (DST_OS_GetTickCount() - DST_g_LastTuneTryTime < DST_OS_GetTicksPerSecond() * 1) return false; //T(); // 15ÃÊ À̳»¿¡ ¹ÞÀº CC µ¥ÀÌÅͰ¡ ÀÖ´Ù¸é Àִ°Ŵ٠if (DST_g_CC_DataReceiveTick > DST_OS_GetTickCount()) DST_g_CC_DataReceiveTick = DST_OS_GetTickCount(); if (DST_OS_GetTickCount() - DST_g_CC_DataReceiveTick > DST_OS_GetTicksPerSecond() * 15) return false; //T(); return true; }