From 0e3bfbd9961f4a337aa3b9024aefee4a2b642b5f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 25 Nov 2014 17:42:07 +0100 Subject: [PATCH] video-scale: combine adds when max_taps equals combine size When the amount of pixels/lines matches the amount we can combine, combine the adds and multiplies and do the scale as a separate operation. --- gst-libs/gst/video/video-scaler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/video/video-scaler.c b/gst-libs/gst/video/video-scaler.c index c732f57572..e518d8ada1 100644 --- a/gst-libs/gst/video/video-scaler.c +++ b/gst-libs/gst/video/video-scaler.c @@ -460,7 +460,7 @@ video_scale_h_ntap_4u8 (GstVideoScaler * scale, #ifdef LQ /* first pixels with first tap to temp */ - if (max_taps > 3) { + if (max_taps >= 3) { video_orc_resample_h_multaps3_u8_lq (temp, pixels, pixels + width, pixels + width * 2, taps, taps + count, taps + count * 2, count); max_taps -= 3; @@ -734,7 +734,7 @@ video_scale_v_ntap_4u8 (GstVideoScaler * scale, count = width * 4; #ifdef LQ - if (max_taps > 4) { + if (max_taps >= 4) { video_orc_resample_v_multaps4_u8_lq (temp, srcs[0], srcs[1 * src_inc], srcs[2 * src_inc], srcs[3 * src_inc], taps[0], taps[1], taps[2], taps[3], count);