mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
videoscale: Use bilinear instead of 4tap scaling for heights < 4
Partially fixes bug #577054.
This commit is contained in:
parent
8eb3572eef
commit
b5793ccd0d
1 changed files with 3 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue