[FFmpeg-devel] [PATCH] vc1.c: add support for HWAccel (take 3)

Gwenole Beauchesne gbeauchesne
Tue Mar 10 16:37:00 CET 2009


On Fri, 27 Feb 2009, Benoit Fouet wrote:

>> @@ -4277,6 +4279,15 @@ static int vc1_decode_frame(AVCodecContext *avctx,
>>      s->me.qpel_put= s->dsp.put_qpel_pixels_tab;
>>      s->me.qpel_avg= s->dsp.avg_qpel_pixels_tab;
>>
>> +    if (avctx->hwaccel) {
>> +        if (avctx->hwaccel->start_frame(avctx, buf, buf_size) < 0)
>> +            return -1;
>> +        if (avctx->hwaccel->decode_slice(avctx, buf_start, (buf +
>> buf_size) - buf_start) < 0)
>> +            return -1;
>> +        if (avctx->hwaccel->end_frame(avctx) < 0)
>> +            return -1;
>> +    }
>>
>
> those if()'s can be merged

Here is a new patch, but this really looks awful to me...

Anyhow, that also serves as a reminder/ping for Kostya. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.hwaccel.vc1.3.patch
Type: text/x-diff
Size: 2450 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090310/e5cc6cc8/attachment.patch>



More information about the ffmpeg-devel mailing list