video-converter: fix interlaced scaling some more
authorWim Taymans <wtaymans@redhat.com>
Wed, 22 Jun 2016 14:02:37 +0000 (16:02 +0200)
committerWim Taymans <wtaymans@redhat.com>
Wed, 22 Jun 2016 14:21:13 +0000 (16:21 +0200)
commit5e752f4edad15cb090608f45c10161398ba58fee
tree9377c0b4bf288be6e23c56c84382902c56486a60
parent950c73af43a5e86d59f17aa489b930226ca50fa9
video-converter: fix interlaced scaling some more

Fix problem with the line cache where it would forget the first line in
the cache in some cases.
Keep as much backlog as we have taps. This generally works better and we
could do even better by calculating the overlap in all taps.
Allocated enough lines for the line cache.
Use only half the number of taps for the interlaced lines because we
only have half the number of lines.
The pixel shift should be relative to the new output pixel size so scale
it.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=767921
gst-libs/gst/video/video-converter.c
gst-libs/gst/video/video-resampler.c
gst-libs/gst/video/video-resampler.h
gst-libs/gst/video/video-scaler.c