[FFmpeg-devel] [PATCH v2] lavfi: port IVTC filters from vapoursynth.

Clément Bœsch ubitux at gmail.com
Mon Apr 8 02:14:23 CEST 2013

On Sat, Apr 06, 2013 at 08:18:07PM +0100, Kieran Kunhya wrote:
> > +static void copy_fields(const FieldMatchContext *fm, AVFrame *dst,
> av_image_copy with doubled stride perhaps?

av_image_copy() is not really handy in this case. OTOH I changed the code
to use av_image_copy_plane(), so basically that function now looks like

    int plane;
    for (plane = 0; plane < 4 && src->data[plane]; plane++)
        av_image_copy_plane(dst->data[plane] + field*dst->linesize[plane], dst->linesize[plane] << 1,
                            src->data[plane] + field*src->linesize[plane], src->linesize[plane] << 1,
                            get_width(fm, src, plane), get_height(fm, src, plane) / 2);


Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130408/6f5d6214/attachment.asc>

More information about the ffmpeg-devel mailing list