2 * Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license and patent
5 * grant that can be found in the LICENSE file in the root of the source
6 * tree. All contributing project authors may be found in the AUTHORS
7 * file in the root of the source tree.
11 #include "vpx_ports/config.h"
12 #include "dequantize.h"
13 #include "predictdc.h"
15 #include "vpx_mem/vpx_mem.h"
17 extern void vp8_short_idct4x4llm_c(short *input
, short *output
, int pitch
) ;
18 extern void vp8_short_idct4x4llm_1_c(short *input
, short *output
, int pitch
);
21 void vp8_dequantize_b_c(BLOCKD
*d
)
24 short *DQ
= d
->dqcoeff
;
26 short *DQC
= &d
->dequant
[0][0];
28 for (i
= 0; i
< 16; i
++)
30 DQ
[i
] = Q
[i
] * DQC
[i
];
34 void vp8_dequant_idct_c(short *input
, short *dq
, short *output
, int pitch
)
38 for (i
= 0; i
< 16; i
++)
40 input
[i
] = dq
[i
] * input
[i
];
43 vp8_short_idct4x4llm_c(input
, output
, pitch
);
44 vpx_memset(input
, 0, 32);
47 void vp8_dequant_dc_idct_c(short *input
, short *dq
, short *output
, int pitch
, int Dc
)
53 for (i
= 1; i
< 16; i
++)
55 input
[i
] = dq
[i
] * input
[i
];
58 vp8_short_idct4x4llm_c(input
, output
, pitch
);
59 vpx_memset(input
, 0, 32);