michael@0: /* michael@0: * Copyright (c) 2010 The WebM project authors. All Rights Reserved. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license michael@0: * that can be found in the LICENSE file in the root of the source michael@0: * tree. An additional intellectual property rights grant can be found michael@0: * in the file PATENTS. All contributing project authors may michael@0: * be found in the AUTHORS file in the root of the source tree. michael@0: */ michael@0: michael@0: michael@0: #include "vpx_config.h" michael@0: #include "vp8_rtcd.h" michael@0: #include "vp8/common/blockd.h" michael@0: #include "vpx_mem/vpx_mem.h" michael@0: michael@0: void vp8_dequantize_b_c(BLOCKD *d, short *DQC) michael@0: { michael@0: int i; michael@0: short *DQ = d->dqcoeff; michael@0: short *Q = d->qcoeff; michael@0: michael@0: for (i = 0; i < 16; i++) michael@0: { michael@0: DQ[i] = Q[i] * DQC[i]; michael@0: } michael@0: } michael@0: michael@0: void vp8_dequant_idct_add_c(short *input, short *dq, michael@0: unsigned char *dest, int stride) michael@0: { michael@0: int i; michael@0: michael@0: for (i = 0; i < 16; i++) michael@0: { michael@0: input[i] = dq[i] * input[i]; michael@0: } michael@0: michael@0: vp8_short_idct4x4llm_c(input, dest, stride, dest, stride); michael@0: michael@0: vpx_memset(input, 0, 32); michael@0: michael@0: }