[vlc-devel] [PATCH] DxVA2: allow NV12 pixel format all the way to the D3D texture

Jean-Baptiste Kempf jb at videolan.org
Wed Apr 1 15:16:18 CEST 2015


On 01 Apr, Steve Lhomme wrote :
> j-b mentioned that a custom VLC_CODEC_DXVA pixel format could be used
> for hardware acceleration, like it's done in Android. But if we want
> to use filters that means the DXVA format cannot be opaque.

Well, one idea is that the DxVA decoder always outputs
VLC_CODEC_D3D9_OPAQUE or VLC_CODEC_D3D11_OPAQUE and we create a fiter
that can do VLC_CODEC_D3D9_OPAQUE -> NV12 and one VLC_CODEC_D3D9_OPAQUE
-> YV12.

Therefore we can do all the format negotiation in the vfilter chain.

And of course, we can have the D3D or D3D11 video output to render
directly the VLC_CODEC_D3D9_OPAQUE or VLC_CODEC_D3D11_OPAQUE
(respectively)

With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list