comparison libvo/vo_directx.c @ 33819:6451d20ff7c1

Avoid typedef.
author reimar
date Sun, 24 Jul 2011 19:43:47 +0000
parents fc9fbb0b31fa
children 4c888b1d8cac
comparison
equal deleted inserted replaced
33818:fc9fbb0b31fa 33819:6451d20ff7c1
78 #define IID_IDirectDrawColorControl MP_IID_IDirectDrawColorControl 78 #define IID_IDirectDrawColorControl MP_IID_IDirectDrawColorControl
79 static const GUID MP_IID_IDirectDrawColorControl = { 79 static const GUID MP_IID_IDirectDrawColorControl = {
80 0x4b9f0ee0, 0x0d7e, 0x11d0, { 0x9b, 0x06, 0x00, 0xa0, 0xc9, 0x03, 0xa3, 0xb8 } 80 0x4b9f0ee0, 0x0d7e, 0x11d0, { 0x9b, 0x06, 0x00, 0xa0, 0xc9, 0x03, 0xa3, 0xb8 }
81 }; 81 };
82 82
83 typedef struct directx_fourcc_caps { 83 struct directx_fourcc_caps {
84 char img_format_name[6]; //human readable name 84 char img_format_name[6]; //human readable name
85 uint32_t img_format; //as MPlayer image format 85 uint32_t img_format; //as MPlayer image format
86 DDPIXELFORMAT g_ddpfOverlay; //as Directx Sourface description 86 DDPIXELFORMAT g_ddpfOverlay; //as Directx Sourface description
87 } directx_fourcc_caps; 87 } static const g_ddpf[] = {
88
89 static const directx_fourcc_caps g_ddpf[] = {
90 { "YV12 ", IMGFMT_YV12, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('Y', 'V', '1', '2'), 0, 0, 0, 0, 0 } }, 88 { "YV12 ", IMGFMT_YV12, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('Y', 'V', '1', '2'), 0, 0, 0, 0, 0 } },
91 { "I420 ", IMGFMT_I420, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('I', '4', '2', '0'), 0, 0, 0, 0, 0 } }, //yv12 with swapped uv 89 { "I420 ", IMGFMT_I420, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('I', '4', '2', '0'), 0, 0, 0, 0, 0 } }, //yv12 with swapped uv
92 { "IYUV ", IMGFMT_IYUV, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('I', 'Y', 'U', 'V'), 0, 0, 0, 0, 0 } }, //same as i420 90 { "IYUV ", IMGFMT_IYUV, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('I', 'Y', 'U', 'V'), 0, 0, 0, 0, 0 } }, //same as i420
93 { "YVU9 ", IMGFMT_YVU9, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('Y', 'V', 'U', '9'), 0, 0, 0, 0, 0 } }, 91 { "YVU9 ", IMGFMT_YVU9, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('Y', 'V', 'U', '9'), 0, 0, 0, 0, 0 } },
94 { "YUY2 ", IMGFMT_YUY2, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('Y', 'U', 'Y', '2'), 0, 0, 0, 0, 0 } }, 92 { "YUY2 ", IMGFMT_YUY2, { sizeof(DDPIXELFORMAT), DDPF_FOURCC, MAKEFOURCC('Y', 'U', 'Y', '2'), 0, 0, 0, 0, 0 } },