Merge "Add const before the dequant(dq)" into experimental

This commit is contained in:
Yunqing Wang 2012-11-16 12:35:17 -08:00 committed by Gerrit Code Review
commit 0eb5590425
6 changed files with 96 additions and 88 deletions

View File

@ -45,34 +45,34 @@ specialize vp9_dequantize_b mmx
prototype void vp9_dequantize_b_2x2 "struct blockd *x" prototype void vp9_dequantize_b_2x2 "struct blockd *x"
specialize vp9_dequantize_b_2x2 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 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 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 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 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 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 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 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 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 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 specialize vp9_dequant_idct_add_uv_block mmx
# #

View File

@ -67,8 +67,8 @@ void vp9_dequantize_b_c(BLOCKD *d) {
int i; int i;
int16_t *DQ = d->dqcoeff; int16_t *DQ = d->dqcoeff;
int16_t *Q = d->qcoeff; const int16_t *Q = d->qcoeff;
int16_t *DQC = d->dequant; const int16_t *DQC = d->dequant;
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {
DQ[i] = Q[i] * DQC[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, uint8_t *pred, uint8_t *dest,
int pitch, int stride) { int pitch, int stride) {
int16_t output[16]; 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); 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, uint8_t *pred, uint8_t *dest,
int pitch, int stride) { int pitch, int stride) {
int16_t output[64]; 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); 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) { uint8_t *dest, int pitch, int stride) {
int16_t output[16]; int16_t output[16];
int16_t *diff_ptr = output; 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); 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, void vp9_dequant_dc_idct_add_c(int16_t *input, const int16_t *dq, uint8_t *pred,
uint8_t *dest, int pitch, int stride, uint8_t *dest, int pitch, int stride, int Dc) {
int Dc) {
int i; int i;
int16_t output[16]; int16_t output[16];
int16_t *diff_ptr = output; 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 #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, uint8_t *pred, uint8_t *dest,
int pitch, int stride) { int pitch, int stride) {
int16_t output[16]; 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); 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 *pred,
uint8_t *dest, uint8_t *dest,
int pitch, int stride, int dc) { 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) { void vp9_dequantize_b_2x2_c(BLOCKD *d) {
int i; int i;
int16_t *DQ = d->dqcoeff; int16_t *DQ = d->dqcoeff;
int16_t *Q = d->qcoeff; const int16_t *Q = d->qcoeff;
int16_t *DQC = d->dequant; const int16_t *DQC = d->dequant;
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {
DQ[i] = (int16_t)((Q[i] * DQC[i])); DQ[i] = (int16_t)((Q[i] * DQC[i]));
@ -213,9 +214,9 @@ void vp9_dequantize_b_2x2_c(BLOCKD *d) {
#endif #endif
} }
void vp9_dequant_idct_add_8x8_c(int16_t *input, int16_t *dq, uint8_t *pred, void vp9_dequant_idct_add_8x8_c(int16_t *input, const int16_t *dq,
uint8_t *dest, int pitch, int stride, uint8_t *pred, uint8_t *dest, int pitch,
int dc, uint16_t eobs) { int stride, int dc, uint16_t eobs) {
int16_t output[64]; int16_t output[64];
int16_t *diff_ptr = output; int16_t *diff_ptr = output;
int i; 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, void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, int16_t *input,
int16_t *dq, uint8_t *pred, uint8_t *dest, const int16_t *dq, uint8_t *pred,
int pitch, int stride) { uint8_t *dest, int pitch, int stride) {
int16_t output[256]; int16_t output[256];
int16_t *diff_ptr = output; int16_t *diff_ptr = output;
int i; 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); 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, void vp9_dequant_idct_add_16x16_c(int16_t *input, const int16_t *dq,
uint8_t *dest, int pitch, int stride, uint8_t *pred, uint8_t *dest, int pitch,
uint16_t eobs) { int stride, uint16_t eobs) {
int16_t output[256]; int16_t output[256];
int16_t *diff_ptr = output; int16_t *diff_ptr = output;
int i; int i;

View File

@ -14,26 +14,27 @@
#include "vp9/common/blockd.h" #include "vp9/common/blockd.h"
#if CONFIG_LOSSLESS #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 *pred,
unsigned char *output, unsigned char *output,
int pitch, int stride); 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 *pred,
unsigned char *output, unsigned char *output,
int pitch, int stride, int dc); 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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, int stride,
unsigned short *eobs, unsigned short *eobs,
short *dc); const short *dc);
extern void vp9_dequant_idct_add_y_block_lossless_c(short *q, short *dq, extern void vp9_dequant_idct_add_y_block_lossless_c(short *q, const short *dq,
unsigned char *pre, unsigned char *pre,
unsigned char *dst, unsigned char *dst,
int stride, int stride,
unsigned short *eobs); 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 *pre,
unsigned char *dst_u, unsigned char *dst_u,
unsigned char *dst_v, 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); unsigned short *eobs);
#endif #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); 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); 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, unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs,
short *dc); const short *dc);
typedef void(*vp9_dequant_idct_add_y_block_fn_t)(short *q, short *dq, 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); 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 char *pre, unsigned char *dst_u, unsigned char *dst_v, int stride,
unsigned short *eobs); 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, unsigned char *pred, unsigned char *dest,
int pitch, int stride); int pitch, int stride);
void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, short *input, short *dq, void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, short *input,
unsigned char *pred, unsigned char *dest, const short *dq, unsigned char *pred,
int pitch, int stride); unsigned char *dest, int pitch, int stride);
void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, short *input, short *dq, void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, short *input,
unsigned char *pred, unsigned char *dest, const short *dq, unsigned char *pred,
unsigned char *dest,
int pitch, int stride); int pitch, int stride);
#if CONFIG_SUPERBLOCKS #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, unsigned char *dst,
int stride, int stride,
unsigned short *eobs, 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, unsigned char *dst,
int stride, int stride,
unsigned short *eobs, 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 *dstu,
unsigned char *dstv, unsigned char *dstv,
int stride, int stride,
unsigned short *eobs, unsigned short *eobs,
MACROBLOCKD *xd); 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 *dstu,
unsigned char *dstv, unsigned char *dstv,
int stride, int stride,

