[FFmpeg-devel] [PATCH 2/2] lavfi/WIP: port IVTC filters from vapoursynth.
Nicolas George
nicolas.george at normalesup.org
Sun Mar 24 15:22:18 CET 2013
Le quartidi 4 germinal, an CCXXI, Clement Boesch a écrit :
> +static int filter_frame(AVFilterLink *inlink, AVFrame *in)
> + if (inlink == ctx->inputs[INPUT_MAIN]) {
> + SLIDING_FRAME_WINDOW(fm->prv, fm->src, fm->nxt);
> + fm->got_frame[INPUT_MAIN] = 1;
> + } else {
> + SLIDING_FRAME_WINDOW(fm->prv2, fm->src2, fm->nxt2);
> + fm->got_frame[INPUT_CLEANSRC] = 1;
> + }
You could use FF_INLINK_IDX.
Reading your code, I see no synchronization mechanism: in->pts is used only
in a debug message. OTOH, your other message suggest that one possible use
is to have one input connected to decimate and the other not: this will not
work, since decimate skips frames, and therefore does not maintain
frame-per-frame synchronization.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130324/fdac5344/attachment.asc>
More information about the ffmpeg-devel
mailing list