1 /* 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef VPX_VP9_ENCODER_VP9_SPEED_FEATURES_H_ 12 #define VPX_VP9_ENCODER_VP9_SPEED_FEATURES_H_ 13 14 #include "vp9/common/vp9_enums.h" 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 enum { 21 INTRA_ALL = (1 << DC_PRED) | (1 << V_PRED) | (1 << H_PRED) | (1 << D45_PRED) | 22 (1 << D135_PRED) | (1 << D117_PRED) | (1 << D153_PRED) | 23 (1 << D207_PRED) | (1 << D63_PRED) | (1 << TM_PRED), 24 INTRA_DC = (1 << DC_PRED), 25 INTRA_DC_TM = (1 << DC_PRED) | (1 << TM_PRED), 26 INTRA_DC_H_V = (1 << DC_PRED) | (1 << V_PRED) | (1 << H_PRED), 27 INTRA_DC_TM_H_V = 28 (1 << DC_PRED) | (1 << TM_PRED) | (1 << V_PRED) | (1 << H_PRED) 29 }; 30 31 enum { 32 INTER_ALL = (1 << NEARESTMV) | (1 << NEARMV) | (1 << ZEROMV) | (1 << NEWMV), 33 INTER_NEAREST = (1 << NEARESTMV), 34 INTER_NEAREST_NEW = (1 << NEARESTMV) | (1 << NEWMV), 35 INTER_NEAREST_ZERO = (1 << NEARESTMV) | (1 << ZEROMV), 36 INTER_NEAREST_NEW_ZERO = (1 << NEARESTMV) | (1 << ZEROMV) | (1 << NEWMV), 37 INTER_NEAREST_NEAR_NEW = (1 << NEARESTMV) | (1 << NEARMV) | (1 << NEWMV), 38 INTER_NEAREST_NEAR_ZERO = (1 << NEARESTMV) | (1 << NEARMV) | (1 << ZEROMV), 39 }; 40 41 enum { 42 DISABLE_ALL_INTER_SPLIT = (1 << THR_COMP_GA) | (1 << THR_COMP_LA) | 43 (1 << THR_ALTR) | (1 << THR_GOLD) | (1 << THR_LAST), 44 45 DISABLE_ALL_SPLIT = (1 << THR_INTRA) | DISABLE_ALL_INTER_SPLIT, 46 47 DISABLE_COMPOUND_SPLIT = (1 << THR_COMP_GA) | (1 << THR_COMP_LA), 48 49 LAST_AND_INTRA_SPLIT_ONLY = (1 << THR_COMP_GA) | (1 << THR_COMP_LA) | 50 (1 << THR_ALTR) | (1 << THR_GOLD) 51 }; 52 53 typedef enum { 54 DIAMOND = 0, 55 NSTEP = 1, 56 HEX = 2, 57 BIGDIA = 3, 58 SQUARE = 4, 59 FAST_HEX = 5, 60 FAST_DIAMOND = 6, 61 MESH = 7 62 } SEARCH_METHODS; 63 64 typedef enum { 65 // No recode. 66 DISALLOW_RECODE = 0, 67 // Allow recode for KF and exceeding maximum frame bandwidth. 68 ALLOW_RECODE_KFMAXBW = 1, 69 // Allow recode only for KF/ARF/GF frames. 70 ALLOW_RECODE_KFARFGF = 2, 71 // Allow recode for ARF/GF/KF and first normal frame in each group. 72 ALLOW_RECODE_FIRST = 3, 73 // Allow recode for all frames based on bitrate constraints. 74 ALLOW_RECODE = 4, 75 } RECODE_LOOP_TYPE; 76 77 typedef enum { 78 SUBPEL_TREE = 0, 79 SUBPEL_TREE_PRUNED = 1, // Prunes 1/2-pel searches 80 SUBPEL_TREE_PRUNED_MORE = 2, // Prunes 1/2-pel searches more aggressively 81 SUBPEL_TREE_PRUNED_EVENMORE = 3, // Prunes 1/2- and 1/4-pel searches 82 // Other methods to come 83 } SUBPEL_SEARCH_METHODS; 84 85 typedef enum { 86 NO_MOTION_THRESHOLD = 0, 87 LOW_MOTION_THRESHOLD = 7 88 } MOTION_THRESHOLD; 89 90 typedef enum { 91 USE_FULL_RD = 0, 92 USE_LARGESTALL, 93 USE_TX_8X8 94 } TX_SIZE_SEARCH_METHOD; 95 96 typedef enum { 97 NOT_IN_USE = 0, 98 RELAXED_NEIGHBORING_MIN_MAX = 1, 99 STRICT_NEIGHBORING_MIN_MAX = 2 100 } AUTO_MIN_MAX_MODE; 101 102 typedef enum { 103 // Try the full image with different values. 104 LPF_PICK_FROM_FULL_IMAGE, 105 // Try a small portion of the image with different values. 106 LPF_PICK_FROM_SUBIMAGE, 107 // Estimate the level based on quantizer and frame type 108 LPF_PICK_FROM_Q, 109 // Pick 0 to disable LPF if LPF was enabled last frame 110 LPF_PICK_MINIMAL_LPF 111 } LPF_PICK_METHOD; 112 113 typedef enum { 114 // Terminate search early based on distortion so far compared to 115 // qp step, distortion in the neighborhood of the frame, etc. 116 FLAG_EARLY_TERMINATE = 1 << 0, 117 118 // Skips comp inter modes if the best so far is an intra mode. 119 FLAG_SKIP_COMP_BESTINTRA = 1 << 1, 120 121 // Skips oblique intra modes if the best so far is an inter mode. 122 FLAG_SKIP_INTRA_BESTINTER = 1 << 3, 123 124 // Skips oblique intra modes at angles 27, 63, 117, 153 if the best 125 // intra so far is not one of the neighboring directions. 126 FLAG_SKIP_INTRA_DIRMISMATCH = 1 << 4, 127 128 // Skips intra modes other than DC_PRED if the source variance is small 129 FLAG_SKIP_INTRA_LOWVAR = 1 << 5, 130 } MODE_SEARCH_SKIP_LOGIC; 131 132 typedef enum { 133 FLAG_SKIP_EIGHTTAP = 1 << EIGHTTAP, 134 FLAG_SKIP_EIGHTTAP_SMOOTH = 1 << EIGHTTAP_SMOOTH, 135 FLAG_SKIP_EIGHTTAP_SHARP = 1 << EIGHTTAP_SHARP, 136 } INTERP_FILTER_MASK; 137 138 typedef enum { 139 // Search partitions using RD/NONRD criterion. 140 SEARCH_PARTITION, 141 142 // Always use a fixed size partition. 143 FIXED_PARTITION, 144 145 REFERENCE_PARTITION, 146 147 // Use an arbitrary partitioning scheme based on source variance within 148 // a 64X64 SB. 149 VAR_BASED_PARTITION, 150 151 // Use non-fixed partitions based on source variance. 152 SOURCE_VAR_BASED_PARTITION, 153 154 // Make partition decisions with machine learning models. 155 ML_BASED_PARTITION 156 } PARTITION_SEARCH_TYPE; 157 158 typedef enum { 159 // Does a dry run to see if any of the contexts need to be updated or not, 160 // before the final run. 161 TWO_LOOP = 0, 162 163 // No dry run, also only half the coef contexts and bands are updated. 164 // The rest are not updated at all. 165 ONE_LOOP_REDUCED = 1 166 } FAST_COEFF_UPDATE; 167 168 typedef enum { EIGHTH_PEL, QUARTER_PEL, HALF_PEL, FULL_PEL } SUBPEL_FORCE_STOP; 169 170 typedef struct ADAPT_SUBPEL_FORCE_STOP { 171 // Threshold for full pixel motion vector; 172 int mv_thresh; 173 174 // subpel_force_stop if full pixel MV is below the threshold. 175 SUBPEL_FORCE_STOP force_stop_below; 176 177 // subpel_force_stop if full pixel MV is equal to or above the threshold. 178 SUBPEL_FORCE_STOP force_stop_above; 179 } ADAPT_SUBPEL_FORCE_STOP; 180 181 typedef struct MV_SPEED_FEATURES { 182 // Motion search method (Diamond, NSTEP, Hex, Big Diamond, Square, etc). 183 SEARCH_METHODS search_method; 184 185 // This parameter controls which step in the n-step process we start at. 186 // It's changed adaptively based on circumstances. 187 int reduce_first_step_size; 188 189 // If this is set to 1, we limit the motion search range to 2 times the 190 // largest motion vector found in the last frame. 191 int auto_mv_step_size; 192 193 // Subpel_search_method can only be subpel_tree which does a subpixel 194 // logarithmic search that keeps stepping at 1/2 pixel units until 195 // you stop getting a gain, and then goes on to 1/4 and repeats 196 // the same process. Along the way it skips many diagonals. 197 SUBPEL_SEARCH_METHODS subpel_search_method; 198 199 // Subpel MV search level. Can take values 0 - 2. Higher values mean more 200 // extensive subpel search. 201 int subpel_search_level; 202 203 // When to stop subpel motion search. 204 SUBPEL_FORCE_STOP subpel_force_stop; 205 206 // If it's enabled, different subpel_force_stop will be used for different MV. 207 int enable_adaptive_subpel_force_stop; 208 209 ADAPT_SUBPEL_FORCE_STOP adapt_subpel_force_stop; 210 211 // This variable sets the step_param used in full pel motion search. 212 int fullpel_search_step_param; 213 } MV_SPEED_FEATURES; 214 215 typedef struct PARTITION_SEARCH_BREAKOUT_THR { 216 int64_t dist; 217 int rate; 218 } PARTITION_SEARCH_BREAKOUT_THR; 219 220 #define MAX_MESH_STEP 4 221 222 typedef struct MESH_PATTERN { 223 int range; 224 int interval; 225 } MESH_PATTERN; 226 227 typedef enum { 228 // No reaction to rate control on a detected slide/scene change. 229 NO_DETECTION = 0, 230 231 // Set to larger Q (max_q set by user) based only on the 232 // detected slide/scene change and current/past Q. 233 FAST_DETECTION_MAXQ = 1, 234 235 // Based on (first pass) encoded frame, if large frame size is detected 236 // then set to higher Q for the second re-encode. This involves 2 pass 237 // encoding on slide change, so slower than 1, but more accurate for 238 // detecting overshoot. 239 RE_ENCODE_MAXQ = 2 240 } OVERSHOOT_DETECTION_CBR_RT; 241 242 typedef enum { 243 USE_2_TAPS = 0, 244 USE_4_TAPS, 245 USE_8_TAPS, 246 USE_8_TAPS_SHARP, 247 } SUBPEL_SEARCH_TYPE; 248 249 typedef struct SPEED_FEATURES { 250 MV_SPEED_FEATURES mv; 251 252 // Frame level coding parameter update 253 int frame_parameter_update; 254 255 RECODE_LOOP_TYPE recode_loop; 256 257 // Trellis (dynamic programming) optimization of quantized values (+1, 0). 258 int optimize_coefficients; 259 260 // Always set to 0. If on it enables 0 cost background transmission 261 // (except for the initial transmission of the segmentation). The feature is 262 // disabled because the addition of very large block sizes make the 263 // backgrounds very to cheap to encode, and the segmentation we have 264 // adds overhead. 265 int static_segmentation; 266 267 // If 1 we iterate finding a best reference for 2 ref frames together - via 268 // a log search that iterates 4 times (check around mv for last for best 269 // error of combined predictor then check around mv for alt). If 0 we 270 // we just use the best motion vector found for each frame by itself. 271 BLOCK_SIZE comp_inter_joint_search_thresh; 272 273 // This variable is used to cap the maximum number of times we skip testing a 274 // mode to be evaluated. A high value means we will be faster. 275 // Turned off when (row_mt_bit_exact == 1 && adaptive_rd_thresh_row_mt == 0). 276 int adaptive_rd_thresh; 277 278 // Flag to use adaptive_rd_thresh when row-mt it enabled, only for non-rd 279 // pickmode. 280 int adaptive_rd_thresh_row_mt; 281 282 // Enables skipping the reconstruction step (idct, recon) in the 283 // intermediate steps assuming the last frame didn't have too many intra 284 // blocks and the q is less than a threshold. 285 int skip_encode_sb; 286 int skip_encode_frame; 287 // Speed feature to allow or disallow skipping of recode at block 288 // level within a frame. 289 int allow_skip_recode; 290 291 // Coefficient probability model approximation step size 292 int coeff_prob_appx_step; 293 294 // Enable uniform quantizer followed by trellis coefficient optimization 295 int allow_quant_coeff_opt; 296 double quant_opt_thresh; 297 298 // Enable asymptotic closed-loop encoding decision for key frame and 299 // alternate reference frames. 300 int allow_acl; 301 302 // Temporal dependency model based encoding mode optimization 303 int enable_tpl_model; 304 305 // Use transform domain distortion. Use pixel domain distortion in speed 0 306 // and certain situations in higher speed to improve the RD model precision. 307 int allow_txfm_domain_distortion; 308 double tx_domain_thresh; 309 310 // The threshold is to determine how slow the motino is, it is used when 311 // use_lastframe_partitioning is set to LAST_FRAME_PARTITION_LOW_MOTION 312 MOTION_THRESHOLD lf_motion_threshold; 313 314 // Determine which method we use to determine transform size. We can choose 315 // between options like full rd, largest for prediction size, largest 316 // for intra and model coefs for the rest. 317 TX_SIZE_SEARCH_METHOD tx_size_search_method; 318 319 // How many levels of tx size to search, starting from the largest. 320 int tx_size_search_depth; 321 322 // Low precision 32x32 fdct keeps everything in 16 bits and thus is less 323 // precise but significantly faster than the non lp version. 324 int use_lp32x32fdct; 325 326 // After looking at the first set of modes (set by index here), skip 327 // checking modes for reference frames that don't match the reference frame 328 // of the best so far. 329 int mode_skip_start; 330 331 // TODO(JBB): Remove this. 332 int reference_masking; 333 334 PARTITION_SEARCH_TYPE partition_search_type; 335 336 // Used if partition_search_type = FIXED_SIZE_PARTITION 337 BLOCK_SIZE always_this_block_size; 338 339 // Skip rectangular partition test when partition type none gives better 340 // rd than partition type split. 341 int less_rectangular_check; 342 343 // Disable testing non square partitions(eg 16x32) for block sizes larger than 344 // use_square_only_thresh_high or smaller than use_square_only_thresh_low. 345 int use_square_partition_only; 346 BLOCK_SIZE use_square_only_thresh_high; 347 BLOCK_SIZE use_square_only_thresh_low; 348 349 // Prune reference frames for rectangular partitions. 350 int prune_ref_frame_for_rect_partitions; 351 352 // Sets min and max partition sizes for this 64x64 region based on the 353 // same 64x64 in last encoded frame, and the left and above neighbor. 354 AUTO_MIN_MAX_MODE auto_min_max_partition_size; 355 // Ensures the rd based auto partition search will always 356 // go down at least to the specified level. 357 BLOCK_SIZE rd_auto_partition_min_limit; 358 359 // Min and max partition size we enable (block_size) as per auto 360 // min max, but also used by adjust partitioning, and pick_partitioning. 361 BLOCK_SIZE default_min_partition_size; 362 BLOCK_SIZE default_max_partition_size; 363 364 // Whether or not we allow partitions one smaller or one greater than the last 365 // frame's partitioning. Only used if use_lastframe_partitioning is set. 366 int adjust_partitioning_from_last_frame; 367 368 // How frequently we re do the partitioning from scratch. Only used if 369 // use_lastframe_partitioning is set. 370 int last_partitioning_redo_frequency; 371 372 // Disables sub 8x8 blocksizes in different scenarios: Choices are to disable 373 // it always, to allow it for only Last frame and Intra, disable it for all 374 // inter modes or to enable it always. 375 int disable_split_mask; 376 377 // TODO(jingning): combine the related motion search speed features 378 // This allows us to use motion search at other sizes as a starting 379 // point for this motion search and limits the search range around it. 380 int adaptive_motion_search; 381 382 // Do extra full pixel motion search to obtain better motion vector. 383 int enhanced_full_pixel_motion_search; 384 385 // Threshold for allowing exhaistive motion search. 386 int exhaustive_searches_thresh; 387 388 // Pattern to be used for any exhaustive mesh searches. 389 MESH_PATTERN mesh_patterns[MAX_MESH_STEP]; 390 391 int schedule_mode_search; 392 393 // Allows sub 8x8 modes to use the prediction filter that was determined 394 // best for 8x8 mode. If set to 0 we always re check all the filters for 395 // sizes less than 8x8, 1 means we check all filter modes if no 8x8 filter 396 // was selected, and 2 means we use 8 tap if no 8x8 filter mode was selected. 397 int adaptive_pred_interp_filter; 398 399 // Adaptive prediction mode search 400 int adaptive_mode_search; 401 402 // Chessboard pattern prediction filter type search 403 int cb_pred_filter_search; 404 405 int cb_partition_search; 406 407 int motion_field_mode_search; 408 409 int alt_ref_search_fp; 410 411 // Fast quantization process path 412 int use_quant_fp; 413 414 // Use finer quantizer in every other few frames that run variable block 415 // partition type search. 416 int force_frame_boost; 417 418 // Maximally allowed base quantization index fluctuation. 419 int max_delta_qindex; 420 421 // Implements various heuristics to skip searching modes 422 // The heuristics selected are based on flags 423 // defined in the MODE_SEARCH_SKIP_HEURISTICS enum 424 unsigned int mode_search_skip_flags; 425 426 // A source variance threshold below which filter search is disabled 427 // Choose a very large value (UINT_MAX) to use 8-tap always 428 unsigned int disable_filter_search_var_thresh; 429 430 // These bit masks allow you to enable or disable intra modes for each 431 // transform size separately. 432 int intra_y_mode_mask[TX_SIZES]; 433 int intra_uv_mode_mask[TX_SIZES]; 434 435 // These bit masks allow you to enable or disable intra modes for each 436 // prediction block size separately. 437 int intra_y_mode_bsize_mask[BLOCK_SIZES]; 438 439 // This variable enables an early break out of mode testing if the model for 440 // rd built from the prediction signal indicates a value that's much 441 // higher than the best rd we've seen so far. 442 int use_rd_breakout; 443 444 // This enables us to use an estimate for intra rd based on dc mode rather 445 // than choosing an actual uv mode in the stage of encoding before the actual 446 // final encode. 447 int use_uv_intra_rd_estimate; 448 449 // This feature controls how the loop filter level is determined. 450 LPF_PICK_METHOD lpf_pick; 451 452 // This feature limits the number of coefficients updates we actually do 453 // by only looking at counts from 1/2 the bands. 454 FAST_COEFF_UPDATE use_fast_coef_updates; 455 456 // This flag controls the use of non-RD mode decision. 457 int use_nonrd_pick_mode; 458 459 // A binary mask indicating if NEARESTMV, NEARMV, ZEROMV, NEWMV 460 // modes are used in order from LSB to MSB for each BLOCK_SIZE. 461 int inter_mode_mask[BLOCK_SIZES]; 462 463 // This feature controls whether we do the expensive context update and 464 // calculation in the rd coefficient costing loop. 465 int use_fast_coef_costing; 466 467 // This feature controls the tolerence vs target used in deciding whether to 468 // recode a frame. It has no meaning if recode is disabled. 469 int recode_tolerance_low; 470 int recode_tolerance_high; 471 472 // This variable controls the maximum block size where intra blocks can be 473 // used in inter frames. 474 // TODO(aconverse): Fold this into one of the other many mode skips 475 BLOCK_SIZE max_intra_bsize; 476 477 // The frequency that we check if SOURCE_VAR_BASED_PARTITION or 478 // FIXED_PARTITION search type should be used. 479 int search_type_check_frequency; 480 481 // When partition is pre-set, the inter prediction result from pick_inter_mode 482 // can be reused in final block encoding process. It is enabled only for real- 483 // time mode speed 6. 484 int reuse_inter_pred_sby; 485 486 // This variable sets the encode_breakout threshold. Currently, it is only 487 // enabled in real time mode. 488 int encode_breakout_thresh; 489 490 // default interp filter choice 491 INTERP_FILTER default_interp_filter; 492 493 // Early termination in transform size search, which only applies while 494 // tx_size_search_method is USE_FULL_RD. 495 int tx_size_search_breakout; 496 497 // adaptive interp_filter search to allow skip of certain filter types. 498 int adaptive_interp_filter_search; 499 500 // mask for skip evaluation of certain interp_filter type. 501 INTERP_FILTER_MASK interp_filter_search_mask; 502 503 // Partition search early breakout thresholds. 504 PARTITION_SEARCH_BREAKOUT_THR partition_search_breakout_thr; 505 506 struct { 507 // Use ML-based partition search early breakout. 508 int search_breakout; 509 // Higher values mean more aggressiveness for partition search breakout that 510 // results in better encoding speed but worse compression performance. 511 float search_breakout_thresh[3]; 512 513 // Machine-learning based partition search early termination 514 int search_early_termination; 515 516 // Machine-learning based partition search pruning using prediction residue 517 // variance. 518 int var_pruning; 519 520 // Threshold values used for ML based rectangular partition search pruning. 521 // If < 0, the feature is turned off. 522 // Higher values mean more aggressiveness to skip rectangular partition 523 // search that results in better encoding speed but worse coding 524 // performance. 525 int prune_rect_thresh[4]; 526 } rd_ml_partition; 527 528 // Allow skipping partition search for still image frame 529 int allow_partition_search_skip; 530 531 // Fast approximation of vp9_model_rd_from_var_lapndz 532 int simple_model_rd_from_var; 533 534 // Skip a number of expensive mode evaluations for blocks with zero source 535 // variance. 536 int short_circuit_flat_blocks; 537 538 // Skip a number of expensive mode evaluations for blocks with very low 539 // temporal variance. If the low temporal variance flag is set for a block, 540 // do the following: 541 // 1: Skip all golden modes and ALL INTRA for bsize >= 32x32. 542 // 2: Skip golden non-zeromv and newmv-last for bsize >= 16x16, skip ALL 543 // INTRA for bsize >= 32x32 and vert/horz INTRA for bsize 16x16, 16x32 and 544 // 32x16. 545 // 3: Same as (2), but also skip golden zeromv. 546 int short_circuit_low_temp_var; 547 548 // Limits the rd-threshold update for early exit for the newmv-last mode, 549 // for non-rd mode. 550 int limit_newmv_early_exit; 551 552 // Adds a bias against golden reference, for non-rd mode. 553 int bias_golden; 554 555 // Bias to use base mv and skip 1/4 subpel search when use base mv in 556 // enhancement layer. 557 int base_mv_aggressive; 558 559 // Global flag to enable partition copy from the previous frame. 560 int copy_partition_flag; 561 562 // Compute the source sad for every superblock of the frame, 563 // prior to encoding the frame, to be used to bypass some encoder decisions. 564 int use_source_sad; 565 566 int use_simple_block_yrd; 567 568 // If source sad of superblock is high (> adapt_partition_thresh), will switch 569 // from VARIANCE_PARTITION to REFERENCE_PARTITION (which selects partition 570 // based on the nonrd-pickmode). 571 int adapt_partition_source_sad; 572 int adapt_partition_thresh; 573 574 // Enable use of alt-refs in 1 pass VBR. 575 int use_altref_onepass; 576 577 // Enable use of compound prediction, for nonrd_pickmode with nonzero lag. 578 int use_compound_nonrd_pickmode; 579 580 // Always use nonrd_pick_intra for all block sizes on keyframes. 581 int nonrd_keyframe; 582 583 // For SVC: enables use of partition from lower spatial resolution. 584 int svc_use_lowres_part; 585 586 // Flag to indicate process for handling overshoot on slide/scene change, 587 // for real-time CBR mode. 588 OVERSHOOT_DETECTION_CBR_RT overshoot_detection_cbr_rt; 589 590 // Disable partitioning of 16x16 blocks. 591 int disable_16x16part_nonkey; 592 593 // Allow for disabling golden reference. 594 int disable_golden_ref; 595 596 // Allow sub-pixel search to use interpolation filters with different taps in 597 // order to achieve accurate motion search result. 598 SUBPEL_SEARCH_TYPE use_accurate_subpel_search; 599 600 // Search method used by temporal filtering in full_pixel_motion_search. 601 SEARCH_METHODS temporal_filter_search_method; 602 603 // Use machine learning based partition search. 604 int nonrd_use_ml_partition; 605 606 // Multiplier for base thresold for variance partitioning. 607 int variance_part_thresh_mult; 608 609 // Force subpel motion filter to always use SMOOTH_FILTER. 610 int force_smooth_interpol; 611 612 // For real-time mode: force DC only under intra search when content 613 // does not have high souce SAD. 614 int rt_intra_dc_only_low_content; 615 } SPEED_FEATURES; 616 617 struct VP9_COMP; 618 619 void vp9_set_speed_features_framesize_independent(struct VP9_COMP *cpi, 620 int speed); 621 void vp9_set_speed_features_framesize_dependent(struct VP9_COMP *cpi, 622 int speed); 623 624 #ifdef __cplusplus 625 } // extern "C" 626 #endif 627 628 #endif // VPX_VP9_ENCODER_VP9_SPEED_FEATURES_H_ 629