[FFmpeg-devel] [PATCH] Add VDA support to ffmpeg

Xunzhen Quan quanxunzhen at gmail.com
Thu Jul 19 01:08:43 CEST 2012

On Thu, Jul 19, 2012 at 5:33 AM, Michael Niedermayer <michaelni at gmx.at>wrote:

> You could extend HWAccel by what is missing. Or is there some problem
> with that approuch that iam missing ?

By the time I started this work, I found that the only hardware
accelerations working are VDPAU and CrtsyalHD, and they both
implemented as Decoder, not HWAccel. And I found that because of
the design of HWAccel API, it will need a lot more work and code
to extend HWAccel than to create a new Decoder.

I think that HWAccels are just used to do some complex mathematical
computing acceleration, but VDA is an all-in-one hardware acceleration
api, which supply only four functions: create decoder, destroy decoder,
decode and flush. So I think that it should be wrapped as a Decoder
rather than a HWAccel. And if you think it makes code bload, I suggest
to just remove the corresponding HWAccel sinceno one seems to be
using it.

More information about the ffmpeg-devel mailing list