media/libvpx/vp8/common/dequantize.c

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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  */
    12 #include "vpx_config.h"
    13 #include "vp8_rtcd.h"
    14 #include "vp8/common/blockd.h"
    15 #include "vpx_mem/vpx_mem.h"
    17 void vp8_dequantize_b_c(BLOCKD *d, short *DQC)
    18 {
    19     int i;
    20     short *DQ  = d->dqcoeff;
    21     short *Q   = d->qcoeff;
    23     for (i = 0; i < 16; i++)
    24     {
    25         DQ[i] = Q[i] * DQC[i];
    26     }
    27 }
    29 void vp8_dequant_idct_add_c(short *input, short *dq,
    30                             unsigned char *dest, int stride)
    31 {
    32     int i;
    34     for (i = 0; i < 16; i++)
    35     {
    36         input[i] = dq[i] * input[i];
    37     }
    39     vp8_short_idct4x4llm_c(input, dest, stride, dest, stride);
    41     vpx_memset(input, 0, 32);
    43 }

mercurial