summaryrefslogtreecommitdiff
path: root/jdsample.c
diff options
context:
space:
mode:
authorJonathan Wright <jonathan.wright@arm.com>2019-05-08 15:43:26 +0100
committerJonathan Wright <jonathan.wright@arm.com>2019-06-13 12:59:18 +0100
commit0927aa3f57d4a90d02576155e6ce4380aee98bcb (patch)
treede047bbeccf3b7763b6cfe47f17f7a6fcad0dc79 /jdsample.c
parentd78acdd58d99e49d9b7c1d97c347d4a9239c3f6b (diff)
Add SIMD function stubs for h1v2_fancy_upsample
Adds arm, arm64, i386 and x86_64 SIMD function stubs for h1v2_fancy_upsample. Arm NEON acceleration for h1v2_fancy_upsample will be added in a future commit. Bug: 922430 Change-Id: I93f27230f105ed875c8a656d77e9b760eaefe7d8
Diffstat (limited to 'jdsample.c')
-rw-r--r--jdsample.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/jdsample.c b/jdsample.c
index 3e98522..59257e1 100644
--- a/jdsample.c
+++ b/jdsample.c
@@ -476,7 +476,10 @@ jinit_upsampler(j_decompress_ptr cinfo)
} else if (h_in_group == h_out_group &&
v_in_group * 2 == v_out_group && do_fancy) {
/* Non-fancy upsampling is handled by the generic method */
- upsample->methods[ci] = h1v2_fancy_upsample;
+ if (jsimd_can_h1v2_fancy_upsample())
+ upsample->methods[ci] = jsimd_h1v2_fancy_upsample;
+ else
+ upsample->methods[ci] = h1v2_fancy_upsample;
upsample->pub.need_context_rows = TRUE;
} else if (h_in_group * 2 == h_out_group &&
v_in_group * 2 == v_out_group) {