libavfilter/vf_yadif: Make frame management logic and options shareable
authorPhilip Langdale <philipl@overt.org>
Wed, 24 Oct 2018 18:52:42 +0000 (11:52 -0700)
committerPhilip Langdale <philipl@overt.org>
Sat, 3 Nov 2018 22:45:55 +0000 (15:45 -0700)
commit041231fcd632a33506689e44e5b45f29ac4ce050
treeb7fe5d55cee20ef262e89e55f66abdf110bdfc9b
parent765fb1f224f61c563d3c82cfefbe44f43d452290
libavfilter/vf_yadif: Make frame management logic and options shareable

I'm writing a cuda implementation of yadif, and while this
obviously has a very different implementation of the actual
filtering, all the frame management is unchanged. To avoid
duplicating that logic, let's make it shareable.

From the perspective of the existing filter, the only real change
is introducing a function pointer for the filter() function so it
can be specified for the specific filter.

(cherry picked from commit 598f0f39271d6033588b4d8ccc672c5bdc85fec7)
libavfilter/Makefile
libavfilter/vf_yadif.c
libavfilter/yadif.h
libavfilter/yadif_common.c [new file with mode: 0644]