[FFmpeg-devel] [PATCH] Port VDPAU to AVHWAccel infrastructure

Joakim Plate elupus
Sat Jan 23 18:37:00 CET 2010

> Before that is done: is this new pixfmt scheme actually used anywhere
> and proven to work?
> Because I only know the MPlayer patch and that uses the codec id to
> generate the "old" scheme.
> If we get rid of codec-specific pixfmts just so that every single
> application actually using them has to add their own hacks to get back
> to the old API again that would just be really idiotic.

I've started using it for dxva, and it does seem to work there. One rather 
annoying but thou..

If ffmpeg is compiled without dxva/vdpau support. get_format will currently 
still ask for the dxva/vdpau pixformat's, fooling the app that those can be 

Fixing it is not entirely straight forward as for example vaapi supports 
multiple codecs, which can be disabled separate. And currently all of those 
formats use a single list for which pix_fmt's the have 

So one would have to split that list into separate for each codec to be able 
to ifdef out what has been enabled.

More information about the ffmpeg-devel mailing list