From b70fe7221e630f0ef730bbe9941d377028544dc0 Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 15 May 2014 18:22:24 +0000 Subject: [PATCH] Fix build, which was broken by the checkin of the MIPS DSPr2 accelerated smooth downsampling routine. Until/unless other platforms include SIMD support for that function, it's just easier to #ifdef around it rather than adding stubs for the other platforms. --- jcsample.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jcsample.c b/jcsample.c index 36ae7846..e1b45e77 100644 --- a/jcsample.c +++ b/jcsample.c @@ -504,9 +504,11 @@ jinit_downsampler (j_compress_ptr cinfo) compptr->v_samp_factor * 2 == cinfo->max_v_samp_factor) { #ifdef INPUT_SMOOTHING_SUPPORTED if (cinfo->smoothing_factor) { +#if defined(__mips__) if (jsimd_can_h2v2_smooth_downsample()) downsample->methods[ci] = jsimd_h2v2_smooth_downsample; else +#endif downsample->methods[ci] = h2v2_smooth_downsample; downsample->pub.need_context_rows = TRUE; } else {