Commit b5793ccd authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

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

Partially fixes bug #577054.
parent 8eb3572e
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment