Bae,
The DX render is supported in the current release. gdi and bltrenders weresupported inold releases.Our new releasehas removed them. Can DX render be used there?
Thanks,
Chao
Dear Chao
I have tested all of combination of simple_player's parameters.
for directx displaying, the following options are success
-v dx -f rgb565
-v dx -f yuy2
other options can't display the screen.
I have debugged the sample source code becacuse simple_player can't display the screen.
video_reders's project's dx_drv.cpp/dx_drv.h include the followed code.
const DDPIXELFORMAT umc_dx_overlay_formats[] =
{
{sizeof(DDPIXELFORMAT), DDPF_FOURCC | DDPF_YUV, MAKEFOURCC('Y','V','1','2'), 12, 0, 0, 0, 0}, /* YV12 */
{sizeof(DDPIXELFORMAT), DDPF_FOURCC | DDPF_YUV, MAKEFOURCC('Y','U','Y','2'), 16, 0, 0, 0, 0}, /* YUY2 */
{sizeof(DDPIXELFORMAT), DDPF_FOURCC | DDPF_YUV, MAKEFOURCC('U','Y','V','Y'), 16, 0, 0, 0, 0}, /* UYVY */
{sizeof(DDPIXELFORMAT), DDPF_FOURCC | DDPF_YUV, MAKEFOURCC('N','V','1','2'), 12, 0, 0, 0, 0}, /* NV12 */
{sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 16, 0xf800, 0x07e0, 0x001f, 0} /* RGB565 */
};
typedef enum DDVideoDrvColorFormat
{
DXVideoDrv_YV12 = 0,
DXVideoDrv_YUY2 = 1,
DXVideoDrv_UYVY = 2,
DXVideoDrv_NV12 = 3,
DXVideoDrv_RGB565 = 4
} DDVideoDrvColorFormat;
simple_player's option have yv12, yuv420, yuv422, yuy2, rgb565, rgb24.
But the original source code support yu12, yu2, uyvy, nv12, rgb565.
And I don't know the reason that other pixel fomat option can't display the screen.
(I'm begginer for directX mechanism...^^;;;)
Thanks
Bae