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 __INC_ENTROPYMODE_H |
michael@0 | 13 | #define __INC_ENTROPYMODE_H |
michael@0 | 14 | |
michael@0 | 15 | #include "onyxc_int.h" |
michael@0 | 16 | #include "treecoder.h" |
michael@0 | 17 | |
michael@0 | 18 | typedef enum |
michael@0 | 19 | { |
michael@0 | 20 | SUBMVREF_NORMAL, |
michael@0 | 21 | SUBMVREF_LEFT_ZED, |
michael@0 | 22 | SUBMVREF_ABOVE_ZED, |
michael@0 | 23 | SUBMVREF_LEFT_ABOVE_SAME, |
michael@0 | 24 | SUBMVREF_LEFT_ABOVE_ZED |
michael@0 | 25 | } sumvfref_t; |
michael@0 | 26 | |
michael@0 | 27 | typedef int vp8_mbsplit[16]; |
michael@0 | 28 | |
michael@0 | 29 | #define VP8_NUMMBSPLITS 4 |
michael@0 | 30 | |
michael@0 | 31 | extern const vp8_mbsplit vp8_mbsplits [VP8_NUMMBSPLITS]; |
michael@0 | 32 | |
michael@0 | 33 | extern const int vp8_mbsplit_count [VP8_NUMMBSPLITS]; /* # of subsets */ |
michael@0 | 34 | |
michael@0 | 35 | extern const vp8_prob vp8_mbsplit_probs [VP8_NUMMBSPLITS-1]; |
michael@0 | 36 | |
michael@0 | 37 | extern int vp8_mv_cont(const int_mv *l, const int_mv *a); |
michael@0 | 38 | #define SUBMVREF_COUNT 5 |
michael@0 | 39 | extern const vp8_prob vp8_sub_mv_ref_prob2 [SUBMVREF_COUNT][VP8_SUBMVREFS-1]; |
michael@0 | 40 | |
michael@0 | 41 | |
michael@0 | 42 | extern const unsigned int vp8_kf_default_bmode_counts [VP8_BINTRAMODES] [VP8_BINTRAMODES] [VP8_BINTRAMODES]; |
michael@0 | 43 | |
michael@0 | 44 | |
michael@0 | 45 | extern const vp8_tree_index vp8_bmode_tree[]; |
michael@0 | 46 | |
michael@0 | 47 | extern const vp8_tree_index vp8_ymode_tree[]; |
michael@0 | 48 | extern const vp8_tree_index vp8_kf_ymode_tree[]; |
michael@0 | 49 | extern const vp8_tree_index vp8_uv_mode_tree[]; |
michael@0 | 50 | |
michael@0 | 51 | extern const vp8_tree_index vp8_mbsplit_tree[]; |
michael@0 | 52 | extern const vp8_tree_index vp8_mv_ref_tree[]; |
michael@0 | 53 | extern const vp8_tree_index vp8_sub_mv_ref_tree[]; |
michael@0 | 54 | |
michael@0 | 55 | extern const struct vp8_token_struct vp8_bmode_encodings[VP8_BINTRAMODES]; |
michael@0 | 56 | extern const struct vp8_token_struct vp8_ymode_encodings[VP8_YMODES]; |
michael@0 | 57 | extern const struct vp8_token_struct vp8_kf_ymode_encodings[VP8_YMODES]; |
michael@0 | 58 | extern const struct vp8_token_struct vp8_uv_mode_encodings[VP8_UV_MODES]; |
michael@0 | 59 | extern const struct vp8_token_struct vp8_mbsplit_encodings[VP8_NUMMBSPLITS]; |
michael@0 | 60 | |
michael@0 | 61 | /* Inter mode values do not start at zero */ |
michael@0 | 62 | |
michael@0 | 63 | extern const struct vp8_token_struct vp8_mv_ref_encoding_array[VP8_MVREFS]; |
michael@0 | 64 | extern const struct vp8_token_struct vp8_sub_mv_ref_encoding_array[VP8_SUBMVREFS]; |
michael@0 | 65 | |
michael@0 | 66 | extern const vp8_tree_index vp8_small_mvtree[]; |
michael@0 | 67 | |
michael@0 | 68 | extern const struct vp8_token_struct vp8_small_mvencodings[8]; |
michael@0 | 69 | |
michael@0 | 70 | /* Key frame default mode probs */ |
michael@0 | 71 | extern const vp8_prob vp8_kf_bmode_prob[VP8_BINTRAMODES][VP8_BINTRAMODES] |
michael@0 | 72 | [VP8_BINTRAMODES-1]; |
michael@0 | 73 | extern const vp8_prob vp8_kf_uv_mode_prob[VP8_UV_MODES-1]; |
michael@0 | 74 | extern const vp8_prob vp8_kf_ymode_prob[VP8_YMODES-1]; |
michael@0 | 75 | |
michael@0 | 76 | void vp8_init_mbmode_probs(VP8_COMMON *x); |
michael@0 | 77 | void vp8_default_bmode_probs(vp8_prob dest [VP8_BINTRAMODES-1]); |
michael@0 | 78 | void vp8_kf_default_bmode_probs(vp8_prob dest [VP8_BINTRAMODES] [VP8_BINTRAMODES] [VP8_BINTRAMODES-1]); |
michael@0 | 79 | |
michael@0 | 80 | #endif |