[FFmpeg-devel] [PATCH][VAAPI][3/6] Add MPEG-2 bitstream decoding (take 2)

Gwenole Beauchesne gbeauchesne
Fri Mar 6 11:05:40 CET 2009


On Wed, 4 Mar 2009, Aurelien Jacobs wrote:

>> +#if CONFIG_MPEG2_VAAPI_HWACCEL
>> +AVHWAccel mpeg2_vaapi_hwaccel = {
>> +    .name           = "mpeg2_vaapi",
>> +    .type           = CODEC_TYPE_VIDEO,
>> +    .id             = CODEC_ID_MPEG2VIDEO,
>> +    .pix_fmt        = PIX_FMT_VAAPI_VLD,
>> +    .capabilities   = 0,
>> +    .start_frame    = vaapi_mpeg2_start_frame,
>> +    .end_frame      = ff_vaapi_common_end_frame,
>> +    .decode_slice   = vaapi_mpeg2_decode_slice,
>> +    .priv_data_size = sizeof(struct vaapi_render_state_private),
>> +    .close          = ff_vaapi_destroy_picture,
>> +};
>> +#endif
>
> This file won't ever be compiled without CONFIG_MPEG2_VAAPI_HWACCEL
> so the #if is useless.
>
> I guess those remarks also apply to every codec specific vaapi_*.c files.

vaapi_{mpeg4,vc1}.c contain several hwaccels, but I will drop it for 
vaapi_{mpeg2,h264}.c.




More information about the ffmpeg-devel mailing list