Remove some Y2-related code.
Change-Id: I4f46d142c2a8d1e8a880cfac63702dcbfb999b78
This commit is contained in:
@@ -564,22 +564,6 @@ void vp9_short_fdct8x8_c(short *InputData, short *OutputData, int pitch) {
|
||||
}
|
||||
#endif
|
||||
|
||||
void vp9_short_fhaar2x2_c(short *input, short *output, int pitch) {
|
||||
/* [1 1; 1 -1] orthogonal transform */
|
||||
/* use position: 0,1, 4, 8 */
|
||||
int i;
|
||||
short *ip1 = input;
|
||||
short *op1 = output;
|
||||
for (i = 0; i < 16; i++) {
|
||||
op1[i] = 0;
|
||||
}
|
||||
|
||||
op1[0] = (ip1[0] + ip1[1] + ip1[4] + ip1[8] + 1) >> 1;
|
||||
op1[1] = (ip1[0] - ip1[1] + ip1[4] - ip1[8]) >> 1;
|
||||
op1[4] = (ip1[0] + ip1[1] - ip1[4] - ip1[8]) >> 1;
|
||||
op1[8] = (ip1[0] - ip1[1] - ip1[4] + ip1[8]) >> 1;
|
||||
}
|
||||
|
||||
/* For test */
|
||||
#define TEST_INT 1
|
||||
#if TEST_INT
|
||||
@@ -912,87 +896,7 @@ void vp9_short_fdct8x8_c(int16_t *input, int16_t *output, int pitch) {
|
||||
}
|
||||
#endif
|
||||
|
||||
void vp9_short_walsh4x4_c(short *input, short *output, int pitch) {
|
||||
int i;
|
||||
int a1, b1, c1, d1;
|
||||
short *ip = input;
|
||||
short *op = output;
|
||||
int pitch_short = pitch >> 1;
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
a1 = ip[0 * pitch_short] + ip[3 * pitch_short];
|
||||
b1 = ip[1 * pitch_short] + ip[2 * pitch_short];
|
||||
c1 = ip[1 * pitch_short] - ip[2 * pitch_short];
|
||||
d1 = ip[0 * pitch_short] - ip[3 * pitch_short];
|
||||
|
||||
op[0] = (a1 + b1 + 1) >> 1;
|
||||
op[4] = (c1 + d1) >> 1;
|
||||
op[8] = (a1 - b1) >> 1;
|
||||
op[12] = (d1 - c1) >> 1;
|
||||
|
||||
ip++;
|
||||
op++;
|
||||
}
|
||||
ip = output;
|
||||
op = output;
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
a1 = ip[0] + ip[3];
|
||||
b1 = ip[1] + ip[2];
|
||||
c1 = ip[1] - ip[2];
|
||||
d1 = ip[0] - ip[3];
|
||||
|
||||
op[0] = (a1 + b1 + 1) >> 1;
|
||||
op[1] = (c1 + d1) >> 1;
|
||||
op[2] = (a1 - b1) >> 1;
|
||||
op[3] = (d1 - c1) >> 1;
|
||||
|
||||
ip += 4;
|
||||
op += 4;
|
||||
}
|
||||
}
|
||||
|
||||
#if CONFIG_LOSSLESS
|
||||
void vp9_short_walsh4x4_lossless_c(short *input, short *output, int pitch) {
|
||||
int i;
|
||||
int a1, b1, c1, d1;
|
||||
short *ip = input;
|
||||
short *op = output;
|
||||
int pitch_short = pitch >> 1;
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
a1 = (ip[0 * pitch_short] + ip[3 * pitch_short]) >> Y2_WHT_UPSCALE_FACTOR;
|
||||
b1 = (ip[1 * pitch_short] + ip[2 * pitch_short]) >> Y2_WHT_UPSCALE_FACTOR;
|
||||
c1 = (ip[1 * pitch_short] - ip[2 * pitch_short]) >> Y2_WHT_UPSCALE_FACTOR;
|
||||
d1 = (ip[0 * pitch_short] - ip[3 * pitch_short]) >> Y2_WHT_UPSCALE_FACTOR;
|
||||
|
||||
op[0] = (a1 + b1 + 1) >> 1;
|
||||
op[4] = (c1 + d1) >> 1;
|
||||
op[8] = (a1 - b1) >> 1;
|
||||
op[12] = (d1 - c1) >> 1;
|
||||
|
||||
ip++;
|
||||
op++;
|
||||
}
|
||||
ip = output;
|
||||
op = output;
|
||||
|
||||
for (i = 0; i < 4; i++) {
|
||||
a1 = ip[0] + ip[3];
|
||||
b1 = ip[1] + ip[2];
|
||||
c1 = ip[1] - ip[2];
|
||||
d1 = ip[0] - ip[3];
|
||||
|
||||
op[0] = ((a1 + b1 + 1) >> 1) << Y2_WHT_UPSCALE_FACTOR;
|
||||
op[1] = ((c1 + d1) >> 1) << Y2_WHT_UPSCALE_FACTOR;
|
||||
op[2] = ((a1 - b1) >> 1) << Y2_WHT_UPSCALE_FACTOR;
|
||||
op[3] = ((d1 - c1) >> 1) << Y2_WHT_UPSCALE_FACTOR;
|
||||
|
||||
ip += 4;
|
||||
op += 4;
|
||||
}
|
||||
}
|
||||
|
||||
void vp9_short_walsh4x4_x8_c(short *input, short *output, int pitch) {
|
||||
int i;
|
||||
int a1, b1, c1, d1;
|
||||
|
||||
Reference in New Issue
Block a user