| [2] | 1 | #ifndef __DST_CHANNEL_TUNE_H__ |
|---|
| 2 | #define __DST_CHANNEL_TUNE_H__ |
|---|
| 3 | |
|---|
| 4 | #include "DST_Common.h" |
|---|
| 5 | //#include "DMW_ChannelAPI.h" |
|---|
| 6 | //#include "DMW_Channel.h" |
|---|
| 7 | #include "DST_CommonAPI.h" |
|---|
| 8 | #include "DST_UserInterface.h" |
|---|
| 9 | #include "DST_ISDBT_ChannelTask.h" |
|---|
| 10 | |
|---|
| 11 | #define MAX_EPG_TEXT_CNT 20 // EPG 1°³´ç ¸î °³ÀÇ text ¹è¿À» °¡ÁúÁö °áÁ¤ÇÑ´Ù. |
|---|
| 12 | // ù¹øÂ° text ¹è¿¿¡´Â ÇÁ·Î±×·¥ ¸í°ú detail info°¡ µé¾î°£´Ù. |
|---|
| 13 | // µÎ¹øÂ° ºÎÅÍ´Â ¼¼ºÎ Ç׸ñ Á¦¸ñ°ú Á¤º¸°¡ µé¾î°£´Ù. |
|---|
| 14 | struct EPG_DB |
|---|
| 15 | { |
|---|
| 16 | DS_U16 source_id; |
|---|
| 17 | DS_U16 event_id; |
|---|
| 18 | DS_U8 title[100]; |
|---|
| 19 | DS_U32 start_time; |
|---|
| 20 | DS_U32 duration; |
|---|
| 21 | char *text; |
|---|
| 22 | }; |
|---|
| 23 | |
|---|
| 24 | struct CC_DB |
|---|
| 25 | { |
|---|
| 26 | DS_U8 RF; |
|---|
| 27 | DS_U16 program_number; |
|---|
| 28 | DS_U16 pid; |
|---|
| 29 | DS_U8 component_tag; |
|---|
| 30 | }; |
|---|
| 31 | |
|---|
| 32 | // °øÀå ÃʱâÈ ÈÄ ÀçÆÃ ÈÄ Ã¹¹øÂ°·Î ºÒ¸®´Â ÇÔ¼ö |
|---|
| 33 | // EEPROM°ú ä³Î¸ÊÀ» ¸ðµÎ Áö¿î´Ù. |
|---|
| 34 | void DST_Factory_Reset(); |
|---|
| 35 | |
|---|
| 36 | // ºñµð¿À Å©±â¸¦ ¹ÝȯÇÑ´Ù. |
|---|
| 37 | void DST_GetVideoSize(DS_U16* width, DS_U16* height, DS_U16* fps, bool* bInterlace, bool* bWide); |
|---|
| 38 | void DST_ResetVideoSize(); |
|---|
| 39 | void DST_SetAVInfo(DS_U32 PCR, DS_U32 vPid, DS_U32 aPid, DS_U32 vType, DS_U32 aType); |
|---|
| 40 | void DST_GetAVInfo(DS_U32 *PCR, DS_U32 *vPid, DS_U32 *aPid, DS_U32 *vType, DS_U32 *aType); |
|---|
| 41 | void DST_GetSignalInfo(bool *bLock, int *ss, DS_U32 *ber_a, DS_U32 *ber_b); |
|---|
| 42 | void DST_GetAVAliveInfo(bool *vAlive, bool *aAlive); |
|---|
| 43 | |
|---|
| 44 | DHL_AUDIO_MODE DST_AUD_GetMode(); |
|---|
| 45 | |
|---|
| 46 | #if 0 |
|---|
| 47 | ____NEW_EPG_DB___() |
|---|
| 48 | #endif |
|---|
| 49 | |
|---|
| 50 | // app¿¡¼ EPG DB º¹»çº»À» °¡Á®°£´Ù. |
|---|
| 51 | // ¹Ýȯ°ªÀº °¹¼ö |
|---|
| 52 | // EPG µðºñ¸¦ °¡Á®¿Â´Ù. |
|---|
| 53 | EPG_DB* DST_EPG_DB_Get(int *nCount, int limit=0); |
|---|
| 54 | |
|---|
| 55 | // EPG µðºñ ¸Þ¸ð¸®¸¦ ÇØÁ¦ÇÑ´Ù. |
|---|
| 56 | void DST_EPG_DB_Free(EPG_DB* db, int nCount); |
|---|
| 57 | |
|---|
| 58 | #if 0 |
|---|
| 59 | ____AUDIO_INFO___() |
|---|
| 60 | #endif |
|---|
| 61 | // ¿Àµð¿À MTS ¸®½ºÆ®¸¦ °¡Á®¿Â´Ù. |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | #if 0 |
|---|
| 65 | ____AV_STATE___() |
|---|
| 66 | #endif |
|---|
| 67 | |
|---|
| 68 | // ÄݹéÀ¸·Î ¿Ã¶ó¿Â AVÀÇ ÁøÇà »óȲ |
|---|
| 69 | void DST_GetAVState(DS_U8 *RF = 0, DS_U16 *program_number = 0, DS_U16 *source_id = 0); |
|---|
| 70 | #if 0 |
|---|
| 71 | ____TIME___() |
|---|
| 72 | #endif |
|---|
| 73 | |
|---|
| 74 | // ÇöÀç ½Ã°£À» °¡Á®¿Â´Ù. |
|---|
| 75 | bool DST_GetTime(STime_t *t); // »èÁ¦ ¿¹Á¤ |
|---|
| 76 | |
|---|
| 77 | // ±âÁؽð£À» ±âÁØÀ¸·Î Áö¿ª½Ã°£ÀÌ ¸î½Ã°£ Ʋ¾îÁ® ÀÖ´ÂÁö ±¸ÇÑ´Ù. |
|---|
| 78 | int DST_GetTimeOffset();// »èÁ¦ ¿¹Á¤ |
|---|
| 79 | |
|---|
| 80 | // ÀÔ·ÂµÈ bcd °ªÀ» ½Ã°£À¸·Î º¯È¯ÇÑ´Ù. |
|---|
| 81 | STime_t DST_GetTime(DS_U32 bcd, DS_U32 duration);// »èÁ¦ ¿¹Á¤ |
|---|
| 82 | |
|---|
| 83 | #if 0 |
|---|
| 84 | ____STT Set___() |
|---|
| 85 | #endif |
|---|
| 86 | typedef enum _TIME_MODE |
|---|
| 87 | { |
|---|
| 88 | DATE_NO_YEAR_TIME_NO_SEC_DETAIL = 1, |
|---|
| 89 | DATE_NO_YEAR_TIME_NO_SEC, |
|---|
| 90 | DATE_TIME_NO_SEC, |
|---|
| 91 | DATE_TIME, |
|---|
| 92 | DATE_ONLY, |
|---|
| 93 | TIME_NO_SEC, |
|---|
| 94 | TIME_NO_SEC_NO_AMPM, |
|---|
| 95 | TIME_ONLY, |
|---|
| 96 | AMPM |
|---|
| 97 | } TIME_MODE; |
|---|
| 98 | |
|---|
| 99 | DS_U32 DST_GetCurrentUTCTime(); |
|---|
| 100 | DS_U32 DST_GetCurrentLocalTime(); |
|---|
| 101 | DS_U32 DST_UTCTimeToLocalTime(DS_U32 a_systemTime); |
|---|
| 102 | DS_U16* DST_GetTimeString(DS_U32 a_time, TIME_MODE a_mode, bool bApplyTimeZone, int a_offset); |
|---|
| 103 | |
|---|
| 104 | |
|---|
| 105 | #endif |
|---|