summaryrefslogtreecommitdiff
path: root/vp9/common
diff options
context:
space:
mode:
authorYunqing Wang <yunqingwang@google.com>2023-05-05 15:33:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-05-05 15:33:21 +0000
commit17f1a23f5510111ebc4d0ea99aa302fc392fc810 (patch)
tree7a8f69e95699b314e526f7425c8f4939ec797e6d /vp9/common
parent3580bc559a223818a29c263e8b59d72ce56dddd5 (diff)
parent255ee1888589aa15ae909b992fe123c0358b1730 (diff)
downloadlibvpx-17f1a23f5510111ebc4d0ea99aa302fc392fc810.tar
libvpx-17f1a23f5510111ebc4d0ea99aa302fc392fc810.tar.gz
libvpx-17f1a23f5510111ebc4d0ea99aa302fc392fc810.tar.bz2
libvpx-17f1a23f5510111ebc4d0ea99aa302fc392fc810.zip
Merge "Add AVX2 intrinsic for idct16x16 and idct32x32 functions" into main
Diffstat (limited to 'vp9/common')
-rw-r--r--vp9/common/vp9_idct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vp9/common/vp9_idct.c b/vp9/common/vp9_idct.c
index 69069042c..71be0f310 100644
--- a/vp9/common/vp9_idct.c
+++ b/vp9/common/vp9_idct.c
@@ -150,6 +150,7 @@ void vp9_idct8x8_add(const tran_low_t *input, uint8_t *dest, int stride,
void vp9_idct16x16_add(const tran_low_t *input, uint8_t *dest, int stride,
int eob) {
+ assert(((intptr_t)input) % 32 == 0);
/* The calculation can be simplified if there are not many non-zero dct
* coefficients. Use eobs to separate different cases. */
if (eob == 1) /* DC only DCT coefficient. */
@@ -164,6 +165,7 @@ void vp9_idct16x16_add(const tran_low_t *input, uint8_t *dest, int stride,
void vp9_idct32x32_add(const tran_low_t *input, uint8_t *dest, int stride,
int eob) {
+ assert(((intptr_t)input) % 32 == 0);
if (eob == 1)
vpx_idct32x32_1_add(input, dest, stride);
else if (eob <= 34)