1/*
2 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 *
4 *  Use of this source code is governed by a BSD-style license
5 *  that can be found in the LICENSE file in the root of the source
6 *  tree. An additional intellectual property rights grant can be found
7 *  in the file PATENTS.  All contributing project authors may
8 *  be found in the AUTHORS file in the root of the source tree.
9 */
10
11
12#include "vpx_config.h"
13#include "vp8_rtcd.h"
14#include "vp8/common/blockd.h"
15#include "vpx_mem/vpx_mem.h"
16
17void vp8_dequantize_b_c(BLOCKD *d, short *DQC)
18{
19    int i;
20    short *DQ  = d->dqcoeff;
21    short *Q   = d->qcoeff;
22
23    for (i = 0; i < 16; i++)
24    {
25        DQ[i] = Q[i] * DQC[i];
26    }
27}
28
29void vp8_dequant_idct_add_c(short *input, short *dq,
30                            unsigned char *dest, int stride)
31{
32    int i;
33
34    for (i = 0; i < 16; i++)
35    {
36        input[i] = dq[i] * input[i];
37    }
38
39    vp8_short_idct4x4llm_c(input, dest, stride, dest, stride);
40
41    vpx_memset(input, 0, 32);
42
43}
44