[FFmpeg-devel] [PATCH] Add hwaccel_data infrastructure
Tue Mar 3 22:37:51 CET 2009
On Tue, Mar 03, 2009 at 01:29:17PM +0100, Gwenole Beauchesne wrote:
> This patch implements the suggested hwaccel_data infrastructure.
> - hwaccel_data is allocated by the player and matches what we currently
> name vdpau_render_state or vaapi_render_state. The aim is to replace the
> use of AVCodecContext::data (reserved for YV12 pixels -- future use).
is there an advantage over using data ?
> - hwaccel_data_private is optional (check AVHWAccel::priv_data_size) and
> allocated by FFmpeg. This private data has the lifetime of the decoded
> AVFrame. It's deallocated through the ::close() function. I don't really
> like the name. For VA API, I implemented it as ff_vaapi_destroy_picture().
this looks asymetric
alloc by av_mallocz()
close by callback
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is not what we do, but why we do it that matters.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel