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.
michael@0 | 1 | /* |
michael@0 | 2 | * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
michael@0 | 3 | * |
michael@0 | 4 | * Use of this source code is governed by a BSD-style license |
michael@0 | 5 | * that can be found in the LICENSE file in the root of the source |
michael@0 | 6 | * tree. An additional intellectual property rights grant can be found |
michael@0 | 7 | * in the file PATENTS. All contributing project authors may |
michael@0 | 8 | * be found in the AUTHORS file in the root of the source tree. |
michael@0 | 9 | */ |
michael@0 | 10 | |
michael@0 | 11 | |
michael@0 | 12 | #ifndef POSTPROC_H |
michael@0 | 13 | #define POSTPROC_H |
michael@0 | 14 | |
michael@0 | 15 | #include "vpx_ports/mem.h" |
michael@0 | 16 | struct postproc_state |
michael@0 | 17 | { |
michael@0 | 18 | int last_q; |
michael@0 | 19 | int last_noise; |
michael@0 | 20 | char noise[3072]; |
michael@0 | 21 | int last_base_qindex; |
michael@0 | 22 | int last_frame_valid; |
michael@0 | 23 | DECLARE_ALIGNED(16, char, blackclamp[16]); |
michael@0 | 24 | DECLARE_ALIGNED(16, char, whiteclamp[16]); |
michael@0 | 25 | DECLARE_ALIGNED(16, char, bothclamp[16]); |
michael@0 | 26 | }; |
michael@0 | 27 | #include "onyxc_int.h" |
michael@0 | 28 | #include "ppflags.h" |
michael@0 | 29 | int vp8_post_proc_frame(struct VP8Common *oci, YV12_BUFFER_CONFIG *dest, |
michael@0 | 30 | vp8_ppflags_t *flags); |
michael@0 | 31 | |
michael@0 | 32 | |
michael@0 | 33 | void vp8_de_noise(struct VP8Common *oci, |
michael@0 | 34 | YV12_BUFFER_CONFIG *source, |
michael@0 | 35 | YV12_BUFFER_CONFIG *post, |
michael@0 | 36 | int q, |
michael@0 | 37 | int low_var_thresh, |
michael@0 | 38 | int flag); |
michael@0 | 39 | |
michael@0 | 40 | void vp8_deblock(struct VP8Common *oci, |
michael@0 | 41 | YV12_BUFFER_CONFIG *source, |
michael@0 | 42 | YV12_BUFFER_CONFIG *post, |
michael@0 | 43 | int q, |
michael@0 | 44 | int low_var_thresh, |
michael@0 | 45 | int flag); |
michael@0 | 46 | |
michael@0 | 47 | #define MFQE_PRECISION 4 |
michael@0 | 48 | |
michael@0 | 49 | void vp8_multiframe_quality_enhance(struct VP8Common *cm); |
michael@0 | 50 | #endif |