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

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

Issue 1302353004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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_alloccommon.c ('k') | source/libvpx/vp9/common/vp9_common.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
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 228 }
229 229
230 void vp9_setup_block_planes(MACROBLOCKD *xd, int ss_x, int ss_y); 230 void vp9_setup_block_planes(MACROBLOCKD *xd, int ss_x, int ss_y);
231 231
232 static INLINE TX_SIZE get_uv_tx_size_impl(TX_SIZE y_tx_size, BLOCK_SIZE bsize, 232 static INLINE TX_SIZE get_uv_tx_size_impl(TX_SIZE y_tx_size, BLOCK_SIZE bsize,
233 int xss, int yss) { 233 int xss, int yss) {
234 if (bsize < BLOCK_8X8) { 234 if (bsize < BLOCK_8X8) {
235 return TX_4X4; 235 return TX_4X4;
236 } else { 236 } else {
237 const BLOCK_SIZE plane_bsize = ss_size_lookup[bsize][xss][yss]; 237 const BLOCK_SIZE plane_bsize = ss_size_lookup[bsize][xss][yss];
238 return MIN(y_tx_size, max_txsize_lookup[plane_bsize]); 238 return VPXMIN(y_tx_size, max_txsize_lookup[plane_bsize]);
239 } 239 }
240 } 240 }
241 241
242 static INLINE TX_SIZE get_uv_tx_size(const MB_MODE_INFO *mbmi, 242 static INLINE TX_SIZE get_uv_tx_size(const MB_MODE_INFO *mbmi,
243 const struct macroblockd_plane *pd) { 243 const struct macroblockd_plane *pd) {
244 return get_uv_tx_size_impl(mbmi->tx_size, mbmi->sb_type, pd->subsampling_x, 244 return get_uv_tx_size_impl(mbmi->tx_size, mbmi->sb_type, pd->subsampling_x,
245 pd->subsampling_y); 245 pd->subsampling_y);
246 } 246 }
247 247
248 static INLINE BLOCK_SIZE get_plane_block_size(BLOCK_SIZE bsize, 248 static INLINE BLOCK_SIZE get_plane_block_size(BLOCK_SIZE bsize,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 void vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd, 299 void vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd,
300 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, 300 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob,
301 int aoff, int loff); 301 int aoff, int loff);
302 302
303 #ifdef __cplusplus 303 #ifdef __cplusplus
304 } // extern "C" 304 } // extern "C"
305 #endif 305 #endif
306 306
307 #endif // VP9_COMMON_VP9_BLOCKD_H_ 307 #endif // VP9_COMMON_VP9_BLOCKD_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_alloccommon.c ('k') | source/libvpx/vp9/common/vp9_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698