vf_bwdif's frame management logic is almost identical to that of yadif.
The only difference is that it tracks the first and last fields in a
sequence, and that requires slight changes to the common code.

Assuming it's reasonable to do that tracking even though yadif doesn't
need it, we can then remove all the duplicated logic.

Philip Langdale (2):
  avfilter/yadif_common: Add field type tracking to help bwdif
  avfilter/vf_bwdif: Use common yadif frame management logic

 libavfilter/bwdif.h             |  34 +----
 libavfilter/vf_bwdif.c          | 235 +++++---------------------------
 libavfilter/x86/vf_bwdif_init.c |   3 +-
 libavfilter/yadif.h             |  14 ++
 libavfilter/yadif_common.c      |  12 +-
 5 files changed, 64 insertions(+), 234 deletions(-)

-- 
2.19.1

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to