#ifndef __dmw_dummy_h__ #define __dmw_dummy_h__ /* cafrii, 100725 DMW_Dummy.h ÆÄÀÏÀÌ DMW API ÆÄÀÏÀÎ DMW_Status.h ¿¡¼­ Æ÷ÇԵǰí ÀÖÀ¸¹Ç·Î, ÀÌ ÆÄÀÏ ¿ª½Ã DMW_Status.h ÆÄÀÏÀÌ ÀÖ´Â Æú´õ¿¡ À¯ÁöÇÏ´Â °ÍÀÌ ¹Ù¶÷Á÷ÇÏ¿© À§Ä¡ À̵¿ÇÔ. */ #include "DHL_AVCAP.h" #include "DHL_PSI.h" typedef struct { INT16 x; INT16 y; INT16 w; INT16 h; } DHL_Rect; /* video display Ãâ·Â ŸÀÔ. DHL_AV_ChangeVideoFormat() API ¿¡¼­ ÀÎÀÚ·Î »ç¿ë. ¹®Á¦Á¡ °¢ ŸÀÔµéÀº µ¶¸³ÀûÀÎ Ãâ·Â Æ÷Æ® (Ä¿³ØÅÍ)°¡ µÇ¾î¾ß ÇÒÅÙµ¥, HDMIÀÇ °æ¿ì YCbCr 4:4:4, YCbCr 4:2:2 µî°ú °°ÀÌ ¼¼ºÎ »çÇ×À» ÁöÁ¤ÇÒ ¼ö ÀÖ´Â ¹æ¹ýÀÌ ¾øÀ½. */ #if 0 typedef enum { eDHL_DISP_OUTPUT_UNKNOWN=0x0, eDHL_DISP_OUTPUT_PS2=0x1, /* 1 PS/2 ("VGA") */ eDHL_DISP_OUTPUT_DVI=0x2, /* 2 DVI */ eDHL_DISP_OUTPUT_656=0x4, /* 3 ITU-R BT.656, 8-bit output */ eDHL_DISP_OUTPUT_YPRPB=0x8, /* 4 YPrPb (HDTV), tri-sync */ eDHL_DISP_OUTPUT_COMPOSITE=0x10, /* 5 SDTV composite */ eDHL_DISP_OUTPUT_SVIDEO=0x20, /* 6 SDTV S-Video */ eDHL_DISP_OUTPUT_YPRPB_YSYNC=0x40, /* 7 YPrPb (HDTV), sync on Y only */ eDHL_DISP_OUTPUT_RGB=0x80, /* 8 RGB component, tri-sync */ eDHL_DISP_OUTPUT_RGB_GSYNC=0x100, /* 9 RGB component, sync on green */ eDHL_DISP_OUTPUT_PS2_YPRPB=0x200 /* 10 PS/2 ("VGA") YPrPb output */ } tDHL_DispOutput; #endif /* video display output timing °ªµé. ¿©±â¿¡´Â frequency Á¤º¸´Â ¾ø´Ù. 50Hz, 60Hz¸¦ µÑ ´Ù Áö¿øÇϸ鼭 ¼³Á¤¿¡ µû¶ó ¹Ù²î´Â ±×·± Á¦Ç°Àº ¾øÀ½. µû¶ó¼­ °¢ Á¦Ç° »ç¾ç¿¡ µû¶ó ƯÁ¤ Á֯ļö·Î °íÁ¤ÇÑ´Ù. 60Hz ¿Í 59.94Hz ¿Í °°Àº Â÷ÀÌ´Â HAL ³»ºÎ¿¡¼­ ¾Ë¾Æ¼­ °áÁ¤. VGA ȣȯ Ãâ·ÂÀÇ °æ¿ì ¾Æ·¡¿¡ ÀÖ´Â Á¤º¸¸¸À¸·Î´Â ÅξøÀÌ ºÎÁ·Çϰí, ¹º°¡ ´Ù¸¥ ¹æ¹ýÀ¸·Î ÁöÁ¤ÇØ¾ß ÇÑ´Ù. (TODO) HDMIÀÇ °æ¿ìµµ ¿ª½Ã ´Ù¸¥ ¹æ¹ýÀÌ ÇÊ¿äÇÏ´Ù. (TODO) ÀϹÝÀûÀ¸·Î Ç¥ÁØ ÇØ»óµµ¸¦ ÁÖ·Î »ç¿ëÇÑ´Ù. */ #if 0 typedef enum { eDHL_VIDEO_FORMAT_BEGIN, eDHL_VIDEO_720x480i, /*720x480 interlaced */ eDHL_VIDEO_720x480p, /*720x480 progressive */ eDHL_VIDEO_960x540p, /*960x540*/ eDHL_VIDEO_1280x720p, /*1280x720 progressive */ eDHL_VIDEO_1920x1080i, /*1920x1080 interlaced */ eDHL_VIDEO_1366x768, /*1366x768P 59.94Hz : 32" WXGA LG LCD */ eDHL_VIDEO_VGA, /*640x480 progressive */ eDHL_VIDEO_NTSC_M, /*NTSC w/ 7.5 IRE */ eDHL_VIDEO_640x480, eDHL_VIDEO_800x600, eDHL_VIDEO_1024x768, eDHL_VIDEO_END } tDHL_VideoFormat; #endif /* TV displayÀÇ aspect ratio. HDMI ÀåÄ¡ÀÇ °æ¿ì EDID·Î ºÎÅÍ ÀÐÀ» ¼öµµ Àִµ¥, ÀÏ´Ü applicationÀÌ ÁöÁ¤ÇÏ´Â °ÍÀ¸·Î ÇÔ. ÀÚµ¿ ARC ±â´É¿¡¼­ ÀÌ Á¤º¸¸¦ Ȱ¿ëÇÏ´Â °æ¿ì°¡ ÀÖ´Ù. ±× ¿Ü¿¡´Â ÀÌ Á¤º¸´Â informational À̸ç, AFDÀÇ °æ¿ì application¿¡¼­´Â ÀÌ¹Ì ÀÌ Á¤º¸¸¦ ¾Ë°í ÀÖÀ¸¹Ç·Î ±×³É ÂüÁ¶¿ëÀ¸·Î¸¸ Ȱ¿ëµÈ´Ù. ÇöÀç´Â 4:3°ú 16:9 ¸¸ Àǹ̰¡ ÀÖÀ½. */ #if 0 typedef enum { eDHL_DISP_ASPECT_1_1 = 1, /* Display aspect ratio is 1:1 */ eDHL_DISP_ASPECT_4_3, /* Display aspect ratio is 4:3 */ eDHL_DISP_ASPECT_16_9, /* Display aspect ratio is 16:9 */ eDHL_DISP_ASPECT_5_4 /* Display aspect ratio is 5:4 */ } tDHL_DispAspectRatio; #endif typedef void *DHL_DISP_AUXSETTING; #if 0 /* HD, SD¸¦ °¢°¢ Á¶Á¤ °¡´ÉÇÑ °æ¿ì ÁöÁ¤Çϱâ À§ÇØ ÇÊ¿ä */ typedef enum { eDHL_DISP_TYPE_HD = 0, eDHL_DISP_TYPE_SD = 1 } tDHL_DispType; DHL_RESULT DHL_AV_ChangeVideoFormat(tDHL_DispOutput output, tDHL_VideoFormat format, tDHL_DispAspectRatio ratio); DHL_RESULT DHL_AV_ChangeVideoAdjustment(tDHL_DispType type, tDHL_DispARC adj, DHL_Rect *rect); #endif #define noAuxVideo 0 #ifndef IsError // zooyouny 100629 : neo ¼³Á¤ °ª°ú µ¿ÀÏÇÑ °ª »ç¿ë #define IsError(x) ((x) && (x)<0xF00) #endif typedef enum { eDHL_AV_CAPABILITY_UKNOWN, eDHL_AV_CAPABILITY_VIDEO, eDHL_AV_CAPABILITY_AUDIO, eDHL_AV_CAPABILITY_MAX } tDHL_AV_CAPABILITY_TYPE; DHL_RESULT DHL_AV_GetCapability(tDHL_AV_CAPABILITY_TYPE queryType, UINT32 qValue ,void *pValue); BOOL DHL_AV_IsWideoFormat(tDHL_VideoSeqHdr *seq); typedef void *DHL_VideoContextObject_t; /* DHL video decoder ³»ºÎ »óÅ Á¤º¸ ÇÚµé. applicationÀº ½ÇÁ¦ object ³»ºÎ ±¸Á¶¿¡ ´ëÇØ¼­´Â ¾Ë ¼ö ¾øÀ¸¸ç, Á¢±Ù ºÒ°¡ÀÓ. */ typedef struct DHL_VideoContextObject_t *tDHL_VideoContextHandle; DHL_RESULT DHL_AV_GetSequenceHeader(tDHL_VideoContextHandle handle, tDHL_VideoSeqHdr *pSeq /*[out]*/); char *DHL_PSIEventString(tDHL_PSI_Event event); BOOL DHL_AV_VideoOutputExist(void); DHL_RESULT DHL_CAP_AudioStop(void); //DHL_RESULT DHL_CAP_VideoStop(tDHL_VideoContextHandle pHandle); #define DHL_WARN_SCRAMBLED 0xF0001 #define DHL_WARN_BAD_FORMAT 0xF0002 #define DHL_FAIL_CANCELLED_BY_USER 0x27 //DHL_RESULT DHL_CAP_VideoStart(tDHL_VideoContextHandle *pHandle); DHL_RESULT DHL_CAP_DispStart(void); DHL_RESULT DHL_CAP_AudioStart(void); // Default tuner id // Â÷ÈÄ Neo¿¡¼­´Â ÀÇ¹Ì ÀÖ´Â prameter·Î ¹Ù²î¾î¾ßÇÑ´Ù #define DEFAULT_TUNER_ID 0 const char *ErrorString(DHL_RESULT err); #endif // __dmw_dummy_h__