[FFmpeg-devel] [PATCH][VAAPI][2/6] Add common data structures and helpers (take 9)

Gwenole Beauchesne gbeauchesne
Wed Mar 11 23:37:31 CET 2009


Le 11 mars 09 ? 21:29, Michael Niedermayer a ?crit :

> On Wed, Mar 11, 2009 at 06:45:28AM +0100, Gwenole Beauchesne wrote:
>> Le 11 mars 09 ? 02:10, Michael Niedermayer a ?crit :
>>
>>>> +/** Destroy VA API render state buffers */
>>>> +static void vaapi_render_state_fini(struct
>>>> vaapi_render_state_private *rds)
>>>
>>> the vaapi_ prefixes are still useless
>>
>> vaapi_render_state is the name of the struct...
>
> yes but why?

VDPAU heritage that you liked...

New patch attached:
- Mandate AVCodecContext.hwaccel_context to hold a struct vaapi_context
- Dropped struct vaapi_render_state, Picture.data[3] is the VASurfaceID
- Renamed vaapi_render_state_private to vaapi_hwaccel_data_private  
(akin to Picture.hwaccel_data_private)

Compile tested. I have yet to visually check if my MPlayer vo control  
works to retrieve avctx->hwaccel_context.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.hwaccel.vaapi.common.9.patch
Type: application/octet-stream
Size: 13421 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090311/fab24f9f/attachment.obj>
-------------- next part --------------




More information about the ffmpeg-devel mailing list