[MPlayer-dev-eng] Direct3D vo -wid specific problem

Georgi Petrov gogothebee at gmail.com
Wed Dec 3 08:56:16 CET 2008


Ok, some examples:

VO: [direct3d] 720x576 => 1024x576 Planar YV12
VO: Description: Direct3D 9 Renderer
VO: Author: Georgi Petrov (gogothebee) <gogothebee at gmail.com>
<vo_direct3d>Accepted image format: Planar YV12
vo: win32: running at 1280x1024 with depth 32
<vo_direct3d><INFO>reconfigure_d3d called
<vo_direct3d>destroy_d3d_context called

New BackBuffer: Width: 145, Height:105. VO Dest Width:1024, Height: 576

Please note the BackBuffer's size - 145/105. Yep, the vo_dwidth and
vo_dheight are correct, but the backbuffer's dimensions are not. And
since the backbuffer is created with the current window's dimensions,
they are wrong (smaller). I can trigger a resize after the backbuffer
is created by comparing in with the vo_dwidth and vo_dheight, but I
don't think this is the right solution.

Let me paste an example from the same video, same setting, but using vo_gl:

VO: [gl] 720x576 => 1024x576 BGRA
VO: Description: X11 (OpenGL)
VO: Author: Arpad Gereoffy <arpi at esp-team.scene.hu>
vo: win32: running at 1280x1024 with depth 32

...

[gl] Creating 1024x1024 texture...
[gl] Resize: 145x105
*** [pp] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
[gl] Resize: 1024x576

Please notice the second resize event. Initially vo_gl creates 145x105
context as well, but then a second resize event to the right
dimensions comes and everything works. I don't get this second
"Resize: 1024x576" :)



More information about the MPlayer-dev-eng mailing list