| 1 | |
|---|
| 2 | #ifndef __CC_CONFIG_H__ |
|---|
| 3 | #define __CC_CONFIG_H__ |
|---|
| 4 | |
|---|
| 5 | // platform ¼³Á¤ |
|---|
| 6 | #define SUPPORT_NEWBY |
|---|
| 7 | |
|---|
| 8 | //common |
|---|
| 9 | #define PLATFORM_LG 1 |
|---|
| 10 | #define PLATFORM_BRCM 2 |
|---|
| 11 | #define PLATFORM_WIN 3 |
|---|
| 12 | #define PLATFORM_NEC 4 |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | #define CC_PLATFORM PLATFORM_NEC |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | #if CC_PLATFORM==PLATFORM_WIN |
|---|
| 19 | #define SUPPORT_WINDOWS 1 |
|---|
| 20 | //windows °³¹ß ȯ°æ Áö¿ø |
|---|
| 21 | #else |
|---|
| 22 | #define SUPPORT_WINDOWS 0 |
|---|
| 23 | #endif |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | #define USE_KOR_CC 0 //korean cc ¼³Á¤ |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | #if CC_PLATFORM==PLATFORM_BRCM || defined(SUPPORT_NEWBY) |
|---|
| 30 | #define USE_INNER_KSX_TO_UNICODE_TABLE 0 |
|---|
| 31 | #else |
|---|
| 32 | #define USE_INNER_KSX_TO_UNICODE_TABLE 1 |
|---|
| 33 | #endif |
|---|
| 34 | |
|---|
| 35 | #define SERVICE_ON_DURATION 2000 |
|---|
| 36 | //ÇØ´ç serviceÀÇ cc¸¦ ¼ö½ÅÇϸé ÁöÁ¤µÈ duration µ¿¾ÈÀº service onÀÌ true°¡ µÊ. |
|---|
| 37 | |
|---|
| 38 | #define ENABLE_XDS 1 |
|---|
| 39 | //XDS enable/disable |
|---|
| 40 | |
|---|
| 41 | #define ENABLE_FLASH 1 |
|---|
| 42 | //FALSHING ON |
|---|
| 43 | |
|---|
| 44 | #define CC_DBG_ON 1 |
|---|
| 45 | //buildÇÒ ¶§ DBG¸¦ ¿ÏÀüÈ÷ ¾ø¾Ù ¼ö ÀÖÀ½. |
|---|
| 46 | |
|---|
| 47 | //font |
|---|
| 48 | #define FONT_JUNGLE 0x1 |
|---|
| 49 | #define FONT_MLF 0x2 /* multi lanaguage font */ |
|---|
| 50 | #define FONT_BMF 0x3 |
|---|
| 51 | |
|---|
| 52 | #define FONT_ID FONT_JUNGLE |
|---|
| 53 | |
|---|
| 54 | #if FONT_ID==FONT_JUNGLE |
|---|
| 55 | //size |
|---|
| 56 | #define CC_F_480 {17, 19, 21} |
|---|
| 57 | #define CC_F_720 {26, 29, 32} |
|---|
| 58 | #define CC_F_1080 {35, 40, 45} |
|---|
| 59 | #define CC_F_540 {20, 22, 24} |
|---|
| 60 | |
|---|
| 61 | #define CC_F_480_KOR {18, 20, 22} |
|---|
| 62 | #define CC_F_720_KOR {26, 29, 32} |
|---|
| 63 | #define CC_F_1080_KOR {35, 40, 45} |
|---|
| 64 | #define CC_F_540_KOR {20, 22, 24} |
|---|
| 65 | #else |
|---|
| 66 | //size |
|---|
| 67 | #define CC_F_480 {18, 20, 22} |
|---|
| 68 | #define CC_F_720 {26, 29, 32} |
|---|
| 69 | #define CC_F_1080 {35, 40, 45} |
|---|
| 70 | #define CC_F_540 {20, 22, 24} |
|---|
| 71 | |
|---|
| 72 | #define CC_F_480_KOR {18, 20, 22} |
|---|
| 73 | #define CC_F_720_KOR {26, 29, 32} |
|---|
| 74 | #define CC_F_1080_KOR {35, 40, 45} |
|---|
| 75 | #define CC_F_540_KOR {20, 22, 24} |
|---|
| 76 | #endif |
|---|
| 77 | |
|---|
| 78 | #define SAFE_AREA_LX 10 // %´ÜÀ§ |
|---|
| 79 | #define SAFE_AREA_TY 10 // %´ÜÀ§ |
|---|
| 80 | #define SAFE_AREA_RX 10 |
|---|
| 81 | #define SAFE_AREA_BY 10 |
|---|
| 82 | |
|---|
| 83 | #define SAFE_AREA_LX_608 10 // %´ÜÀ§ |
|---|
| 84 | #define SAFE_AREA_TY_608 10 // %´ÜÀ§ |
|---|
| 85 | #define SAFE_AREA_RX_608 10 |
|---|
| 86 | #define SAFE_AREA_BY_608 10 |
|---|
| 87 | |
|---|
| 88 | #define SAFE_AREA_LX_KOR 10 |
|---|
| 89 | #define SAFE_AREA_TY_KOR 10 |
|---|
| 90 | #define SAFE_AREA_RX_KOR 10 |
|---|
| 91 | #define SAFE_AREA_BY_KOR 10 |
|---|
| 92 | |
|---|
| 93 | #define SAFE_AREA_WIDE_NORMAL_GAP (25/2) |
|---|
| 94 | |
|---|
| 95 | #define FONT_ALING_ADJ (-1) |
|---|
| 96 | //font »óÇÏ alignÀÌ Àß ¾È ¸ÂÀ¸¸é À̰ÍÀ¸·Î Á¶ÀýÇÔ. |
|---|
| 97 | |
|---|
| 98 | #define FONT_HEIGHT_FACTOR (12) |
|---|
| 99 | //font height¿Í font sizeÀÇ °ü°è 10ÀÌ ±âÁØÀÓ. |
|---|
| 100 | //¸¸ÀÏ ÆùÆ® Å©±â¿¡ ºñÇØ ¹è°æÀÇ ³ôÀ̰¡ ÀÛ´Ù¸é ÀÌ °ªÀ» ´Ã·Á¾ß ÇÔ |
|---|
| 101 | |
|---|
| 102 | #define FONT_WIDTH_FACTOR (11) |
|---|
| 103 | //font width factor. |
|---|
| 104 | |
|---|
| 105 | //front |
|---|
| 106 | #if USE_KOR_CC |
|---|
| 107 | #define IGNORE_SEQ_NUM 0 |
|---|
| 108 | //Çѱ¹Çâ CC¿¡¼ °æ¿ì¿¡ µû¶ó seq numÀÌ Æ²¸° °æ¿ì ¹ß»ýÇÔ |
|---|
| 109 | //ÀÌ°Í ¸¸À¸·Î ÇØ°áµÇÁö ¾ÊÀ¸¹Ç·Î ´Ù½Ã ÀÌ flag¸¦ 0À¸·Î ¼öÁ¤Çϱâ·ÎÇÔ |
|---|
| 110 | #else |
|---|
| 111 | #define IGNORE_SEQ_NUM 0 |
|---|
| 112 | //sequence numÀÌ Æ²·Áµµ °è¼Ó ÁøÇàÇÔ. |
|---|
| 113 | #endif |
|---|
| 114 | |
|---|
| 115 | #define DISCARD_WHEN_PACKET_BLOCK_MISMATCH 1 |
|---|
| 116 | //service blockÀÌ packetÀÇ ¿µ¿ªÀ» ³Ñ¾î¼°Ô µÇ¸é ±× service blockÀº ¹ö¸². |
|---|
| 117 | //¸¸ÀÏ ÀÌ flag°¡ 0À̸é service blockÀ» packet Å©±â¿¡ ¸ÂÃç °Á¦ Á¶Á¤ÇÔ. |
|---|
| 118 | |
|---|
| 119 | #define DISCARD_WHEN_BAD_NULL_BLOCK 1 |
|---|
| 120 | //service numÀÌ 0ÀÌÁö¸¸ block size°¡ 0ÀÌ ¾Æ´Ñ °æ¿ì packetÀÇ ¾Æ·¡ ³»¿ëÀ» ¹ö¸² |
|---|
| 121 | //¸¸ÀÏ ÀÌ flag°¡ 0À̸é size¿¡ ¸ÂÃç ó¸®ÇÔ |
|---|
| 122 | |
|---|
| 123 | #define DISCARD_WHEN_BAD_EXT_SERVICE_NUM 1 |
|---|
| 124 | //extend service numÀÌ 0-6ÀÇ °ªÀ» °¡Áö´Â °æ¿ì ÇØ´ç service blockÀ» discardÇÔ |
|---|
| 125 | |
|---|
| 126 | #define DISCARD_UNCORRECTED_PKT_SIZE 0 |
|---|
| 127 | //packet sizeº¸´Ù ½ÇÁ¦ dataÀÇ Å©±â°¡ Å©°Å³ª ÀÛÀº °æ¿ì, ÇØ´ç packetÀ» ¹ö¸°´Ù. |
|---|
| 128 | //kbs2¿¡¼ °¡²û packet sizeº¸´Ù ÀûÀº data°¡ µé¾î¿È |
|---|
| 129 | |
|---|
| 130 | #define IGNORE_DTVCC_DATA_INVALID 1 |
|---|
| 131 | //ignore dtv cc invalid data |
|---|
| 132 | |
|---|
| 133 | #define USE_MODIFY_P16 1 |
|---|
| 134 | //ÀÌÀü packetÀÇ ¸¶Áö¸·¿¡ p16(0x18)Äڵ尡 ÀÖÀ½¿¡µµ »õ·Î¿î packetÀÇ ½ÃÀÛÀÌ p16ÀÎ °æ¿ì |
|---|
| 135 | //±ÛÀÚ°¡ ±úÁ® ÂïÈ÷´Â ¹®Á¦ ÀÖÀ½ |
|---|
| 136 | |
|---|
| 137 | //708 process |
|---|
| 138 | |
|---|
| 139 | #define ENABLE_SCROLL_BY_SPL 1 |
|---|
| 140 | //608À» 708·Î ¿Å±â´Â °úÁ¤ÀÇ ¿À·ù(?)¿¡ ´ëÀÀ |
|---|
| 141 | |
|---|
| 142 | #define FLASHING_ONLY_FRONT_WIN 1 |
|---|
| 143 | //flashingÀ» ÇÒ ¶§ ÇØ´ç winÀÌ °ãÃÄÀÖÀ¸¸é flashingÀ» ÇÏÁö ¾ÊÀ½. |
|---|
| 144 | //ÇöÀç °ãÃÄÀÖ´Â win¿¡ ´ëÇÑ flashingÀº Áö¿øÇÏÁö ¾ÊÀ½->¿Àµ¿ÀÛÇÔ |
|---|
| 145 | |
|---|
| 146 | #define USE_WIN_RECT_ADJ 1 |
|---|
| 147 | //WIN_RECT_ADJ 1Àº Å©±â¸¦ °íÁ¤½ÃŰ°í °Á¦ À̵¿, 2´Â Å©±â¸¦ º¯È½ÃÅ´ |
|---|
| 148 | |
|---|
| 149 | #define DEL_LINE_BEFORE_WRITING 1 |
|---|
| 150 | //justificationÀÌ left°¡ ¾Æ´Ñ °æ¿ì lineÀ» ¸ÕÀú Áö¿ò. ÀÌ ¶§ ¹öÆÛµµ °°ÀÌ Áö¿ò |
|---|
| 151 | |
|---|
| 152 | #define REDRAW_WIN_WHEN_SWA_RECEIVED 1 |
|---|
| 153 | //SWA¸¦ ¹ÞÀ¸¸é WindowÀÇ text¸¦ reset½ÃŰÁö ¾Ê°í ´Ù½Ã ±×¸² |
|---|
| 154 | //¸¸ÀÏ ÀÌ flag°¡ 0À̸é text¸¦ ÃʱâȽÃÅ´ |
|---|
| 155 | |
|---|
| 156 | #define TIMER_CLEAR_SCREEN_DURATION 16000 |
|---|
| 157 | |
|---|
| 158 | #define TIMER_CLEAR_SCREEN_DURATION_608 5000 //screen must be cleared after 5 secs in 608 |
|---|
| 159 | |
|---|
| 160 | #define TIMER_ID_FLASH_DURATION 1000 |
|---|
| 161 | |
|---|
| 162 | |
|---|
| 163 | //scte 20 dataó¸® |
|---|
| 164 | #define ENABLE_SCTE20_21 1 |
|---|
| 165 | |
|---|
| 166 | |
|---|
| 167 | //608 process |
|---|
| 168 | |
|---|
| 169 | #if USE_KOR_CC |
|---|
| 170 | #define ENABLE_608_DEMUX 0 |
|---|
| 171 | #else |
|---|
| 172 | #define ENABLE_608_DEMUX 1 |
|---|
| 173 | #endif |
|---|
| 174 | |
|---|
| 175 | // ±×·¡ÇÈ plane ¼³Á¤ |
|---|
| 176 | #define CC_PLANE 0 |
|---|
| 177 | #define CC_TEMP_PLANE 3 |
|---|
| 178 | |
|---|
| 179 | #define CC_NUM_PIC_USER_Q 128 //picture user queueÀÇ Å©±â |
|---|
| 180 | |
|---|
| 181 | // picture userdata Å¥ »ç¿ë·® trace¸¦ À§ÇÑ ¼³Á¤ |
|---|
| 182 | #define CC_TRACE_PIC_UD_Q 0 |
|---|
| 183 | |
|---|
| 184 | #if CC_TRACE_PIC_UD_Q |
|---|
| 185 | extern int g_total_using_pic_ud; |
|---|
| 186 | #endif |
|---|
| 187 | |
|---|
| 188 | // scroll up : CC°¡ ¸¹Àº ½ºÆ®¸²¿¡¼ scroll ¼Óµµ°¡ ´À¸®¸é ¹®Á¦ »ý±æ ¼ö ÀÖÀ½ |
|---|
| 189 | // ´«¿¡ º¸±â ÁÁ°Ô ÇÏ´Â °Íº¸´Ù ¾ÈÁ¤¼ºÀÌ ¿ì¼±ÀÓ. |
|---|
| 190 | #define CC_SCROLL_DELAY1 20 |
|---|
| 191 | #define CC_SCROLL_SLICE1 2 |
|---|
| 192 | |
|---|
| 193 | #define CC_SCROLL_DELAY2 20 |
|---|
| 194 | #define CC_SCROLL_SLICE2 3 |
|---|
| 195 | |
|---|
| 196 | #define CC_SCROLL_DELAY3 10 |
|---|
| 197 | #define CC_SCROLL_SLICE3 6 |
|---|
| 198 | |
|---|
| 199 | #define CC_SCROLL_DELAY4 0 |
|---|
| 200 | #define CC_SCROLL_SLICE4 6 |
|---|
| 201 | |
|---|
| 202 | |
|---|
| 203 | #define CC_CH_DRAW_ADDING_WIDTH 3 |
|---|
| 204 | // |
|---|
| 205 | |
|---|
| 206 | #endif //__CC_CONFIG_H__ |
|---|
| 207 | |
|---|
| 208 | /* end of file */ |
|---|