[FFmpeg-devel] [PATCH 0/2] VDA decoder for ffmpeg

Xidorn Quan quanxunzhen at gmail.com
Thu Aug 23 05:52:15 CEST 2012

On Tue, Aug 21, 2012 at 3:00 PM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de>wrote:

> Thanks, I really like the feature, but why can't you instantiate a full
> H.264 decoder with VDA HWAccel like an external application would instead
> of reimplementing lots of the header parsing?

Life wasn't be much simpler when I tried to reimplement this decoder
as just a wrapper of H.264 decoder.

I found that, we cannot just instantiate a decoder like an external
application inside a decoder since FFmpeg is designed to prevent that
on public API avcodec_open2.

To implement the decoder that way, we have to reimplement at least
the public codec initialization routine instead of parsing headers.
Then the decoder will largely depend on implementation details of
other parts of FFmpeg. I don't think it's an elegant way to implement
this decoder.

Xidorn Quan

More information about the ffmpeg-devel mailing list