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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_speed_features.c

Issue 897063002: Revert "libvpx: Pull from upstream" (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 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
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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 sf->mv.search_method = NSTEP; 330 sf->mv.search_method = NSTEP;
331 sf->tx_size_search_method = is_keyframe ? USE_LARGESTALL : USE_TX_8X8; 331 sf->tx_size_search_method = is_keyframe ? USE_LARGESTALL : USE_TX_8X8;
332 sf->mv.reduce_first_step_size = 1; 332 sf->mv.reduce_first_step_size = 1;
333 sf->skip_encode_sb = 0; 333 sf->skip_encode_sb = 0;
334 } 334 }
335 335
336 if (speed >= 7) { 336 if (speed >= 7) {
337 sf->adaptive_rd_thresh = 3; 337 sf->adaptive_rd_thresh = 3;
338 sf->mv.search_method = FAST_DIAMOND; 338 sf->mv.search_method = FAST_DIAMOND;
339 sf->mv.fullpel_search_step_param = 10; 339 sf->mv.fullpel_search_step_param = 10;
340 sf->lpf_pick = LPF_PICK_MINIMAL_LPF;
340 } 341 }
341 if (speed >= 8) { 342 if (speed >= 8) {
342 sf->adaptive_rd_thresh = 4; 343 sf->adaptive_rd_thresh = 4;
343 sf->mv.subpel_force_stop = 2; 344 sf->mv.subpel_force_stop = 2;
344 sf->lpf_pick = LPF_PICK_MINIMAL_LPF;
345 } 345 }
346 } 346 }
347 347
348 void vp9_set_speed_features_framesize_dependent(VP9_COMP *cpi) { 348 void vp9_set_speed_features_framesize_dependent(VP9_COMP *cpi) {
349 SPEED_FEATURES *const sf = &cpi->sf; 349 SPEED_FEATURES *const sf = &cpi->sf;
350 VP9_COMMON *const cm = &cpi->common; 350 VP9_COMMON *const cm = &cpi->common;
351 const VP9EncoderConfig *const oxcf = &cpi->oxcf; 351 const VP9EncoderConfig *const oxcf = &cpi->oxcf;
352 RD_OPT *const rd = &cpi->rd; 352 RD_OPT *const rd = &cpi->rd;
353 int i; 353 int i;
354 354
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 sf->use_nonrd_pick_mode = 0; 439 sf->use_nonrd_pick_mode = 0;
440 for (i = 0; i < BLOCK_SIZES; ++i) 440 for (i = 0; i < BLOCK_SIZES; ++i)
441 sf->inter_mode_mask[i] = INTER_ALL; 441 sf->inter_mode_mask[i] = INTER_ALL;
442 sf->max_intra_bsize = BLOCK_64X64; 442 sf->max_intra_bsize = BLOCK_64X64;
443 sf->reuse_inter_pred_sby = 0; 443 sf->reuse_inter_pred_sby = 0;
444 // This setting only takes effect when partition_search_type is set 444 // This setting only takes effect when partition_search_type is set
445 // to FIXED_PARTITION. 445 // to FIXED_PARTITION.
446 sf->always_this_block_size = BLOCK_16X16; 446 sf->always_this_block_size = BLOCK_16X16;
447 sf->search_type_check_frequency = 50; 447 sf->search_type_check_frequency = 50;
448 sf->encode_breakout_thresh = 0; 448 sf->encode_breakout_thresh = 0;
449 sf->elevate_newmv_thresh = 0;
449 // Recode loop tolerance %. 450 // Recode loop tolerance %.
450 sf->recode_tolerance = 25; 451 sf->recode_tolerance = 25;
451 sf->default_interp_filter = SWITCHABLE; 452 sf->default_interp_filter = SWITCHABLE;
452 sf->tx_size_search_breakout = 0; 453 sf->tx_size_search_breakout = 0;
453 sf->partition_search_breakout_dist_thr = 0; 454 sf->partition_search_breakout_dist_thr = 0;
454 sf->partition_search_breakout_rate_thr = 0; 455 sf->partition_search_breakout_rate_thr = 0;
455 456
456 if (oxcf->mode == REALTIME) 457 if (oxcf->mode == REALTIME)
457 set_rt_speed_feature(cpi, sf, oxcf->speed, oxcf->content); 458 set_rt_speed_feature(cpi, sf, oxcf->speed, oxcf->content);
458 else if (oxcf->mode == GOOD) 459 else if (oxcf->mode == GOOD)
(...skipping 26 matching lines...) Expand all
485 486
486 x->optimize = sf->optimize_coefficients == 1 && oxcf->pass != 1; 487 x->optimize = sf->optimize_coefficients == 1 && oxcf->pass != 1;
487 488
488 x->min_partition_size = sf->default_min_partition_size; 489 x->min_partition_size = sf->default_min_partition_size;
489 x->max_partition_size = sf->default_max_partition_size; 490 x->max_partition_size = sf->default_max_partition_size;
490 491
491 if (!cpi->oxcf.frame_periodic_boost) { 492 if (!cpi->oxcf.frame_periodic_boost) {
492 sf->max_delta_qindex = 0; 493 sf->max_delta_qindex = 0;
493 } 494 }
494 } 495 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_speed_features.h ('k') | source/libvpx/vp9/encoder/x86/vp9_variance_sse2.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698