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

Side by Side Diff: source/libvpx/vp8/encoder/rdopt.c

Issue 12982023: libvpx: Pull from upstream (Closed) Base URL: https://src.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 8 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/vp8/decoder/decodframe.c ('k') | source/libvpx/vpx/vp8dx.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 2494 matching lines...) Expand 10 before | Expand all | Expand 10 after
2505 x->rd_thresh_mult[best_mode_index] = 2505 x->rd_thresh_mult[best_mode_index] =
2506 (x->rd_thresh_mult[best_mode_index] >= 2506 (x->rd_thresh_mult[best_mode_index] >=
2507 (MIN_THRESHMULT + best_adjustment)) ? 2507 (MIN_THRESHMULT + best_adjustment)) ?
2508 x->rd_thresh_mult[best_mode_index] - best_adjustment : 2508 x->rd_thresh_mult[best_mode_index] - best_adjustment :
2509 MIN_THRESHMULT; 2509 MIN_THRESHMULT;
2510 x->rd_threshes[best_mode_index] = 2510 x->rd_threshes[best_mode_index] =
2511 (cpi->rd_baseline_thresh[best_mode_index] >> 7) * 2511 (cpi->rd_baseline_thresh[best_mode_index] >> 7) *
2512 x->rd_thresh_mult[best_mode_index]; 2512 x->rd_thresh_mult[best_mode_index];
2513 } 2513 }
2514 2514
2515 /* Note how often each mode chosen as best */
2516 cpi->mode_chosen_counts[best_mode_index] ++;
2517
2518 #if CONFIG_TEMPORAL_DENOISING 2515 #if CONFIG_TEMPORAL_DENOISING
2519 if (cpi->oxcf.noise_sensitivity) 2516 if (cpi->oxcf.noise_sensitivity)
2520 { 2517 {
2521 if (x->best_sse_inter_mode == DC_PRED) 2518 if (x->best_sse_inter_mode == DC_PRED)
2522 { 2519 {
2523 /* No best MV found. */ 2520 /* No best MV found. */
2524 x->best_sse_inter_mode = best_mode.mbmode.mode; 2521 x->best_sse_inter_mode = best_mode.mbmode.mode;
2525 x->best_sse_mv = best_mode.mbmode.mv; 2522 x->best_sse_mv = best_mode.mbmode.mv;
2526 x->need_to_clamp_best_mvs = best_mode.mbmode.need_to_clamp_mvs; 2523 x->need_to_clamp_best_mvs = best_mode.mbmode.need_to_clamp_mvs;
2527 x->best_reference_frame = best_mode.mbmode.ref_frame; 2524 x->best_reference_frame = best_mode.mbmode.ref_frame;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 x->e_mbd.mode_info_context->mbmi.mode = B_PRED; 2634 x->e_mbd.mode_info_context->mbmi.mode = B_PRED;
2638 rate += rate4x4; 2635 rate += rate4x4;
2639 } 2636 }
2640 else 2637 else
2641 { 2638 {
2642 rate += rate16x16; 2639 rate += rate16x16;
2643 } 2640 }
2644 2641
2645 *rate_ = rate; 2642 *rate_ = rate;
2646 } 2643 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/decoder/decodframe.c ('k') | source/libvpx/vpx/vp8dx.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698