From bacbbaa6973193e39cf7e40fe698d06962085cd4 Mon Sep 17 00:00:00 2001 From: DRC Date: Sat, 7 Aug 2010 16:12:08 +0000 Subject: [PATCH] Fix typo in SIMD dispatch routines which was causing 4:2:0 upsampling to be used instead of 4:2:2 when decompressing JPEG images using SSE2 code git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4118 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/jpeg/simd/jsimd_i386.c | 2 +- common/jpeg/simd/jsimd_x86_64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/jpeg/simd/jsimd_i386.c b/common/jpeg/simd/jsimd_i386.c index 66af0248..ab52519b 100644 --- a/common/jpeg/simd/jsimd_i386.c +++ b/common/jpeg/simd/jsimd_i386.c @@ -382,7 +382,7 @@ jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo, { if ((simd_support & JSIMD_SSE2) && IS_ALIGNED_SSE(jconst_fancy_upsample_sse2)) - jsimd_h2v1_fancy_upsample_sse2(cinfo->max_v_samp_factor, + jsimd_h2v2_fancy_upsample_sse2(cinfo->max_v_samp_factor, compptr->downsampled_width, input_data, output_data_ptr); else if (simd_support & JSIMD_MMX) jsimd_h2v2_fancy_upsample_mmx(cinfo->max_v_samp_factor, diff --git a/common/jpeg/simd/jsimd_x86_64.c b/common/jpeg/simd/jsimd_x86_64.c index 3437a9a5..92610074 100644 --- a/common/jpeg/simd/jsimd_x86_64.c +++ b/common/jpeg/simd/jsimd_x86_64.c @@ -260,7 +260,7 @@ jsimd_h2v2_fancy_upsample (j_decompress_ptr cinfo, JSAMPARRAY input_data, JSAMPARRAY * output_data_ptr) { - jsimd_h2v1_fancy_upsample_sse2(cinfo->max_v_samp_factor, + jsimd_h2v2_fancy_upsample_sse2(cinfo->max_v_samp_factor, compptr->downsampled_width, input_data, output_data_ptr); } -- 2.39.5