media/libvpx/vp8/common/dequantize.c

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/media/libvpx/vp8/common/dequantize.c	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/*
     1.5 + *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
     1.6 + *
     1.7 + *  Use of this source code is governed by a BSD-style license
     1.8 + *  that can be found in the LICENSE file in the root of the source
     1.9 + *  tree. An additional intellectual property rights grant can be found
    1.10 + *  in the file PATENTS.  All contributing project authors may
    1.11 + *  be found in the AUTHORS file in the root of the source tree.
    1.12 + */
    1.13 +
    1.14 +
    1.15 +#include "vpx_config.h"
    1.16 +#include "vp8_rtcd.h"
    1.17 +#include "vp8/common/blockd.h"
    1.18 +#include "vpx_mem/vpx_mem.h"
    1.19 +
    1.20 +void vp8_dequantize_b_c(BLOCKD *d, short *DQC)
    1.21 +{
    1.22 +    int i;
    1.23 +    short *DQ  = d->dqcoeff;
    1.24 +    short *Q   = d->qcoeff;
    1.25 +
    1.26 +    for (i = 0; i < 16; i++)
    1.27 +    {
    1.28 +        DQ[i] = Q[i] * DQC[i];
    1.29 +    }
    1.30 +}
    1.31 +
    1.32 +void vp8_dequant_idct_add_c(short *input, short *dq,
    1.33 +                            unsigned char *dest, int stride)
    1.34 +{
    1.35 +    int i;
    1.36 +
    1.37 +    for (i = 0; i < 16; i++)
    1.38 +    {
    1.39 +        input[i] = dq[i] * input[i];
    1.40 +    }
    1.41 +
    1.42 +    vp8_short_idct4x4llm_c(input, dest, stride, dest, stride);
    1.43 +
    1.44 +    vpx_memset(input, 0, 32);
    1.45 +
    1.46 +}

mercurial