diff options
author | Yunqing Wang <yunqingwang@google.com> | 2012-11-20 10:01:20 -0800 |
---|---|---|
committer | Yunqing Wang <yunqingwang@google.com> | 2012-11-20 10:01:20 -0800 |
commit | bbe5e032a400526ca0b0695a892ec2ef54094bdb (patch) | |
tree | a127bce9a15aba6a5b526ec10b5b55a13944981d /vp9/common | |
parent | 4db08237e08e5384b48d0c5ee1ef0cf0fcd8bb3d (diff) | |
download | libvpx-bbe5e032a400526ca0b0695a892ec2ef54094bdb.tar libvpx-bbe5e032a400526ca0b0695a892ec2ef54094bdb.tar.gz libvpx-bbe5e032a400526ca0b0695a892ec2ef54094bdb.tar.bz2 libvpx-bbe5e032a400526ca0b0695a892ec2ef54094bdb.zip |
Fix ref_stride in sad function
Used ref_stride.
Change-Id: I31f0a3bb935520f54d11a1d87315627f162ae845
Diffstat (limited to 'vp9/common')
-rw-r--r-- | vp9/common/x86/sadmxn_x86.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vp9/common/x86/sadmxn_x86.c b/vp9/common/x86/sadmxn_x86.c index 1ba2d48de..77cd372ac 100644 --- a/vp9/common/x86/sadmxn_x86.c +++ b/vp9/common/x86/sadmxn_x86.c @@ -30,9 +30,9 @@ unsigned int vp9_sad16x3_sse2( s1 = _mm_loadu_si128((const __m128i *)(src_ptr + 1 * src_stride)); s2 = _mm_loadu_si128((const __m128i *)(src_ptr + 2 * src_stride)); - r0 = _mm_loadu_si128((const __m128i *)(ref_ptr + 0 * src_stride)); - r1 = _mm_loadu_si128((const __m128i *)(ref_ptr + 1 * src_stride)); - r2 = _mm_loadu_si128((const __m128i *)(ref_ptr + 2 * src_stride)); + r0 = _mm_loadu_si128((const __m128i *)(ref_ptr + 0 * ref_stride)); + r1 = _mm_loadu_si128((const __m128i *)(ref_ptr + 1 * ref_stride)); + r2 = _mm_loadu_si128((const __m128i *)(ref_ptr + 2 * ref_stride)); sad = _mm_sad_epu8(s0, r0); sad = _mm_add_epi16(sad, _mm_sad_epu8(s1, r1)); @@ -57,10 +57,10 @@ unsigned int vp9_sad3x16_sse2( s1 = _mm_cvtsi32_si128 (*(const int *)(src_ptr + 1 * src_stride)); s2 = _mm_cvtsi32_si128 (*(const int *)(src_ptr + 2 * src_stride)); s3 = _mm_cvtsi32_si128 (*(const int *)(src_ptr + 3 * src_stride)); - r0 = _mm_cvtsi32_si128 (*(const int *)(ref_ptr + 0 * src_stride)); - r1 = _mm_cvtsi32_si128 (*(const int *)(ref_ptr + 1 * src_stride)); - r2 = _mm_cvtsi32_si128 (*(const int *)(ref_ptr + 2 * src_stride)); - r3 = _mm_cvtsi32_si128 (*(const int *)(ref_ptr + 3 * src_stride)); + r0 = _mm_cvtsi32_si128 (*(const int *)(ref_ptr + 0 * ref_stride)); + r1 = _mm_cvtsi32_si128 (*(const int *)(ref_ptr + 1 * ref_stride)); + r2 = _mm_cvtsi32_si128 (*(const int *)(ref_ptr + 2 * ref_stride)); + r3 = _mm_cvtsi32_si128 (*(const int *)(ref_ptr + 3 * ref_stride)); s0 = _mm_unpacklo_epi8(s0, s1); r0 = _mm_unpacklo_epi8(r0, r1); |