Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: source/libvpx/vp9/common/vp9_entropymode.h

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/vp9/common/vp9_entropy.h ('k') | source/libvpx/vp9/common/vp9_enums.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef VP9_COMMON_VP9_ENTROPYMODE_H_ 11 #ifndef VP9_COMMON_VP9_ENTROPYMODE_H_
12 #define VP9_COMMON_VP9_ENTROPYMODE_H_ 12 #define VP9_COMMON_VP9_ENTROPYMODE_H_
13 13
14 #include "vp9/common/vp9_blockd.h" 14 #include "vp9/common/vp9_filter.h"
15 #include "vp9/common/vp9_entropy.h" 15 #include "vp9/common/vp9_entropy.h"
16 #include "vp9/common/vp9_entropymv.h" 16 #include "vp9/common/vp9_entropymv.h"
17 17
18 #ifdef __cplusplus 18 #ifdef __cplusplus
19 extern "C" { 19 extern "C" {
20 #endif 20 #endif
21 21
22 #define BLOCK_SIZE_GROUPS 4
23
22 #define TX_SIZE_CONTEXTS 2 24 #define TX_SIZE_CONTEXTS 2
23 25
26 #define INTER_OFFSET(mode) ((mode) - NEARESTMV)
27
24 struct VP9Common; 28 struct VP9Common;
25 29
26 struct tx_probs { 30 struct tx_probs {
27 vp9_prob p32x32[TX_SIZE_CONTEXTS][TX_SIZES - 1]; 31 vp9_prob p32x32[TX_SIZE_CONTEXTS][TX_SIZES - 1];
28 vp9_prob p16x16[TX_SIZE_CONTEXTS][TX_SIZES - 2]; 32 vp9_prob p16x16[TX_SIZE_CONTEXTS][TX_SIZES - 2];
29 vp9_prob p8x8[TX_SIZE_CONTEXTS][TX_SIZES - 3]; 33 vp9_prob p8x8[TX_SIZE_CONTEXTS][TX_SIZES - 3];
30 }; 34 };
31 35
32 struct tx_counts { 36 struct tx_counts {
33 unsigned int p32x32[TX_SIZE_CONTEXTS][TX_SIZES]; 37 unsigned int p32x32[TX_SIZE_CONTEXTS][TX_SIZES];
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 94
91 void vp9_adapt_mode_probs(struct VP9Common *cm); 95 void vp9_adapt_mode_probs(struct VP9Common *cm);
92 96
93 void tx_counts_to_branch_counts_32x32(const unsigned int *tx_count_32x32p, 97 void tx_counts_to_branch_counts_32x32(const unsigned int *tx_count_32x32p,
94 unsigned int (*ct_32x32p)[2]); 98 unsigned int (*ct_32x32p)[2]);
95 void tx_counts_to_branch_counts_16x16(const unsigned int *tx_count_16x16p, 99 void tx_counts_to_branch_counts_16x16(const unsigned int *tx_count_16x16p,
96 unsigned int (*ct_16x16p)[2]); 100 unsigned int (*ct_16x16p)[2]);
97 void tx_counts_to_branch_counts_8x8(const unsigned int *tx_count_8x8p, 101 void tx_counts_to_branch_counts_8x8(const unsigned int *tx_count_8x8p,
98 unsigned int (*ct_8x8p)[2]); 102 unsigned int (*ct_8x8p)[2]);
99 103
100 static INLINE const vp9_prob *get_y_mode_probs(const MODE_INFO *mi,
101 const MODE_INFO *above_mi,
102 const MODE_INFO *left_mi,
103 int block) {
104 const PREDICTION_MODE above = vp9_above_block_mode(mi, above_mi, block);
105 const PREDICTION_MODE left = vp9_left_block_mode(mi, left_mi, block);
106 return vp9_kf_y_mode_prob[above][left];
107 }
108
109 #ifdef __cplusplus 104 #ifdef __cplusplus
110 } // extern "C" 105 } // extern "C"
111 #endif 106 #endif
112 107
113 #endif // VP9_COMMON_VP9_ENTROPYMODE_H_ 108 #endif // VP9_COMMON_VP9_ENTROPYMODE_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_entropy.h ('k') | source/libvpx/vp9/common/vp9_enums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698