| 1 | /******************************************************************** |
|---|
| 2 | |
|---|
| 3 | DMW_Epg.h |
|---|
| 4 | |
|---|
| 5 | EPG 1.0 minimum Header file |
|---|
| 6 | |
|---|
| 7 | Copyright 2004 Digital STREAM Technology, Inc. |
|---|
| 8 | All Rights Reserved |
|---|
| 9 | |
|---|
| 10 | $Id: DMW_Epg.h v1.00 2004/04 cafrii Exp $ |
|---|
| 11 | |
|---|
| 12 | ********************************************************************/ |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | #ifndef __DMW_EPG_H__ |
|---|
| 17 | #define __DMW_EPG_H__ |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | //#include "DMW_Timer.h" |
|---|
| 21 | //#include "DMW_SysTime.h" |
|---|
| 22 | |
|---|
| 23 | #include "ATSC_PSIP.h" |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | /*********************Global Structure Definition***********************/ |
|---|
| 28 | |
|---|
| 29 | typedef enum |
|---|
| 30 | { |
|---|
| 31 | US_Entire_Audience = 0x0, |
|---|
| 32 | US_Children = 0x1, |
|---|
| 33 | US_MPAA = 0x2, |
|---|
| 34 | CANADA_English = 0x3, |
|---|
| 35 | CANADA_French = 0x4, |
|---|
| 36 | /*reserved*/ |
|---|
| 37 | /*reserved*/ |
|---|
| 38 | NO_INFORMATION = 0x7 |
|---|
| 39 | |
|---|
| 40 | } rating_type_k; |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | typedef enum |
|---|
| 45 | { |
|---|
| 46 | AUDIO_Ch_DualMono, |
|---|
| 47 | AUDIO_Ch_C, |
|---|
| 48 | AUDIO_Ch_LR, |
|---|
| 49 | AUDIO_Ch_LCR, |
|---|
| 50 | AUDIO_Ch_LRS, |
|---|
| 51 | AUDIO_Ch_LCRS, |
|---|
| 52 | AUDIO_Ch_LRSlSr, |
|---|
| 53 | AUDIO_Ch_LCRSlSr, |
|---|
| 54 | AUDIO_Ch_None /*added in 2003.08.11...by jina.*/ |
|---|
| 55 | |
|---|
| 56 | } audio_channel_type; |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | typedef enum |
|---|
| 61 | { |
|---|
| 62 | AUDIO_Service_Undefined, |
|---|
| 63 | AUDIO_Service_CleanEffect, |
|---|
| 64 | AUDIO_Service_HearingImpaired, |
|---|
| 65 | AUDIO_Service_VisualImpaired |
|---|
| 66 | |
|---|
| 67 | } audio_service_type; |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | typedef struct |
|---|
| 72 | { |
|---|
| 73 | rating_type_k ratingType; |
|---|
| 74 | UINT8 ratingValue; /* : dimention 0 or 5 or 7*/ |
|---|
| 75 | UINT8 FV; /*Fantasy Violence : dimention 6*/ |
|---|
| 76 | UINT8 V; /*Violence : dimention 4*/ |
|---|
| 77 | UINT8 S; /*Sex : dimention 3*/ |
|---|
| 78 | UINT8 L; /*Language : dimention 2*/ |
|---|
| 79 | UINT8 D; /*Dialogue : dimention 1*/ |
|---|
| 80 | |
|---|
| 81 | } DMW_Rating , *DMW_RatingPtr; |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | //#define line21 0 |
|---|
| 87 | |
|---|
| 88 | typedef struct |
|---|
| 89 | { |
|---|
| 90 | UINT32 language; |
|---|
| 91 | UINT8 ccType; |
|---|
| 92 | UINT8 captionServiceNumber; |
|---|
| 93 | UINT8 line21Field; |
|---|
| 94 | UINT8 easyReader; |
|---|
| 95 | UINT8 wideAspectRatio; |
|---|
| 96 | |
|---|
| 97 | } DMW_ClosedCaption , *DMW_ClosedCaptionPtr; |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | // Audio Program Information |
|---|
| 102 | |
|---|
| 103 | typedef struct |
|---|
| 104 | { |
|---|
| 105 | UINT16 elementaryPid; |
|---|
| 106 | UINT32 ISO639_LanguageCode; |
|---|
| 107 | UINT8 serviceType; |
|---|
| 108 | AudioType audioType; //added for pnr |
|---|
| 109 | |
|---|
| 110 | } DMW_ProgramElement, *DMW_ProgramElementPtr; |
|---|
| 111 | |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | typedef enum |
|---|
| 115 | { |
|---|
| 116 | AC3_NO_INFO = 0xffff, /*there is no ac3 descriptor...*/ |
|---|
| 117 | |
|---|
| 118 | AC3_NOT_KNOWN = 0x0000, /*there is an ac3 descriptor....but we don't know what it is...*/ |
|---|
| 119 | AC3_MONO = 0x0001, |
|---|
| 120 | AC3_STEREO = 0x0002, |
|---|
| 121 | AC3_DOLBY = 0x0003 |
|---|
| 122 | |
|---|
| 123 | } Ac3DescInfo; |
|---|
| 124 | |
|---|
| 125 | |
|---|
| 126 | |
|---|
| 127 | #define GET_EVENT_RATING 0x01 |
|---|
| 128 | #define GET_EVENT_CAPTION 0x02 |
|---|
| 129 | #define GET_EVENT_TITLE 0x04 |
|---|
| 130 | #define GET_EVENT_TEXT 0x08 |
|---|
| 131 | |
|---|
| 132 | #define GET_EVENT_ALL 0xFF |
|---|
| 133 | |
|---|
| 134 | |
|---|
| 135 | typedef struct |
|---|
| 136 | { |
|---|
| 137 | |
|---|
| 138 | UINT16 programId; |
|---|
| 139 | // EIT event °¢°¢ÀÇ event ID¸¦ ÀǹÌÇÑ´Ù. |
|---|
| 140 | |
|---|
| 141 | // EIT³»ÀÇ event Á¤º¸¿¡ ÀÖ´Â ½Ã°£ Á¤º¸ |
|---|
| 142 | UINT32 programLength; /* seconds units */ |
|---|
| 143 | UINT32 startTime; /* number of GPS seconds */ |
|---|
| 144 | |
|---|
| 145 | #if 0 |
|---|
| 146 | UINT8 ratingRegionCount; /*Content Advisory descriptor*/ |
|---|
| 147 | DMW_Rating *rating; |
|---|
| 148 | // event descriptorÀÎ contentAdvisoryDesc ³»¿ëÀ» ºÐ¼®Çؼ ¸¸µç °ªµéÀÌ´Ù. |
|---|
| 149 | // region count°¹¼ö¸¸Å ÀÖ°í, dimensionÀº Ç®¾î¼ ±â·ÏÇϰí ÀÖÀ½. |
|---|
| 150 | #else |
|---|
| 151 | DMW_Rating5 rating; |
|---|
| 152 | // ÀÌ field´Â pointer°¡ ¾Æ´Ï´Ù. |
|---|
| 153 | #endif |
|---|
| 154 | |
|---|
| 155 | // cafrii 030608 add |
|---|
| 156 | captionServiceDescriptorPtr_t caption; |
|---|
| 157 | |
|---|
| 158 | // EIT ³»ÀÇ event ³»ÀÇ title Á¤º¸ÀÌ´Ù. |
|---|
| 159 | UINT8 titleTextLength; |
|---|
| 160 | UINT8 *titleText; |
|---|
| 161 | |
|---|
| 162 | // ÀÌ event¶û ¿¬°áµÈ ETM Á¤º¸ÀÌ´Ù. ETT·ÎºÎÅÍ ¾ò¾î¿Ô´Ù. |
|---|
| 163 | // |
|---|
| 164 | UINT16 eventETMLength; |
|---|
| 165 | UINT8 *eventETM; |
|---|
| 166 | |
|---|
| 167 | |
|---|
| 168 | } DMW_EpgEvent , *DMW_EpgEventPtr; |
|---|
| 169 | |
|---|
| 170 | |
|---|
| 171 | |
|---|
| 172 | typedef int EpgUpdateEventType; |
|---|
| 173 | // |
|---|
| 174 | // ¿ø·¡ enum °ªÀ¸·Î Á¤ÀÇµÈ »ó¼öÀε¥ ´õÀÌ»ó »ç¿ëÇÏÁö ¾ÊÀ» °ÍÀ̹ǷΠenumÀº »èÁ¦ÇÏ¿´°í |
|---|
| 175 | // ÀÌ typeÀº compatibility¸¦ À§ÇØ ±×³É intÇüÀ¸·Î Á¤ÀÇÇÔ. |
|---|
| 176 | // |
|---|
| 177 | |
|---|
| 178 | |
|---|
| 179 | typedef STATUS (*EpgUpdateCallbackFn) (EpgUpdateEventType evt, UINT32 param1, UINT32 param2); |
|---|
| 180 | |
|---|
| 181 | |
|---|
| 182 | |
|---|
| 183 | |
|---|
| 184 | #endif // __DMW_EPG_H__ |
|---|
| 185 | |
|---|