diff options
author | Dmitry Kovalev <dkovalev@google.com> | 2013-10-17 13:02:28 -0700 |
---|---|---|
committer | Dmitry Kovalev <dkovalev@google.com> | 2013-10-17 13:02:28 -0700 |
commit | e05412fc23830d1af6560e5906884fa12184ce82 (patch) | |
tree | b2a3dcda271d2882568b425f9af1c1d8e686ff8b /vp9/encoder/x86 | |
parent | 518fc282f4f36f89f10e15a23dfc2ded5db294fa (diff) | |
download | libvpx-e05412fc23830d1af6560e5906884fa12184ce82.tar libvpx-e05412fc23830d1af6560e5906884fa12184ce82.tar.gz libvpx-e05412fc23830d1af6560e5906884fa12184ce82.tar.bz2 libvpx-e05412fc23830d1af6560e5906884fa12184ce82.zip |
Using stride (# of elements) instead of pitch (bytes) in fdct32x32.
Just making fdct consistent with iht/idct/fht functions which all use
stride (# of elements) as input argument.
Change-Id: Id623c5113262655fa50f7c9d6cec9a91fcb20bb4
Diffstat (limited to 'vp9/encoder/x86')
-rw-r--r-- | vp9/encoder/x86/vp9_dct32x32_sse2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vp9/encoder/x86/vp9_dct32x32_sse2.c b/vp9/encoder/x86/vp9_dct32x32_sse2.c index 11eec7f27..de47a5bf1 100644 --- a/vp9/encoder/x86/vp9_dct32x32_sse2.c +++ b/vp9/encoder/x86/vp9_dct32x32_sse2.c @@ -30,11 +30,11 @@ static INLINE __m128i k_packs_epi64(__m128i a, __m128i b) { #endif void FDCT32x32_2D(int16_t *input, - int16_t *output_org, int pitch) { + int16_t *output_org, int stride) { // Calculate pre-multiplied strides - const int str1 = pitch >> 1; - const int str2 = pitch; - const int str3 = pitch + str1; + const int str1 = stride; + const int str2 = 2 * stride; + const int str3 = 2 * stride + str1; // We need an intermediate buffer between passes. DECLARE_ALIGNED(16, int16_t, intermediate[32 * 32]); // Constants |