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

Gwenole Beauchesne gbeauchesne
Fri Mar 13 17:05:06 CET 2009


Hi,

On Thu, 12 Mar 2009, Michael Niedermayer wrote:

> On Thu, Mar 12, 2009 at 06:09:08AM +0100, Gwenole Beauchesne wrote:
>> Le 12 mars 09 ? 01:27, Michael Niedermayer a ?crit :
>>
>>>> +{
>>>> +    const struct vaapi_context *va_context = avctx->hwaccel_context;
>>>> +    struct vaapi_hwaccel_data_private * const p = pic-
>>>>> hwaccel_data_private;
>>>
>>> the structs should be named in a way that makes it obvious which is
>>> "global" and which is per frame like
>>> hwaccel_frame/surface/..._private or so
>>
>> The current names are obvious.
>> - vaapi_context derived from and accessed from
>> AVCodecContext.hwaccel_context
>
>> - vaapi_hwaccel_data_private derived from and accessed from
>> Picture.hwaccel_data_private
>
> both are bad, both should be changed

Please elaborate, they looked very intuitive and straightforward.

Anyway, here are some other random names, just pick one that suits you 
best...

- vaapi_context:
vaapi_decoder_context
vaapi_decoder
vaapi_device
vaapi_global_vars
vaapi_globals
vaapi_session
vaapi_universe

- vaapi_hwaccel_data_private:
vaapi_frame_private
vaapi_picture_private
vaapi_render_context_private
vaapi_surface_private
vaapi_wormhole_private



More information about the ffmpeg-devel mailing list