From 47d9d48fa4a7c1f7ff09e09464a4c2ea1758f706 Mon Sep 17 00:00:00 2001 From: Yunqing Wang <yunqingwang@google.com> Date: Fri, 16 Nov 2012 12:07:12 -0800 Subject: [PATCH] Add const before the dequant(dq) Modified code to use const before dq. Change-Id: I6fa59c2ed9743ded33ad08df70e15c2fe1ae7b99 --- vp9/common/rtcd_defs.sh | 20 ++++++------- vp9/decoder/dequantize.c | 41 +++++++++++++------------- vp9/decoder/dequantize.h | 52 ++++++++++++++++++--------------- vp9/decoder/idct_blk.c | 43 ++++++++++++++------------- vp9/decoder/x86/idct_blk_mmx.c | 8 ++--- vp9/decoder/x86/idct_blk_sse2.c | 20 ++++++------- 6 files changed, 96 insertions(+), 88 deletions(-) diff --git a/vp9/common/rtcd_defs.sh b/vp9/common/rtcd_defs.sh index 4fef04d1e1..33d6a742ce 100644 --- a/vp9/common/rtcd_defs.sh +++ b/vp9/common/rtcd_defs.sh @@ -45,34 +45,34 @@ specialize vp9_dequantize_b mmx prototype void vp9_dequantize_b_2x2 "struct blockd *x" specialize vp9_dequantize_b_2x2 -prototype void vp9_dequant_dc_idct_add_y_block_8x8 "short *q, short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, short *dc, struct macroblockd *xd" +prototype void vp9_dequant_dc_idct_add_y_block_8x8 "short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, const short *dc, struct macroblockd *xd" specialize vp9_dequant_dc_idct_add_y_block_8x8 -prototype void vp9_dequant_idct_add_y_block_8x8 "short *q, short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, struct macroblockd *xd" +prototype void vp9_dequant_idct_add_y_block_8x8 "short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, struct macroblockd *xd" specialize vp9_dequant_idct_add_y_block_8x8 -prototype void vp9_dequant_idct_add_uv_block_8x8 "short *q, short *dq, unsigned char *pre, unsigned char *dstu, unsigned char *dstv, int stride, unsigned short *eobs, struct macroblockd *xd" +prototype void vp9_dequant_idct_add_uv_block_8x8 "short *q, const short *dq, unsigned char *pre, unsigned char *dstu, unsigned char *dstv, int stride, unsigned short *eobs, struct macroblockd *xd" specialize vp9_dequant_idct_add_uv_block_8x8 -prototype void vp9_dequant_idct_add_16x16 "short *input, short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride, unsigned short eobs" +prototype void vp9_dequant_idct_add_16x16 "short *input, const short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride, unsigned short eobs" specialize vp9_dequant_idct_add_16x16 -prototype void vp9_dequant_idct_add_8x8 "short *input, short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride, int dc, unsigned short eobs" +prototype void vp9_dequant_idct_add_8x8 "short *input, const short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride, int dc, unsigned short eobs" specialize vp9_dequant_idct_add_8x8 -prototype void vp9_dequant_idct_add "short *input, short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride" +prototype void vp9_dequant_idct_add "short *input, const short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride" specialize vp9_dequant_idct_add -prototype void vp9_dequant_dc_idct_add "short *input, short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride, int Dc" +prototype void vp9_dequant_dc_idct_add "short *input, const short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride, int Dc" specialize vp9_dequant_dc_idct_add -prototype void vp9_dequant_dc_idct_add_y_block "short *q, short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, short *dc" +prototype void vp9_dequant_dc_idct_add_y_block "short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, const short *dc" specialize vp9_dequant_dc_idct_add_y_block mmx -prototype void vp9_dequant_idct_add_y_block "short *q, short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs" +prototype void vp9_dequant_idct_add_y_block "short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs" specialize vp9_dequant_idct_add_y_block mmx -prototype void vp9_dequant_idct_add_uv_block "short *q, short *dq, unsigned char *pre, unsigned char *dstu, unsigned char *dstv, int stride, unsigned short *eobs" +prototype void vp9_dequant_idct_add_uv_block "short *q, const short *dq, unsigned char *pre, unsigned char *dstu, unsigned char *dstv, int stride, unsigned short *eobs" specialize vp9_dequant_idct_add_uv_block mmx # diff --git a/vp9/decoder/dequantize.c b/vp9/decoder/dequantize.c index a23f8e9b6c..e0f6754112 100644 --- a/vp9/decoder/dequantize.c +++ b/vp9/decoder/dequantize.c @@ -67,8 +67,8 @@ void vp9_dequantize_b_c(BLOCKD *d) { int i; int16_t *DQ = d->dqcoeff; - int16_t *Q = d->qcoeff; - int16_t *DQC = d->dequant; + const int16_t *Q = d->qcoeff; + const int16_t *DQC = d->dequant; for (i = 0; i < 16; i++) { DQ[i] = Q[i] * DQC[i]; @@ -76,7 +76,8 @@ void vp9_dequantize_b_c(BLOCKD *d) { } -void vp9_ht_dequant_idct_add_c(TX_TYPE tx_type, int16_t *input, int16_t *dq, +void vp9_ht_dequant_idct_add_c(TX_TYPE tx_type, int16_t *input, + const int16_t *dq, uint8_t *pred, uint8_t *dest, int pitch, int stride) { int16_t output[16]; @@ -94,7 +95,8 @@ void vp9_ht_dequant_idct_add_c(TX_TYPE tx_type, int16_t *input, int16_t *dq, add_residual(diff_ptr, pred, pitch, dest, stride, 4, 4); } -void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, int16_t *input, int16_t *dq, +void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, int16_t *input, + const int16_t *dq, uint8_t *pred, uint8_t *dest, int pitch, int stride) { int16_t output[64]; @@ -113,7 +115,7 @@ void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, int16_t *input, int16_t *dq, add_residual(diff_ptr, pred, pitch, dest, stride, 8, 8); } -void vp9_dequant_idct_add_c(int16_t *input, int16_t *dq, uint8_t *pred, +void vp9_dequant_idct_add_c(int16_t *input, const int16_t *dq, uint8_t *pred, uint8_t *dest, int pitch, int stride) { int16_t output[16]; int16_t *diff_ptr = output; @@ -131,9 +133,8 @@ void vp9_dequant_idct_add_c(int16_t *input, int16_t *dq, uint8_t *pred, add_residual(diff_ptr, pred, pitch, dest, stride, 4, 4); } -void vp9_dequant_dc_idct_add_c(int16_t *input, int16_t *dq, uint8_t *pred, - uint8_t *dest, int pitch, int stride, - int Dc) { +void vp9_dequant_dc_idct_add_c(int16_t *input, const int16_t *dq, uint8_t *pred, + uint8_t *dest, int pitch, int stride, int Dc) { int i; int16_t output[16]; int16_t *diff_ptr = output; @@ -153,7 +154,7 @@ void vp9_dequant_dc_idct_add_c(int16_t *input, int16_t *dq, uint8_t *pred, } #if CONFIG_LOSSLESS -void vp9_dequant_idct_add_lossless_c(int16_t *input, int16_t *dq, +void vp9_dequant_idct_add_lossless_c(int16_t *input, const int16_t *dq, uint8_t *pred, uint8_t *dest, int pitch, int stride) { int16_t output[16]; @@ -171,7 +172,7 @@ void vp9_dequant_idct_add_lossless_c(int16_t *input, int16_t *dq, add_residual(diff_ptr, pred, pitch, dest, stride, 4, 4); } -void vp9_dequant_dc_idct_add_lossless_c(int16_t *input, int16_t *dq, +void vp9_dequant_dc_idct_add_lossless_c(int16_t *input, const int16_t *dq, uint8_t *pred, uint8_t *dest, int pitch, int stride, int dc) { @@ -195,8 +196,8 @@ void vp9_dequant_dc_idct_add_lossless_c(int16_t *input, int16_t *dq, void vp9_dequantize_b_2x2_c(BLOCKD *d) { int i; int16_t *DQ = d->dqcoeff; - int16_t *Q = d->qcoeff; - int16_t *DQC = d->dequant; + const int16_t *Q = d->qcoeff; + const int16_t *DQC = d->dequant; for (i = 0; i < 16; i++) { DQ[i] = (int16_t)((Q[i] * DQC[i])); @@ -213,9 +214,9 @@ void vp9_dequantize_b_2x2_c(BLOCKD *d) { #endif } -void vp9_dequant_idct_add_8x8_c(int16_t *input, int16_t *dq, uint8_t *pred, - uint8_t *dest, int pitch, int stride, - int dc, uint16_t eobs) { +void vp9_dequant_idct_add_8x8_c(int16_t *input, const int16_t *dq, + uint8_t *pred, uint8_t *dest, int pitch, + int stride, int dc, uint16_t eobs) { int16_t output[64]; int16_t *diff_ptr = output; int i; @@ -327,8 +328,8 @@ void vp9_dequant_idct_add_8x8_c(int16_t *input, int16_t *dq, uint8_t *pred, } void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, int16_t *input, - int16_t *dq, uint8_t *pred, uint8_t *dest, - int pitch, int stride) { + const int16_t *dq, uint8_t *pred, + uint8_t *dest, int pitch, int stride) { int16_t output[256]; int16_t *diff_ptr = output; int i; @@ -350,9 +351,9 @@ void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, int16_t *input, add_residual(diff_ptr, pred, pitch, dest, stride, 16, 16); } -void vp9_dequant_idct_add_16x16_c(int16_t *input, int16_t *dq, uint8_t *pred, - uint8_t *dest, int pitch, int stride, - uint16_t eobs) { +void vp9_dequant_idct_add_16x16_c(int16_t *input, const int16_t *dq, + uint8_t *pred, uint8_t *dest, int pitch, + int stride, uint16_t eobs) { int16_t output[256]; int16_t *diff_ptr = output; int i; diff --git a/vp9/decoder/dequantize.h b/vp9/decoder/dequantize.h index 4d7ee427dd..4b90a4d703 100644 --- a/vp9/decoder/dequantize.h +++ b/vp9/decoder/dequantize.h @@ -14,26 +14,27 @@ #include "vp9/common/blockd.h" #if CONFIG_LOSSLESS -extern void vp9_dequant_idct_add_lossless_c(short *input, short *dq, +extern void vp9_dequant_idct_add_lossless_c(short *input, const short *dq, unsigned char *pred, unsigned char *output, int pitch, int stride); -extern void vp9_dequant_dc_idct_add_lossless_c(short *input, short *dq, +extern void vp9_dequant_dc_idct_add_lossless_c(short *input, const short *dq, unsigned char *pred, unsigned char *output, int pitch, int stride, int dc); -extern void vp9_dequant_dc_idct_add_y_block_lossless_c(short *q, short *dq, +extern void vp9_dequant_dc_idct_add_y_block_lossless_c(short *q, + const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, - short *dc); -extern void vp9_dequant_idct_add_y_block_lossless_c(short *q, short *dq, + const short *dc); +extern void vp9_dequant_idct_add_y_block_lossless_c(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs); -extern void vp9_dequant_idct_add_uv_block_lossless_c(short *q, short *dq, +extern void vp9_dequant_idct_add_uv_block_lossless_c(short *q, const short *dq, unsigned char *pre, unsigned char *dst_u, unsigned char *dst_v, @@ -41,53 +42,56 @@ extern void vp9_dequant_idct_add_uv_block_lossless_c(short *q, short *dq, unsigned short *eobs); #endif -typedef void (*vp9_dequant_idct_add_fn_t)(short *input, short *dq, +typedef void (*vp9_dequant_idct_add_fn_t)(short *input, const short *dq, unsigned char *pred, unsigned char *output, int pitch, int stride); -typedef void(*vp9_dequant_dc_idct_add_fn_t)(short *input, short *dq, +typedef void(*vp9_dequant_dc_idct_add_fn_t)(short *input, const short *dq, unsigned char *pred, unsigned char *output, int pitch, int stride, int dc); -typedef void(*vp9_dequant_dc_idct_add_y_block_fn_t)(short *q, short *dq, +typedef void(*vp9_dequant_dc_idct_add_y_block_fn_t)(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, - short *dc); -typedef void(*vp9_dequant_idct_add_y_block_fn_t)(short *q, short *dq, + const short *dc); +typedef void(*vp9_dequant_idct_add_y_block_fn_t)(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs); -typedef void(*vp9_dequant_idct_add_uv_block_fn_t)(short *q, short *dq, +typedef void(*vp9_dequant_idct_add_uv_block_fn_t)(short *q, const short *dq, unsigned char *pre, unsigned char *dst_u, unsigned char *dst_v, int stride, unsigned short *eobs); -void vp9_ht_dequant_idct_add_c(TX_TYPE tx_type, short *input, short *dq, +void vp9_ht_dequant_idct_add_c(TX_TYPE tx_type, short *input, const short *dq, unsigned char *pred, unsigned char *dest, int pitch, int stride); -void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, short *input, short *dq, - unsigned char *pred, unsigned char *dest, - int pitch, int stride); +void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, short *input, + const short *dq, unsigned char *pred, + unsigned char *dest, int pitch, int stride); -void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, short *input, short *dq, - unsigned char *pred, unsigned char *dest, +void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, short *input, + const short *dq, unsigned char *pred, + unsigned char *dest, int pitch, int stride); #if CONFIG_SUPERBLOCKS -void vp9_dequant_dc_idct_add_y_block_8x8_inplace_c(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_8x8_inplace_c(short *q, const short *dq, unsigned char *dst, int stride, unsigned short *eobs, - short *dc, MACROBLOCKD *xd); + const short *dc, + MACROBLOCKD *xd); -void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(short *q, const short *dq, unsigned char *dst, int stride, unsigned short *eobs, - short *dc, MACROBLOCKD *xd); + const short *dc, + MACROBLOCKD *xd); -void vp9_dequant_idct_add_uv_block_8x8_inplace_c(short *q, short *dq, +void vp9_dequant_idct_add_uv_block_8x8_inplace_c(short *q, const short *dq, unsigned char *dstu, unsigned char *dstv, int stride, unsigned short *eobs, MACROBLOCKD *xd); -void vp9_dequant_idct_add_uv_block_4x4_inplace_c(short *q, short *dq, +void vp9_dequant_idct_add_uv_block_4x4_inplace_c(short *q, const short *dq, unsigned char *dstu, unsigned char *dstv, int stride, diff --git a/vp9/decoder/idct_blk.c b/vp9/decoder/idct_blk.c index a0fcd6d612..998a211879 100644 --- a/vp9/decoder/idct_blk.c +++ b/vp9/decoder/idct_blk.c @@ -11,11 +11,11 @@ #include "vpx_rtcd.h" #include "vp9/common/idct.h" -void vp9_dequant_dc_idct_add_y_block_c(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_c(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, - short *dc) { + const short *dc) { int i, j; for (i = 0; i < 4; i++) { @@ -37,11 +37,12 @@ void vp9_dequant_dc_idct_add_y_block_c(short *q, short *dq, } #if CONFIG_SUPERBLOCKS -void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(short *q, const short *dq, unsigned char *dst, int stride, unsigned short *eobs, - short *dc, MACROBLOCKD *xd) { + const short *dc, + MACROBLOCKD *xd) { int i, j; for (i = 0; i < 4; i++) { @@ -61,7 +62,7 @@ void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(short *q, short *dq, } #endif -void vp9_dequant_idct_add_y_block_c(short *q, short *dq, +void vp9_dequant_idct_add_y_block_c(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs) { @@ -86,9 +87,10 @@ void vp9_dequant_idct_add_y_block_c(short *q, short *dq, } } -void vp9_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *pre, - unsigned char *dstu, unsigned char *dstv, - int stride, unsigned short *eobs) { +void vp9_dequant_idct_add_uv_block_c(short *q, const short *dq, + unsigned char *pre, unsigned char *dstu, + unsigned char *dstv, int stride, + unsigned short *eobs) { int i, j; for (i = 0; i < 2; i++) { @@ -129,7 +131,7 @@ void vp9_dequant_idct_add_uv_block_c(short *q, short *dq, unsigned char *pre, } #if CONFIG_SUPERBLOCKS -void vp9_dequant_idct_add_uv_block_4x4_inplace_c(short *q, short *dq, +void vp9_dequant_idct_add_uv_block_4x4_inplace_c(short *q, const short *dq, unsigned char *dstu, unsigned char *dstv, int stride, @@ -171,11 +173,11 @@ void vp9_dequant_idct_add_uv_block_4x4_inplace_c(short *q, short *dq, } #endif -void vp9_dequant_dc_idct_add_y_block_8x8_c(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_8x8_c(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, - short *dc, + const short *dc, MACROBLOCKD *xd) { q[0] = dc[0]; vp9_dequant_idct_add_8x8_c(q, dq, pre, dst, 16, stride, 1, xd->eobs[0]); @@ -195,11 +197,12 @@ void vp9_dequant_dc_idct_add_y_block_8x8_c(short *q, short *dq, } #if CONFIG_SUPERBLOCKS -void vp9_dequant_dc_idct_add_y_block_8x8_inplace_c(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_8x8_inplace_c(short *q, const short *dq, unsigned char *dst, int stride, unsigned short *eobs, - short *dc, MACROBLOCKD *xd) { + const short *dc, + MACROBLOCKD *xd) { q[0] = dc[0]; vp9_dequant_idct_add_8x8_c(q, dq, dst, dst, stride, stride, 1, xd->eobs[0]); @@ -219,7 +222,7 @@ void vp9_dequant_dc_idct_add_y_block_8x8_inplace_c(short *q, short *dq, } #endif -void vp9_dequant_idct_add_y_block_8x8_c(short *q, short *dq, +void vp9_dequant_idct_add_y_block_8x8_c(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, @@ -237,7 +240,7 @@ void vp9_dequant_idct_add_y_block_8x8_c(short *q, short *dq, xd->eobs[12]); } -void vp9_dequant_idct_add_uv_block_8x8_c(short *q, short *dq, +void vp9_dequant_idct_add_uv_block_8x8_c(short *q, const short *dq, unsigned char *pre, unsigned char *dstu, unsigned char *dstv, @@ -252,7 +255,7 @@ void vp9_dequant_idct_add_uv_block_8x8_c(short *q, short *dq, } #if CONFIG_SUPERBLOCKS -void vp9_dequant_idct_add_uv_block_8x8_inplace_c(short *q, short *dq, +void vp9_dequant_idct_add_uv_block_8x8_inplace_c(short *q, const short *dq, unsigned char *dstu, unsigned char *dstv, int stride, @@ -268,12 +271,12 @@ void vp9_dequant_idct_add_uv_block_8x8_inplace_c(short *q, short *dq, #endif #if CONFIG_LOSSLESS -void vp9_dequant_dc_idct_add_y_block_lossless_c(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_lossless_c(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, - short *dc) { + const short *dc) { int i, j; for (i = 0; i < 4; i++) { @@ -294,7 +297,7 @@ void vp9_dequant_dc_idct_add_y_block_lossless_c(short *q, short *dq, } } -void vp9_dequant_idct_add_y_block_lossless_c(short *q, short *dq, +void vp9_dequant_idct_add_y_block_lossless_c(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs) { @@ -319,7 +322,7 @@ void vp9_dequant_idct_add_y_block_lossless_c(short *q, short *dq, } } -void vp9_dequant_idct_add_uv_block_lossless_c(short *q, short *dq, +void vp9_dequant_idct_add_uv_block_lossless_c(short *q, const short *dq, unsigned char *pre, unsigned char *dstu, unsigned char *dstv, diff --git a/vp9/decoder/x86/idct_blk_mmx.c b/vp9/decoder/x86/idct_blk_mmx.c index 6e54731065..22f3e30405 100644 --- a/vp9/decoder/x86/idct_blk_mmx.c +++ b/vp9/decoder/x86/idct_blk_mmx.c @@ -12,11 +12,11 @@ #include "vp9/common/idct.h" #include "vp9/decoder/dequantize.h" -void vp9_dequant_dc_idct_add_y_block_mmx(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_mmx(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, - short *dc) { + const short *dc) { int i; for (i = 0; i < 4; i++) { @@ -51,7 +51,7 @@ void vp9_dequant_dc_idct_add_y_block_mmx(short *q, short *dq, } } -void vp9_dequant_idct_add_y_block_mmx(short *q, short *dq, +void vp9_dequant_idct_add_y_block_mmx(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs) { @@ -93,7 +93,7 @@ void vp9_dequant_idct_add_y_block_mmx(short *q, short *dq, } } -void vp9_dequant_idct_add_uv_block_mmx(short *q, short *dq, +void vp9_dequant_idct_add_uv_block_mmx(short *q, const short *dq, unsigned char *pre, unsigned char *dstu, unsigned char *dstv, diff --git a/vp9/decoder/x86/idct_blk_sse2.c b/vp9/decoder/x86/idct_blk_sse2.c index 5914c16bc7..93c2f3e3f5 100644 --- a/vp9/decoder/x86/idct_blk_sse2.c +++ b/vp9/decoder/x86/idct_blk_sse2.c @@ -12,27 +12,27 @@ #include "vp9/common/idct.h" #include "vp9/decoder/dequantize.h" -void vp9_idct_dequant_dc_0_2x_sse2(short *q, short *dq, +void vp9_idct_dequant_dc_0_2x_sse2(short *q, const short *dq, unsigned char *pre, unsigned char *dst, - int dst_stride, short *dc); + int dst_stride, const short *dc); -void vp9_idct_dequant_dc_full_2x_sse2(short *q, short *dq, +void vp9_idct_dequant_dc_full_2x_sse2(short *q, const short *dq, unsigned char *pre, unsigned char *dst, - int dst_stride, short *dc); + int dst_stride, const short *dc); -void vp9_idct_dequant_0_2x_sse2(short *q, short *dq, +void vp9_idct_dequant_0_2x_sse2(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int dst_stride, int blk_stride); -void vp9_idct_dequant_full_2x_sse2(short *q, short *dq, +void vp9_idct_dequant_full_2x_sse2(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int dst_stride, int blk_stride); -void vp9_dequant_dc_idct_add_y_block_sse2(short *q, short *dq, +void vp9_dequant_dc_idct_add_y_block_sse2(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, - short *dc) { + const short *dc) { int i; for (i = 0; i < 4; i++) { @@ -56,7 +56,7 @@ void vp9_dequant_dc_idct_add_y_block_sse2(short *q, short *dq, } } -void vp9_dequant_idct_add_y_block_sse2(short *q, short *dq, +void vp9_dequant_idct_add_y_block_sse2(short *q, const short *dq, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs) { int i; @@ -79,7 +79,7 @@ void vp9_dequant_idct_add_y_block_sse2(short *q, short *dq, } } -void vp9_dequant_idct_add_uv_block_sse2(short *q, short *dq, +void vp9_dequant_idct_add_uv_block_sse2(short *q, const short *dq, unsigned char *pre, unsigned char *dstu, unsigned char *dstv, -- GitLab