videoscale: Use bilinear instead of 4tap scaling for heights < 4

Partially fixes bug #577054.
This commit is contained in:
Sebastian Dröge 2009-03-28 11:51:01 +01:00
parent 8eb3572eef
commit b5793ccd0d

View file

@ -734,6 +734,9 @@ gst_video_scale_transform (GstBaseTransform * trans, GstBuffer * in,
gst_video_scale_prepare_image (videoscale->format, out, dest, &dest_u,
&dest_v);
if (src->height < 4 && method == GST_VIDEO_SCALE_4TAP)
method = GST_VIDEO_SCALE_BILINEAR;
switch (method) {
case GST_VIDEO_SCALE_NEAREST:
GST_LOG_OBJECT (videoscale, "doing nearest scaling");