source: svn/newcon3bcm2_21bu/dst/app/src/kview/OSD/App_OSD_Epg.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 4.8 KB
Line 
1/****************************************************************************
2* NAME: App_OSD_Epg.h
3*----------------------------------------------------------------------------
4* Copyright (c) DIGITAL STREAM Technology Inc.
5*----------------------------------------------------------------------------
6* CREATED_BY: Do Gon Lee
7* CREATION_DATE: 2009/09/07
8* $Author: foxhunt $
9* $Revision: 1.0 $
10* $Date: 2009/09/07 11:58:43 $
11*----------------------------------------------------------------------------
12* PURPOSE:
13* - EPG OSD header file
14*****************************************************************************/
15
16#ifndef __APP_OSD_EPG_H__
17#define __APP_OSD_EPG_H__
18
19/*_____ I N C L U D E __________________________________________*/
20
21
22
23
24
25#if COMMENT
26____Overview____(){}
27#endif
28
29
30
31
32
33/*_____ D E F I N I T I O N ____________________________________*/
34
35#if COMMENT
36____Config____(){}
37#endif
38
39/******************************************
40* Proc, OSD¿¡¼­ °øÅëÀ¸·Î ¾²ÀÌ´Â ÁÂÇ¥ ¸ðÀ½ *
41******************************************/
42/* EPG event contents line */
43#define EPG_EVENT_X     199   // EPG event line X position (event Áß °¡Àå ¸Ç À§ ÇÑÁÙ)
44#define EPG_EVENT_Y     121   // EPG event line Y position (event Áß °¡Àå ¸Ç À§ ÇÑÁÙ)
45#define EPG_EVENT_W     409   // EPG event line width   (ÇÑÁÙ Àüü ³Êºñ)
46#define EPG_EVENT_H     33    // EPG event line height (ÇÑÁÙ Àüü ³ôÀÌ)
47
48
49/* StatusFlag */
50#define Program_Normal          0
51#define Program_PastEvent       1
52#define Program_ReservedView    2
53#define Program_ReservedRecord  4
54#define Program_EMPTY           8
55#define Program_EMPTY_NotYet 0x10  // cafrii 060814 add
56// Program_EMPTY°¡ 1ÀÎ °æ¿ì¿¡ Ãß°¡ Á¤º¸ Æ÷ÇÔ.
57// flag°¡ setÀÌ¸é ¾ÆÁ÷ download°¡ µÇÁö ¾Ê°í ÀÖÀ½À» ÀǹÌ.
58// flag°¡ resetÀ̸é ÃæºÐÇÑ ½Ã°£ÀÌ °æ°ú µÇ¾úÀ¸´Ï, ¾ÕÀ¸·Îµµ ¹ÞÀ» °¡´É¼ºÀÌ º°·Î ¾øÀ½À» ÀǹÌ.
59
60
61
62
63
64#if COMMENT
65____Types____(){}
66#endif
67
68typedef struct {
69        int     ListUID;
70        UINT16  ListMajor;
71        UINT16  ListMinor;
72        UINT16  ListSourceId;
73        UINT8   ListRF;
74        BOOLEAN VctFlag;
75        UINT16  ShortName[8];
76} ChListInfo;
77
78
79typedef struct {
80        int     nX;
81        int     nW;
82        UINT8   StatusFlag;       // 0: Normal, 1: Past Event, 2: Reserved View, 4: Reserved Record
83        DMW_EpgEventPtr EPG_event;
84} strEPG_Data;
85
86
87
88
89
90#if COMMENT
91____Variables____(){}
92#endif
93
94
95
96
97
98#if COMMENT
99____NvParam____(){}
100#endif
101
102
103
104
105
106/*_____ F U N C T I O N ________________________________________*/
107
108#if COMMENT
109____Function____(){}
110#endif
111
112/* EPG Base */
113void App_OSD_DrawEpgBase(void);
114void p_erase_epgbase(void);
115void p_backup_epgbase(void);
116void p_restore_epgbase(void);
117
118
119/* EPG Time */
120void App_OSD_DrawEpgCurrentTime(APP_TIME_T nCurTime, BOOL bModify);
121void p_erase_current_time(void);
122
123
124/* EPG Date */
125#if 0
126void App_OSD_EpgTimeRuler(APP_TIME_T nCurTime, UINT32 nPageStartTime, BOOL bModify);
127void p_erase_timeruler(void);
128void App_OSD_EpgCurArrow(APP_TIME_T nCurTime, UINT32 nPageStartTime, BOOL bModify);
129void p_erase_curarrow(void);
130#endif
131
132/* EPG Channel */
133void App_OSD_DrawEpgChNum(ChListInfo *EpgChList, UINT16 nCurChIdx, BOOL bModify);
134void p_erase_chnum(void);
135
136
137/* EPG Contents */
138#if 0
139void App_OSD_DrawEpgContents(UINT16 num_ch, int nIdx, UINT8 nEvent, strEPG_Data **PageEvent,
140                                        UINT8 *NumEvent);
141void p_backup_event_entire(void);
142void p_erase_event_entire(void);
143void p_restore_event_entire(void);
144#endif
145void App_OSD_MakeEpgContents(APP_TIME_T nCurTime, UINT32 nPageStartTime,                  // <- Input
146                                        ChListInfo *EPGChList,UINT16 nStartChIdx, 
147                                        strEPG_Data **PageEvent, UINT8 *NumEvent, UINT8 *pNumEvent);                            // <- Output
148
149#if 0
150void App_OSD_DrawEventLine(UINT16 num_ch, int nIdx, strEPG_Data **PageEvent, UINT8 *NumEvent);
151void p_backup_event_line(int y);
152void p_erase_event_line(int y);
153void p_restore_event_line(int y);
154
155void App_OSD_DrawEventBox(int mode, UINT16 nY, strEPG_Data PageEvent);
156#endif
157void App_OSD_DrawEpgEventInfo(int mode, int column, int cursorIdx,int CurColumn, int numEvent, ChListInfo EPGChList, DMW_EpgEventPtr event, BOOL bModify);
158void p_erase_event_info(void);
159
160
161/* EPG Detail Banner */
162void App_OSD_DrawEpgDetailBanner(void);
163
164
165/* EPG Scroll */
166#if 0
167void App_OSD_EpgScroll(int mode, int num_pos, int cur_pos, BOOL bsel, BOOL bModify);
168void p_erase_epg_scroll1(void);
169void p_erase_epg_scroll2(void);
170#endif
171
172/* EPG Banner */
173void App_OSD_DrawEpgNotiBanner(void);
174void App_OSD_DrawEpgWaitBanner(BOOLEAN bDraw, BOOL bModify);
175
176
177/* Util Function */
178void App_OSD_RefreshEpg(void);
179void p_epg_sort_list(ChListInfo *EPGChList, int num);
180
181UINT16 p_find_curIndex(ChListInfo       *EPGChList, int num, UINT16 Major);
182void p_epg_tuneChannel(int uid);
183UINT32 p_cut_second(UINT32 TimeGPS);
184UINT8 p_catch_event_position(strEPG_Data **PageEvent, UINT8 index, UINT8 nMax, UINT16 nX);
185
186
187
188
189
190#endif  /* __APP_OSD_EPG_H__ */
Note: See TracBrowser for help on using the repository browser.