• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #if CONFIG_ML_VAR_PARTITION
155   // Make partition decisions with machine learning models.
156   ML_BASED_PARTITION
157 #endif  // CONFIG_ML_VAR_PARTITION
158 } PARTITION_SEARCH_TYPE;
159 
160 typedef enum {
161   // Does a dry run to see if any of the contexts need to be updated or not,
162   // before the final run.
163   TWO_LOOP = 0,
164 
165   // No dry run, also only half the coef contexts and bands are updated.
166   // The rest are not updated at all.
167   ONE_LOOP_REDUCED = 1
168 } FAST_COEFF_UPDATE;
169 
170 typedef enum { EIGHTH_PEL, QUARTER_PEL, HALF_PEL, FULL_PEL } SUBPEL_FORCE_STOP;
171 
172 typedef struct ADAPT_SUBPEL_FORCE_STOP {
173   // Threshold for full pixel motion vector;
174   int mv_thresh;
175 
176   // subpel_force_stop if full pixel MV is below the threshold.
177   SUBPEL_FORCE_STOP force_stop_below;
178 
179   // subpel_force_stop if full pixel MV is equal to or above the threshold.
180   SUBPEL_FORCE_STOP force_stop_above;
181 } ADAPT_SUBPEL_FORCE_STOP;
182 
183 typedef struct MV_SPEED_FEATURES {
184   // Motion search method (Diamond, NSTEP, Hex, Big Diamond, Square, etc).
185   SEARCH_METHODS search_method;
186 
187   // This parameter controls which step in the n-step process we start at.
188   // It's changed adaptively based on circumstances.
189   int reduce_first_step_size;
190 
191   // If this is set to 1, we limit the motion search range to 2 times the
192   // largest motion vector found in the last frame.
193   int auto_mv_step_size;
194 
195   // Subpel_search_method can only be subpel_tree which does a subpixel
196   // logarithmic search that keeps stepping at 1/2 pixel units until
197   // you stop getting a gain, and then goes on to 1/4 and repeats
198   // the same process. Along the way it skips many diagonals.
199   SUBPEL_SEARCH_METHODS subpel_search_method;
200 
201   // Subpel MV search level. Can take values 0 - 2. Higher values mean more
202   // extensive subpel search.
203   int subpel_search_level;
204 
205   // When to stop subpel motion search.
206   SUBPEL_FORCE_STOP subpel_force_stop;
207 
208   // If it's enabled, different subpel_force_stop will be used for different MV.
209   int enable_adaptive_subpel_force_stop;
210 
211   ADAPT_SUBPEL_FORCE_STOP adapt_subpel_force_stop;
212 
213   // This variable sets the step_param used in full pel motion search.
214   int fullpel_search_step_param;
215 } MV_SPEED_FEATURES;
216 
217 typedef struct PARTITION_SEARCH_BREAKOUT_THR {
218   int64_t dist;
219   int rate;
220 } PARTITION_SEARCH_BREAKOUT_THR;
221 
222 #define MAX_MESH_STEP 4
223 
224 typedef struct MESH_PATTERN {
225   int range;
226   int interval;
227 } MESH_PATTERN;
228 
229 typedef enum {
230   // No reaction to rate control on a detected slide/scene change.
231   NO_DETECTION = 0,
232 
233   // Set to larger Q (max_q set by user) based only on the
234   // detected slide/scene change and current/past Q.
235   FAST_DETECTION_MAXQ = 1,
236 
237   // Based on (first pass) encoded frame, if large frame size is detected
238   // then set to higher Q for the second re-encode. This involves 2 pass
239   // encoding on slide change, so slower than 1, but more accurate for
240   // detecting overshoot.
241   RE_ENCODE_MAXQ = 2
242 } OVERSHOOT_DETECTION_CBR_RT;
243 
244 typedef enum {
245   USE_2_TAPS = 0,
246   USE_4_TAPS,
247   USE_8_TAPS,
248   USE_8_TAPS_SHARP,
249 } SUBPEL_SEARCH_TYPE;
250 
251 typedef struct SPEED_FEATURES {
252   MV_SPEED_FEATURES mv;
253 
254   // Frame level coding parameter update
255   int frame_parameter_update;
256 
257   RECODE_LOOP_TYPE recode_loop;
258 
259   // Trellis (dynamic programming) optimization of quantized values (+1, 0).
260   int optimize_coefficients;
261 
262   // Always set to 0. If on it enables 0 cost background transmission
263   // (except for the initial transmission of the segmentation). The feature is
264   // disabled because the addition of very large block sizes make the
265   // backgrounds very to cheap to encode, and the segmentation we have
266   // adds overhead.
267   int static_segmentation;
268 
269   // If 1 we iterate finding a best reference for 2 ref frames together - via
270   // a log search that iterates 4 times (check around mv for last for best
271   // error of combined predictor then check around mv for alt). If 0 we
272   // we just use the best motion vector found for each frame by itself.
273   BLOCK_SIZE comp_inter_joint_search_thresh;
274 
275   // This variable is used to cap the maximum number of times we skip testing a
276   // mode to be evaluated. A high value means we will be faster.
277   // Turned off when (row_mt_bit_exact == 1 && adaptive_rd_thresh_row_mt == 0).
278   int adaptive_rd_thresh;
279 
280   // Flag to use adaptive_rd_thresh when row-mt it enabled, only for non-rd
281   // pickmode.
282   int adaptive_rd_thresh_row_mt;
283 
284   // Enables skipping the reconstruction step (idct, recon) in the
285   // intermediate steps assuming the last frame didn't have too many intra
286   // blocks and the q is less than a threshold.
287   int skip_encode_sb;
288   int skip_encode_frame;
289   // Speed feature to allow or disallow skipping of recode at block
290   // level within a frame.
291   int allow_skip_recode;
292 
293   // Coefficient probability model approximation step size
294   int coeff_prob_appx_step;
295 
296   // Enable uniform quantizer followed by trellis coefficient optimization
297   int allow_quant_coeff_opt;
298   double quant_opt_thresh;
299 
300   // Enable asymptotic closed-loop encoding decision for key frame and
301   // alternate reference frames.
302   int allow_acl;
303 
304   // Temporal dependency model based encoding mode optimization
305   int enable_tpl_model;
306 
307   // Use transform domain distortion. Use pixel domain distortion in speed 0
308   // and certain situations in higher speed to improve the RD model precision.
309   int allow_txfm_domain_distortion;
310   double tx_domain_thresh;
311 
312   // The threshold is to determine how slow the motino is, it is used when
313   // use_lastframe_partitioning is set to LAST_FRAME_PARTITION_LOW_MOTION
314   MOTION_THRESHOLD lf_motion_threshold;
315 
316   // Determine which method we use to determine transform size. We can choose
317   // between options like full rd, largest for prediction size, largest
318   // for intra and model coefs for the rest.
319   TX_SIZE_SEARCH_METHOD tx_size_search_method;
320 
321   // How many levels of tx size to search, starting from the largest.
322   int tx_size_search_depth;
323 
324   // Low precision 32x32 fdct keeps everything in 16 bits and thus is less
325   // precise but significantly faster than the non lp version.
326   int use_lp32x32fdct;
327 
328   // After looking at the first set of modes (set by index here), skip
329   // checking modes for reference frames that don't match the reference frame
330   // of the best so far.
331   int mode_skip_start;
332 
333   // TODO(JBB): Remove this.
334   int reference_masking;
335 
336   PARTITION_SEARCH_TYPE partition_search_type;
337 
338   // Used if partition_search_type = FIXED_SIZE_PARTITION
339   BLOCK_SIZE always_this_block_size;
340 
341   // Skip rectangular partition test when partition type none gives better
342   // rd than partition type split.
343   int less_rectangular_check;
344 
345   // Disable testing non square partitions(eg 16x32) for block sizes larger than
346   // use_square_only_thresh_high or smaller than use_square_only_thresh_low.
347   int use_square_partition_only;
348   BLOCK_SIZE use_square_only_thresh_high;
349   BLOCK_SIZE use_square_only_thresh_low;
350 
351   // Prune reference frames for rectangular partitions.
352   int prune_ref_frame_for_rect_partitions;
353 
354   // Threshold values used for ML based rectangular partition search pruning.
355   // If < 0, the feature is turned off.
356   // Higher values mean more aggressiveness to skip rectangular partition
357   // search that results in better encoding speed but worse coding performance.
358   int ml_prune_rect_partition_threhold[4];
359 
360   // Sets min and max partition sizes for this 64x64 region based on the
361   // same 64x64 in last encoded frame, and the left and above neighbor.
362   AUTO_MIN_MAX_MODE auto_min_max_partition_size;
363   // Ensures the rd based auto partition search will always
364   // go down at least to the specified level.
365   BLOCK_SIZE rd_auto_partition_min_limit;
366 
367   // Min and max partition size we enable (block_size) as per auto
368   // min max, but also used by adjust partitioning, and pick_partitioning.
369   BLOCK_SIZE default_min_partition_size;
370   BLOCK_SIZE default_max_partition_size;
371 
372   // Whether or not we allow partitions one smaller or one greater than the last
373   // frame's partitioning. Only used if use_lastframe_partitioning is set.
374   int adjust_partitioning_from_last_frame;
375 
376   // How frequently we re do the partitioning from scratch. Only used if
377   // use_lastframe_partitioning is set.
378   int last_partitioning_redo_frequency;
379 
380   // Disables sub 8x8 blocksizes in different scenarios: Choices are to disable
381   // it always, to allow it for only Last frame and Intra, disable it for all
382   // inter modes or to enable it always.
383   int disable_split_mask;
384 
385   // TODO(jingning): combine the related motion search speed features
386   // This allows us to use motion search at other sizes as a starting
387   // point for this motion search and limits the search range around it.
388   int adaptive_motion_search;
389 
390   // Do extra full pixel motion search to obtain better motion vector.
391   int enhanced_full_pixel_motion_search;
392 
393   // Threshold for allowing exhaistive motion search.
394   int exhaustive_searches_thresh;
395 
396   // Pattern to be used for any exhaustive mesh searches.
397   MESH_PATTERN mesh_patterns[MAX_MESH_STEP];
398 
399   int schedule_mode_search;
400 
401   // Allows sub 8x8 modes to use the prediction filter that was determined
402   // best for 8x8 mode. If set to 0 we always re check all the filters for
403   // sizes less than 8x8, 1 means we check all filter modes if no 8x8 filter
404   // was selected, and 2 means we use 8 tap if no 8x8 filter mode was selected.
405   int adaptive_pred_interp_filter;
406 
407   // Adaptive prediction mode search
408   int adaptive_mode_search;
409 
410   // Chessboard pattern prediction filter type search
411   int cb_pred_filter_search;
412 
413   int cb_partition_search;
414 
415   int motion_field_mode_search;
416 
417   int alt_ref_search_fp;
418 
419   // Fast quantization process path
420   int use_quant_fp;
421 
422   // Use finer quantizer in every other few frames that run variable block
423   // partition type search.
424   int force_frame_boost;
425 
426   // Maximally allowed base quantization index fluctuation.
427   int max_delta_qindex;
428 
429   // Implements various heuristics to skip searching modes
430   // The heuristics selected are based on  flags
431   // defined in the MODE_SEARCH_SKIP_HEURISTICS enum
432   unsigned int mode_search_skip_flags;
433 
434   // A source variance threshold below which filter search is disabled
435   // Choose a very large value (UINT_MAX) to use 8-tap always
436   unsigned int disable_filter_search_var_thresh;
437 
438   // These bit masks allow you to enable or disable intra modes for each
439   // transform size separately.
440   int intra_y_mode_mask[TX_SIZES];
441   int intra_uv_mode_mask[TX_SIZES];
442 
443   // These bit masks allow you to enable or disable intra modes for each
444   // prediction block size separately.
445   int intra_y_mode_bsize_mask[BLOCK_SIZES];
446 
447   // This variable enables an early break out of mode testing if the model for
448   // rd built from the prediction signal indicates a value that's much
449   // higher than the best rd we've seen so far.
450   int use_rd_breakout;
451 
452   // This enables us to use an estimate for intra rd based on dc mode rather
453   // than choosing an actual uv mode in the stage of encoding before the actual
454   // final encode.
455   int use_uv_intra_rd_estimate;
456 
457   // This feature controls how the loop filter level is determined.
458   LPF_PICK_METHOD lpf_pick;
459 
460   // This feature limits the number of coefficients updates we actually do
461   // by only looking at counts from 1/2 the bands.
462   FAST_COEFF_UPDATE use_fast_coef_updates;
463 
464   // This flag controls the use of non-RD mode decision.
465   int use_nonrd_pick_mode;
466 
467   // A binary mask indicating if NEARESTMV, NEARMV, ZEROMV, NEWMV
468   // modes are used in order from LSB to MSB for each BLOCK_SIZE.
469   int inter_mode_mask[BLOCK_SIZES];
470 
471   // This feature controls whether we do the expensive context update and
472   // calculation in the rd coefficient costing loop.
473   int use_fast_coef_costing;
474 
475   // This feature controls the tolerence vs target used in deciding whether to
476   // recode a frame. It has no meaning if recode is disabled.
477   int recode_tolerance_low;
478   int recode_tolerance_high;
479 
480   // This variable controls the maximum block size where intra blocks can be
481   // used in inter frames.
482   // TODO(aconverse): Fold this into one of the other many mode skips
483   BLOCK_SIZE max_intra_bsize;
484 
485   // The frequency that we check if SOURCE_VAR_BASED_PARTITION or
486   // FIXED_PARTITION search type should be used.
487   int search_type_check_frequency;
488 
489   // When partition is pre-set, the inter prediction result from pick_inter_mode
490   // can be reused in final block encoding process. It is enabled only for real-
491   // time mode speed 6.
492   int reuse_inter_pred_sby;
493 
494   // This variable sets the encode_breakout threshold. Currently, it is only
495   // enabled in real time mode.
496   int encode_breakout_thresh;
497 
498   // default interp filter choice
499   INTERP_FILTER default_interp_filter;
500 
501   // Early termination in transform size search, which only applies while
502   // tx_size_search_method is USE_FULL_RD.
503   int tx_size_search_breakout;
504 
505   // adaptive interp_filter search to allow skip of certain filter types.
506   int adaptive_interp_filter_search;
507 
508   // mask for skip evaluation of certain interp_filter type.
509   INTERP_FILTER_MASK interp_filter_search_mask;
510 
511   // Partition search early breakout thresholds.
512   PARTITION_SEARCH_BREAKOUT_THR partition_search_breakout_thr;
513 
514   // Use ML-based partition search early breakout.
515   int use_ml_partition_search_breakout;
516   // Higher values mean more aggressiveness for partition search breakout that
517   // results in better encoding  speed but worse compression performance.
518   float ml_partition_search_breakout_thresh[3];
519 
520   // Machine-learning based partition search early termination
521   int ml_partition_search_early_termination;
522 
523   // Machine-learning based partition search pruning using prediction residue
524   // variance.
525   int ml_var_partition_pruning;
526 
527   // Allow skipping partition search for still image frame
528   int allow_partition_search_skip;
529 
530   // Fast approximation of vp9_model_rd_from_var_lapndz
531   int simple_model_rd_from_var;
532 
533   // Skip a number of expensive mode evaluations for blocks with zero source
534   // variance.
535   int short_circuit_flat_blocks;
536 
537   // Skip a number of expensive mode evaluations for blocks with very low
538   // temporal variance. If the low temporal variance flag is set for a block,
539   // do the following:
540   // 1: Skip all golden modes and ALL INTRA for bsize >= 32x32.
541   // 2: Skip golden non-zeromv and newmv-last for bsize >= 16x16, skip ALL
542   // INTRA for bsize >= 32x32 and vert/horz INTRA for bsize 16x16, 16x32 and
543   // 32x16.
544   // 3: Same as (2), but also skip golden zeromv.
545   int short_circuit_low_temp_var;
546 
547   // Limits the rd-threshold update for early exit for the newmv-last mode,
548   // for non-rd mode.
549   int limit_newmv_early_exit;
550 
551   // Adds a bias against golden reference, for non-rd mode.
552   int bias_golden;
553 
554   // Bias to use base mv and skip 1/4 subpel search when use base mv in
555   // enhancement layer.
556   int base_mv_aggressive;
557 
558   // Global flag to enable partition copy from the previous frame.
559   int copy_partition_flag;
560 
561   // Compute the source sad for every superblock of the frame,
562   // prior to encoding the frame, to be used to bypass some encoder decisions.
563   int use_source_sad;
564 
565   int use_simple_block_yrd;
566 
567   // If source sad of superblock is high (> adapt_partition_thresh), will switch
568   // from VARIANCE_PARTITION to REFERENCE_PARTITION (which selects partition
569   // based on the nonrd-pickmode).
570   int adapt_partition_source_sad;
571   int adapt_partition_thresh;
572 
573   // Enable use of alt-refs in 1 pass VBR.
574   int use_altref_onepass;
575 
576   // Enable use of compound prediction, for nonrd_pickmode with nonzero lag.
577   int use_compound_nonrd_pickmode;
578 
579   // Always use nonrd_pick_intra for all block sizes on keyframes.
580   int nonrd_keyframe;
581 
582   // For SVC: enables use of partition from lower spatial resolution.
583   int svc_use_lowres_part;
584 
585   // Flag to indicate process for handling overshoot on slide/scene change,
586   // for real-time CBR mode.
587   OVERSHOOT_DETECTION_CBR_RT overshoot_detection_cbr_rt;
588 
589   // Disable partitioning of 16x16 blocks.
590   int disable_16x16part_nonkey;
591 
592   // Allow for disabling golden reference.
593   int disable_golden_ref;
594 
595   // Allow sub-pixel search to use interpolation filters with different taps in
596   // order to achieve accurate motion search result.
597   SUBPEL_SEARCH_TYPE use_accurate_subpel_search;
598 } SPEED_FEATURES;
599 
600 struct VP9_COMP;
601 
602 void vp9_set_speed_features_framesize_independent(struct VP9_COMP *cpi);
603 void vp9_set_speed_features_framesize_dependent(struct VP9_COMP *cpi);
604 
605 #ifdef __cplusplus
606 }  // extern "C"
607 #endif
608 
609 #endif  // VPX_VP9_ENCODER_VP9_SPEED_FEATURES_H_
610