[FFmpeg-devel] [PATCH] Add hwaccel_data infrastructure
Gwenole Beauchesne
gbeauchesne
Tue Mar 3 13:29:17 CET 2009
Hi,
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[0] (reserved for YV12 pixels -- future use).
- 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().
Regards,
Gwenole.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.hwaccel.data.4.patch
Type: text/x-diff
Size: 3501 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090303/7d1c535d/attachment.patch>
More information about the ffmpeg-devel
mailing list