mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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.
This commit is contained in:
parent
74e63fa660
commit
0e3bfbd996
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue