[FFmpeg-devel] [PATCH][VAAPI][3/6] Add MPEG-2 bitstream decoding (take 3)
Gwenole Beauchesne
gbeauchesne
Wed Mar 11 14:39:25 CET 2009
On Fri, 6 Mar 2009, Gwenole Beauchesne wrote:
> 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.
New patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.hwaccel.vaapi.mpeg2.3.patch
Type: text/x-diff
Size: 7785 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090311/7cb921ce/attachment.patch>
More information about the ffmpeg-devel
mailing list