Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
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 }