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.
This commit is contained in:
@@ -504,9 +504,11 @@ jinit_downsampler (j_compress_ptr cinfo)
|
|||||||
compptr->v_samp_factor * 2 == cinfo->max_v_samp_factor) {
|
compptr->v_samp_factor * 2 == cinfo->max_v_samp_factor) {
|
||||||
#ifdef INPUT_SMOOTHING_SUPPORTED
|
#ifdef INPUT_SMOOTHING_SUPPORTED
|
||||||
if (cinfo->smoothing_factor) {
|
if (cinfo->smoothing_factor) {
|
||||||
|
#if defined(__mips__)
|
||||||
if (jsimd_can_h2v2_smooth_downsample())
|
if (jsimd_can_h2v2_smooth_downsample())
|
||||||
downsample->methods[ci] = jsimd_h2v2_smooth_downsample;
|
downsample->methods[ci] = jsimd_h2v2_smooth_downsample;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
downsample->methods[ci] = h2v2_smooth_downsample;
|
downsample->methods[ci] = h2v2_smooth_downsample;
|
||||||
downsample->pub.need_context_rows = TRUE;
|
downsample->pub.need_context_rows = TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user