View File

@ -11,11 +11,11 @@
#include "vp9_rtcd.h" #include "vp9_rtcd.h"
#include "vp9/common/idct.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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, unsigned short *eobs, int stride, unsigned short *eobs,
short *dc) { const short *dc) {
int i, j; int i, j;
for (i = 0; i < 4; i++) { 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 #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, unsigned char *dst,
int stride, int stride,
unsigned short *eobs, unsigned short *eobs,
short *dc, MACROBLOCKD *xd) { const short *dc,
MACROBLOCKD *xd) {
int i, j; int i, j;
for (i = 0; i < 4; i++) { 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 #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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, unsigned short *eobs) { 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, void vp9_dequant_idct_add_uv_block_c(short *q, const short *dq,
unsigned char *dstu, unsigned char *dstv, unsigned char *pre, unsigned char *dstu,
int stride, unsigned short *eobs) { unsigned char *dstv, int stride,
unsigned short *eobs) {
int i, j; int i, j;
for (i = 0; i < 2; i++) { 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 #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 *dstu,
unsigned char *dstv, unsigned char *dstv,
int stride, int stride,
@ -171,11 +173,11 @@ void vp9_dequant_idct_add_uv_block_4x4_inplace_c(short *q, short *dq,
} }
#endif #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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, unsigned short *eobs, int stride, unsigned short *eobs,
short *dc, const short *dc,
MACROBLOCKD *xd) { MACROBLOCKD *xd) {
q[0] = dc[0]; q[0] = dc[0];
vp9_dequant_idct_add_8x8_c(q, dq, pre, dst, 16, stride, 1, xd->eobs[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 #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, unsigned char *dst,
int stride, int stride,
unsigned short *eobs, unsigned short *eobs,
short *dc, MACROBLOCKD *xd) { const short *dc,
MACROBLOCKD *xd) {
q[0] = dc[0]; q[0] = dc[0];
vp9_dequant_idct_add_8x8_c(q, dq, dst, dst, stride, stride, 1, xd->eobs[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 #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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, unsigned short *eobs, 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]); 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 *pre,
unsigned char *dstu, unsigned char *dstu,
unsigned char *dstv, unsigned char *dstv,
@ -252,7 +255,7 @@ void vp9_dequant_idct_add_uv_block_8x8_c(short *q, short *dq,
} }
#if CONFIG_SUPERBLOCKS #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 *dstu,
unsigned char *dstv, unsigned char *dstv,
int stride, int stride,
@ -268,12 +271,12 @@ void vp9_dequant_idct_add_uv_block_8x8_inplace_c(short *q, short *dq,
#endif #endif
#if CONFIG_LOSSLESS #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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, int stride,
unsigned short *eobs, unsigned short *eobs,
short *dc) { const short *dc) {
int i, j; int i, j;
for (i = 0; i < 4; i++) { 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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, unsigned short *eobs) { 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 *pre,
unsigned char *dstu, unsigned char *dstu,
unsigned char *dstv, unsigned char *dstv,

View File

@ -12,11 +12,11 @@
#include "vp9/common/idct.h" #include "vp9/common/idct.h"
#include "vp9/decoder/dequantize.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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, unsigned short *eobs, int stride, unsigned short *eobs,
short *dc) { const short *dc) {
int i; int i;
for (i = 0; i < 4; 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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, unsigned short *eobs) { 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 *pre,
unsigned char *dstu, unsigned char *dstu,
unsigned char *dstv, unsigned char *dstv,

View File

@ -12,27 +12,27 @@
#include "vp9/common/idct.h" #include "vp9/common/idct.h"
#include "vp9/decoder/dequantize.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, 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, 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, unsigned char *pre, unsigned char *dst,
int dst_stride, int blk_stride); 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, unsigned char *pre, unsigned char *dst,
int dst_stride, int blk_stride); 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 *pre,
unsigned char *dst, unsigned char *dst,
int stride, unsigned short *eobs, int stride, unsigned short *eobs,
short *dc) { const short *dc) {
int i; int i;
for (i = 0; i < 4; 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, unsigned char *pre, unsigned char *dst,
int stride, unsigned short *eobs) { int stride, unsigned short *eobs) {
int i; 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 *pre,
unsigned char *dstu, unsigned char *dstu,
unsigned char *dstv, unsigned char *dstv,