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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_encoder.h

Issue 415333002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 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/encoder/vp9_encodeframe.c ('k') | source/libvpx/vp9/encoder/vp9_encoder.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) 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 502
503 // Intra only frames, golden frames (except alt ref overlays) and 503 // Intra only frames, golden frames (except alt ref overlays) and
504 // alt ref frames tend to be coded at a higher than ambient quality 504 // alt ref frames tend to be coded at a higher than ambient quality
505 static INLINE int frame_is_boosted(const VP9_COMP *cpi) { 505 static INLINE int frame_is_boosted(const VP9_COMP *cpi) {
506 return frame_is_intra_only(&cpi->common) || cpi->refresh_alt_ref_frame || 506 return frame_is_intra_only(&cpi->common) || cpi->refresh_alt_ref_frame ||
507 (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref) || 507 (cpi->refresh_golden_frame && !cpi->rc.is_src_frame_alt_ref) ||
508 vp9_is_upper_layer_key_frame(cpi); 508 vp9_is_upper_layer_key_frame(cpi);
509 } 509 }
510 510
511 static INLINE int get_token_alloc(int mb_rows, int mb_cols) { 511 static INLINE int get_token_alloc(int mb_rows, int mb_cols) {
512 // TODO(JBB): make this work for alpha channel and double check we can't 512 // TODO(JBB): double check we can't exceed this token count if we have a
513 // exceed this token count if we have a 32x32 transform crossing a boundary 513 // 32x32 transform crossing a boundary at a multiple of 16.
514 // at a multiple of 16.
515 // mb_rows, cols are in units of 16 pixels. We assume 3 planes all at full 514 // mb_rows, cols are in units of 16 pixels. We assume 3 planes all at full
516 // resolution. We assume up to 1 token per pixel, and then allow 515 // resolution. We assume up to 1 token per pixel, and then allow
517 // a head room of 4. 516 // a head room of 4.
518 return mb_rows * mb_cols * (16 * 16 * 3 + 4); 517 return mb_rows * mb_cols * (16 * 16 * 3 + 4);
519 } 518 }
520 519
521 int vp9_get_y_sse(const YV12_BUFFER_CONFIG *a, const YV12_BUFFER_CONFIG *b); 520 int vp9_get_y_sse(const YV12_BUFFER_CONFIG *a, const YV12_BUFFER_CONFIG *b);
522 521
523 void vp9_alloc_compressor_data(VP9_COMP *cpi); 522 void vp9_alloc_compressor_data(VP9_COMP *cpi);
524 523
(...skipping 29 matching lines...) Expand all
554 553
555 static INLINE int get_chessboard_index(const VP9_COMMON *cm) { 554 static INLINE int get_chessboard_index(const VP9_COMMON *cm) {
556 return cm->current_video_frame % 2; 555 return cm->current_video_frame % 2;
557 } 556 }
558 557
559 #ifdef __cplusplus 558 #ifdef __cplusplus
560 } // extern "C" 559 } // extern "C"
561 #endif 560 #endif
562 561
563 #endif // VP9_ENCODER_VP9_ENCODER_H_ 562 #endif // VP9_ENCODER_VP9_ENCODER_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_encodeframe.c ('k') | source/libvpx/vp9/encoder/vp9_encoder.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698