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

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

Issue 181493009: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/common/vp9_onyxc_int.h ('k') | source/libvpx/vp9/common/vp9_prob.c » ('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) 2012 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 21 matching lines...) Expand all
32 static INLINE int vp9_get_pred_context_seg_id(const MACROBLOCKD *xd) { 32 static INLINE int vp9_get_pred_context_seg_id(const MACROBLOCKD *xd) {
33 const MODE_INFO *const above_mi = get_above_mi(xd); 33 const MODE_INFO *const above_mi = get_above_mi(xd);
34 const MODE_INFO *const left_mi = get_left_mi(xd); 34 const MODE_INFO *const left_mi = get_left_mi(xd);
35 const int above_sip = (above_mi != NULL) ? 35 const int above_sip = (above_mi != NULL) ?
36 above_mi->mbmi.seg_id_predicted : 0; 36 above_mi->mbmi.seg_id_predicted : 0;
37 const int left_sip = (left_mi != NULL) ? left_mi->mbmi.seg_id_predicted : 0; 37 const int left_sip = (left_mi != NULL) ? left_mi->mbmi.seg_id_predicted : 0;
38 38
39 return above_sip + left_sip; 39 return above_sip + left_sip;
40 } 40 }
41 41
42 static INLINE vp9_prob vp9_get_pred_prob_seg_id(struct segmentation *seg, 42 static INLINE vp9_prob vp9_get_pred_prob_seg_id(const struct segmentation *seg,
43 const MACROBLOCKD *xd) { 43 const MACROBLOCKD *xd) {
44 return seg->pred_probs[vp9_get_pred_context_seg_id(xd)]; 44 return seg->pred_probs[vp9_get_pred_context_seg_id(xd)];
45 } 45 }
46 46
47 static INLINE int vp9_get_skip_context(const MACROBLOCKD *xd) { 47 static INLINE int vp9_get_skip_context(const MACROBLOCKD *xd) {
48 const MODE_INFO *const above_mi = get_above_mi(xd); 48 const MODE_INFO *const above_mi = get_above_mi(xd);
49 const MODE_INFO *const left_mi = get_left_mi(xd); 49 const MODE_INFO *const left_mi = get_left_mi(xd);
50 const int above_skip = (above_mi != NULL) ? above_mi->mbmi.skip : 0; 50 const int above_skip = (above_mi != NULL) ? above_mi->mbmi.skip : 0;
51 const int left_skip = (left_mi != NULL) ? left_mi->mbmi.skip : 0; 51 const int left_skip = (left_mi != NULL) ? left_mi->mbmi.skip : 0;
52 return above_skip + left_skip; 52 return above_skip + left_skip;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 assert(0 && "Invalid max_tx_size."); 132 assert(0 && "Invalid max_tx_size.");
133 return NULL; 133 return NULL;
134 } 134 }
135 } 135 }
136 136
137 #ifdef __cplusplus 137 #ifdef __cplusplus
138 } // extern "C" 138 } // extern "C"
139 #endif 139 #endif
140 140
141 #endif // VP9_COMMON_VP9_PRED_COMMON_H_ 141 #endif // VP9_COMMON_VP9_PRED_COMMON_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_onyxc_int.h ('k') | source/libvpx/vp9/common/vp9_prob.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698