2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
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.
13 /*!\defgroup vp8_encoder WebM VP8/VP9 Encoder
19 #include "./vpx_encoder.h"
22 * \brief Provides definitions for using VP8 or VP9 encoder algorithm within the
23 * vpx Codec Interface.
30 /*!\name Algorithm interface for VP8
32 * This interface provides the capability to encode raw VP8 streams.
35 extern vpx_codec_iface_t vpx_codec_vp8_cx_algo;
36 extern vpx_codec_iface_t *vpx_codec_vp8_cx(void);
37 /*!@} - end algorithm interface member group*/
39 /*!\name Algorithm interface for VP9
41 * This interface provides the capability to encode raw VP9 streams.
44 extern vpx_codec_iface_t vpx_codec_vp9_cx_algo;
45 extern vpx_codec_iface_t *vpx_codec_vp9_cx(void);
46 /*!@} - end algorithm interface member group*/
52 /*!\brief Don't reference the last frame
54 * When this flag is set, the encoder will not use the last frame as a
55 * predictor. When not set, the encoder will choose whether to use the
56 * last frame or not automatically.
58 #define VP8_EFLAG_NO_REF_LAST (1 << 16)
60 /*!\brief Don't reference the golden frame
62 * When this flag is set, the encoder will not use the golden frame as a
63 * predictor. When not set, the encoder will choose whether to use the
64 * golden frame or not automatically.
66 #define VP8_EFLAG_NO_REF_GF (1 << 17)
68 /*!\brief Don't reference the alternate reference frame
70 * When this flag is set, the encoder will not use the alt ref frame as a
71 * predictor. When not set, the encoder will choose whether to use the
72 * alt ref frame or not automatically.
74 #define VP8_EFLAG_NO_REF_ARF (1 << 21)
76 /*!\brief Don't update the last frame
78 * When this flag is set, the encoder will not update the last frame with
79 * the contents of the current frame.
81 #define VP8_EFLAG_NO_UPD_LAST (1 << 18)
83 /*!\brief Don't update the golden frame
85 * When this flag is set, the encoder will not update the golden frame with
86 * the contents of the current frame.
88 #define VP8_EFLAG_NO_UPD_GF (1 << 22)
90 /*!\brief Don't update the alternate reference frame
92 * When this flag is set, the encoder will not update the alt ref frame with
93 * the contents of the current frame.
95 #define VP8_EFLAG_NO_UPD_ARF (1 << 23)
97 /*!\brief Force golden frame update
99 * When this flag is set, the encoder copy the contents of the current frame
100 * to the golden frame buffer.
102 #define VP8_EFLAG_FORCE_GF (1 << 19)
104 /*!\brief Force alternate reference frame update
106 * When this flag is set, the encoder copy the contents of the current frame
107 * to the alternate reference frame buffer.
109 #define VP8_EFLAG_FORCE_ARF (1 << 24)
111 /*!\brief Disable entropy update
113 * When this flag is set, the encoder will not update its internal entropy
114 * model based on the entropy of this frame.
116 #define VP8_EFLAG_NO_UPD_ENTROPY (1 << 20)
118 /*!\brief VPx encoder control functions
120 * This set of macros define the control functions available for VPx
123 * \sa #vpx_codec_control
125 enum vp8e_enc_control_id {
126 /*!\brief Codec control function to pass an ROI map to encoder.
128 * Supported in codecs: VP8, VP9
130 VP8E_SET_ROI_MAP = 8,
132 /*!\brief Codec control function to pass an Active map to encoder.
134 * Supported in codecs: VP8, VP9
138 /*!\brief Codec control function to set encoder scaling mode.
140 * Supported in codecs: VP8, VP9
142 VP8E_SET_SCALEMODE = 11,
144 /*!\brief Codec control function to set encoder internal speed settings.
146 * Changes in this value influences, among others, the encoder's selection
147 * of motion estimation methods. Values greater than 0 will increase encoder
148 * speed at the expense of quality.
150 * \note Valid range for VP8: -16..16
151 * \note Valid range for VP9: -8..8
153 * Supported in codecs: VP8, VP9
155 VP8E_SET_CPUUSED = 13,
157 /*!\brief Codec control function to enable automatic set and use alf frames.
159 * Supported in codecs: VP8, VP9
161 VP8E_SET_ENABLEAUTOALTREF,
163 /*!\brief control function to set noise sensitivity
165 * 0: off, 1: OnYOnly, 2: OnYUV,
166 * 3: OnYUVAggressive, 4: Adaptive
168 * Supported in codecs: VP8
170 VP8E_SET_NOISE_SENSITIVITY,
172 /*!\brief Codec control function to set sharpness.
174 * Supported in codecs: VP8, VP9
178 /*!\brief Codec control function to set the threshold for MBs treated static.
180 * Supported in codecs: VP8, VP9
182 VP8E_SET_STATIC_THRESHOLD,
184 /*!\brief Codec control function to set the number of token partitions.
186 * Supported in codecs: VP8
188 VP8E_SET_TOKEN_PARTITIONS,
190 /*!\brief Codec control function to get last quantizer chosen by the encoder.
192 * Return value uses internal quantizer scale defined by the codec.
194 * Supported in codecs: VP8, VP9
196 VP8E_GET_LAST_QUANTIZER,
198 /*!\brief Codec control function to get last quantizer chosen by the encoder.
200 * Return value uses the 0..63 scale as used by the rc_*_quantizer config
203 * Supported in codecs: VP8, VP9
205 VP8E_GET_LAST_QUANTIZER_64,
207 /*!\brief Codec control function to set the max no of frames to create arf.
209 * Supported in codecs: VP8, VP9
211 VP8E_SET_ARNR_MAXFRAMES,
213 /*!\brief Codec control function to set the filter strength for the arf.
215 * Supported in codecs: VP8, VP9
217 VP8E_SET_ARNR_STRENGTH,
219 /*!\deprecated control function to set the filter type to use for the arf. */
222 /*!\brief Codec control function to set visual tuning.
224 * Supported in codecs: VP8, VP9
228 /*!\brief Codec control function to set constrained quality level.
230 * \attention For this value to be used vpx_codec_enc_cfg_t::g_usage must be
232 * \note Valid range: 0..63
234 * Supported in codecs: VP8, VP9
238 /*!\brief Codec control function to set Max data rate for Intra frames.
240 * This value controls additional clamping on the maximum size of a
241 * keyframe. It is expressed as a percentage of the average
242 * per-frame bitrate, with the special (and default) value 0 meaning
243 * unlimited, or no additional clamping beyond the codec's built-in
246 * For example, to allocate no more than 4.5 frames worth of bitrate
247 * to a keyframe, set this to 450.
249 * Supported in codecs: VP8, VP9
251 VP8E_SET_MAX_INTRA_BITRATE_PCT,
253 /*!\brief Codec control function to set reference and update frame flags.
255 * Supported in codecs: VP8
257 VP8E_SET_FRAME_FLAGS,
259 /*!\brief Codec control function to set max data rate for Inter frames.
261 * This value controls additional clamping on the maximum size of an
262 * inter frame. It is expressed as a percentage of the average
263 * per-frame bitrate, with the special (and default) value 0 meaning
264 * unlimited, or no additional clamping beyond the codec's built-in
267 * For example, to allow no more than 4.5 frames worth of bitrate
268 * to an inter frame, set this to 450.
270 * Supported in codecs: VP9
272 VP9E_SET_MAX_INTER_BITRATE_PCT,
274 /*!\brief Boost percentage for Golden Frame in CBR mode.
276 * This value controls the amount of boost given to Golden Frame in
277 * CBR mode. It is expressed as a percentage of the average
278 * per-frame bitrate, with the special (and default) value 0 meaning
279 * the feature is off, i.e., no golden frame boost in CBR mode and
280 * average bitrate target is used.
282 * For example, to allow 100% more bits, i.e, 2X, in a golden frame
283 * than average frame, set this to 100.
285 * Supported in codecs: VP9
287 VP9E_SET_GF_CBR_BOOST_PCT,
289 /*!\brief Codec control function to set the temporal layer id.
291 * For temporal scalability: this control allows the application to set the
292 * layer id for each frame to be encoded. Note that this control must be set
293 * for every frame prior to encoding. The usage of this control function
294 * supersedes the internal temporal pattern counter, which is now deprecated.
296 * Supported in codecs: VP8
298 VP8E_SET_TEMPORAL_LAYER_ID,
300 /*!\brief Codec control function to set encoder screen content mode.
302 * 0: off, 1: On, 2: On with more aggressive rate control.
304 * Supported in codecs: VP8
306 VP8E_SET_SCREEN_CONTENT_MODE,
308 /*!\brief Codec control function to set lossless encoding mode.
310 * VP9 can operate in lossless encoding mode, in which the bitstream
311 * produced will be able to decode and reconstruct a perfect copy of
312 * input source. This control function provides a mean to switch encoder
313 * into lossless coding mode(1) or normal coding mode(0) that may be lossy.
314 * 0 = lossy coding mode
315 * 1 = lossless coding mode
317 * By default, encoder operates in normal coding mode (maybe lossy).
319 * Supported in codecs: VP9
323 /*!\brief Codec control function to set number of tile columns.
325 * In encoding and decoding, VP9 allows an input image frame be partitioned
326 * into separated vertical tile columns, which can be encoded or decoded
327 * independently. This enables easy implementation of parallel encoding and
328 * decoding. This control requests the encoder to use column tiles in
329 * encoding an input frame, with number of tile columns (in Log2 unit) as
335 * n = 2**n tile columns
336 * The requested tile columns will be capped by the encoder based on image
337 * size limitations (The minimum width of a tile column is 256 pixels, the
340 * By default, the value is 6, i.e., the maximum number of tiles supported by
343 * Supported in codecs: VP9
345 VP9E_SET_TILE_COLUMNS,
347 /*!\brief Codec control function to set number of tile rows.
349 * In encoding and decoding, VP9 allows an input image frame be partitioned
350 * into separated horizontal tile rows. Tile rows are encoded or decoded
351 * sequentially. Even though encoding/decoding of later tile rows depends on
352 * earlier ones, this allows the encoder to output data packets for tile rows
353 * prior to completely processing all tile rows in a frame, thereby reducing
354 * the latency in processing between input and output. The parameter
355 * for this control describes the number of tile rows, which has a valid
361 * By default, the value is 0, i.e. one single row tile for entire image.
363 * Supported in codecs: VP9
367 /*!\brief Codec control function to enable frame parallel decoding feature.
369 * VP9 has a bitstream feature to reduce decoding dependency between frames
370 * by turning off backward update of probability context used in encoding
371 * and decoding. This allows staged parallel processing of more than one
372 * video frame in the decoder. This control function provides a means to
373 * turn this feature on or off for bitstreams produced by encoder.
375 * By default, this feature is on.
377 * Supported in codecs: VP9
379 VP9E_SET_FRAME_PARALLEL_DECODING,
381 /*!\brief Codec control function to set adaptive quantization mode.
383 * VP9 has a segment based feature that allows encoder to adaptively change
384 * quantization parameter for each segment within a frame to improve the
385 * subjective quality. This control makes encoder operate in one of the
386 * several AQ_modes supported.
388 * By default, encoder operates with AQ_Mode 0(adaptive quantization off).
390 * Supported in codecs: VP9
394 /*!\brief Codec control function to enable/disable periodic Q boost.
396 * One VP9 encoder speed feature is to enable quality boost by lowering
397 * frame level Q periodically. This control function provides a mean to
398 * turn on/off this feature.
402 * By default, the encoder is allowed to use this feature for appropriate
405 * Supported in codecs: VP9
407 VP9E_SET_FRAME_PERIODIC_BOOST,
409 /*!\brief Codec control function to set noise sensitivity.
411 * 0: off, 1: On(YOnly)
413 * Supported in codecs: VP9
415 VP9E_SET_NOISE_SENSITIVITY,
417 /*!\brief Codec control function to turn on/off SVC in encoder.
418 * \note Return value is VPX_CODEC_INVALID_PARAM if the encoder does not
419 * support SVC in its current encoding mode
422 * Supported in codecs: VP9
426 /*!\brief Codec control function to set parameters for SVC.
427 * \note Parameters contain min_q, max_q, scaling factor for each of the
430 * Supported in codecs: VP9
432 VP9E_SET_SVC_PARAMETERS,
434 /*!\brief Codec control function to set svc layer for spatial and temporal.
435 * \note Valid ranges: 0..#vpx_codec_enc_cfg::ss_number_layers for spatial
436 * layer and 0..#vpx_codec_enc_cfg::ts_number_layers for
439 * Supported in codecs: VP9
441 VP9E_SET_SVC_LAYER_ID,
443 /*!\brief Codec control function to set content type.
444 * \note Valid parameter range:
445 * VP9E_CONTENT_DEFAULT = Regular video content (Default)
446 * VP9E_CONTENT_SCREEN = Screen capture content
447 * VP9E_CONTENT_FILM = Film content: improves grain retention
449 * Supported in codecs: VP9
451 VP9E_SET_TUNE_CONTENT,
453 /*!\brief Codec control function to get svc layer ID.
454 * \note The layer ID returned is for the data packet from the registered
457 * Supported in codecs: VP9
459 VP9E_GET_SVC_LAYER_ID,
461 /*!\brief Codec control function to register callback to get per layer packet.
462 * \note Parameter for this control function is a structure with a callback
463 * function and a pointer to private data used by the callback.
465 * Supported in codecs: VP9
467 VP9E_REGISTER_CX_CALLBACK,
469 /*!\brief Codec control function to set color space info.
470 * \note Valid ranges: 0..7, default is "UNKNOWN".
480 * Supported in codecs: VP9
482 VP9E_SET_COLOR_SPACE,
484 /*!\brief Codec control function to set temporal layering mode.
485 * \note Valid ranges: 0..3, default is "0"
486 * (VP9E_TEMPORAL_LAYERING_MODE_NOLAYERING).
487 * 0 = VP9E_TEMPORAL_LAYERING_MODE_NOLAYERING
488 * 1 = VP9E_TEMPORAL_LAYERING_MODE_BYPASS
489 * 2 = VP9E_TEMPORAL_LAYERING_MODE_0101
490 * 3 = VP9E_TEMPORAL_LAYERING_MODE_0212
492 * Supported in codecs: VP9
494 VP9E_SET_TEMPORAL_LAYERING_MODE,
496 /*!\brief Codec control function to set minimum interval between GF/ARF frames
498 * By default the value is set as 4.
500 * Supported in codecs: VP9
502 VP9E_SET_MIN_GF_INTERVAL,
504 /*!\brief Codec control function to set minimum interval between GF/ARF frames
506 * By default the value is set as 16.
508 * Supported in codecs: VP9
510 VP9E_SET_MAX_GF_INTERVAL,
512 /*!\brief Codec control function to get an Active map back from the encoder.
514 * Supported in codecs: VP9
518 /*!\brief Codec control function to set color range bit.
519 * \note Valid ranges: 0..1, default is 0
520 * 0 = Limited range (16..235 or HBD equivalent)
521 * 1 = Full range (0..255 or HBD equivalent)
523 * Supported in codecs: VP9
525 VP9E_SET_COLOR_RANGE,
527 /*!\brief Codec control function to set the frame flags and buffer indices
528 * for spatial layers. The frame flags and buffer indices are set using the
529 * struct #vpx_svc_ref_frame_config defined below.
531 * Supported in codecs: VP9
533 VP9E_SET_SVC_REF_FRAME_CONFIG,
535 /*!\brief Codec control function to set intended rendering image size.
537 * By default, this is identical to the image size in pixels.
539 * Supported in codecs: VP9
541 VP9E_SET_RENDER_SIZE,
543 /*!\brief Codec control function to set target level.
545 * 255: off (default); 0: only keep level stats; 10: target for level 1.0;
546 * 11: target for level 1.1; ... 62: target for level 6.2
548 * Supported in codecs: VP9
550 VP9E_SET_TARGET_LEVEL,
552 /*!\brief Codec control function to set row level multi-threading.
556 * Supported in codecs: VP9
560 /*!\brief Codec control function to get bitstream level.
562 * Supported in codecs: VP9
566 /*!\brief Codec control function to enable/disable special mode for altref
567 * adaptive quantization. You can use it with --aq-mode concurrently.
569 * Enable special adaptive quantization for altref frames based on their
570 * expected prediction quality for the future frames.
572 * Supported in codecs: VP9
576 /*!\brief Boost percentage for Golden Frame in CBR mode.
578 * This value controls the amount of boost given to Golden Frame in
579 * CBR mode. It is expressed as a percentage of the average
580 * per-frame bitrate, with the special (and default) value 0 meaning
581 * the feature is off, i.e., no golden frame boost in CBR mode and
582 * average bitrate target is used.
584 * For example, to allow 100% more bits, i.e, 2X, in a golden frame
585 * than average frame, set this to 100.
587 * Supported in codecs: VP8
589 VP8E_SET_GF_CBR_BOOST_PCT,
591 /*!\brief Codec control function to enable the extreme motion vector unit test
592 * in VP9. Please note that this is only used in motion vector unit test.
594 * 0 : off, 1 : MAX_EXTREME_MV, 2 : MIN_EXTREME_MV
596 * Supported in codecs: VP9
598 VP9E_ENABLE_MOTION_VECTOR_UNIT_TEST,
601 /*!\brief vpx 1-D scaling mode
603 * This set of constants define 1-D vpx scaling modes
605 typedef enum vpx_scaling_mode_1d {
612 /*!\brief Temporal layering mode enum for VP9 SVC.
614 * This set of macros define the different temporal layering modes.
615 * Supported codecs: VP9 (in SVC mode)
618 typedef enum vp9e_temporal_layering_mode {
619 /*!\brief No temporal layering.
620 * Used when only spatial layering is used.
622 VP9E_TEMPORAL_LAYERING_MODE_NOLAYERING = 0,
624 /*!\brief Bypass mode.
625 * Used when application needs to control temporal layering.
626 * This will only work when the number of spatial layers equals 1.
628 VP9E_TEMPORAL_LAYERING_MODE_BYPASS = 1,
630 /*!\brief 0-1-0-1... temporal layering scheme with two temporal layers.
632 VP9E_TEMPORAL_LAYERING_MODE_0101 = 2,
634 /*!\brief 0-2-1-2... temporal layering scheme with three temporal layers.
636 VP9E_TEMPORAL_LAYERING_MODE_0212 = 3
637 } VP9E_TEMPORAL_LAYERING_MODE;
639 /*!\brief vpx region of interest map
641 * These defines the data structures for the region of interest map
645 typedef struct vpx_roi_map {
646 /*! An id between 0 and 3 for each 16x16 region within a frame. */
647 unsigned char *roi_map;
648 unsigned int rows; /**< Number of rows. */
649 unsigned int cols; /**< Number of columns. */
650 // TODO(paulwilkins): broken for VP9 which has 8 segments
651 // q and loop filter deltas for each segment
652 // (see MAX_MB_SEGMENTS)
653 int delta_q[4]; /**< Quantizer deltas. */
654 int delta_lf[4]; /**< Loop filter deltas. */
655 /*! Static breakout threshold for each segment. */
656 unsigned int static_threshold[4];
659 /*!\brief vpx active region map
661 * These defines the data structures for active region map
665 typedef struct vpx_active_map {
666 /*!\brief specify an on (1) or off (0) each 16x16 region within a frame */
667 unsigned char *active_map;
668 unsigned int rows; /**< number of rows */
669 unsigned int cols; /**< number of cols */
672 /*!\brief vpx image scaling mode
674 * This defines the data structure for image scaling mode
677 typedef struct vpx_scaling_mode {
678 VPX_SCALING_MODE h_scaling_mode; /**< horizontal scaling mode */
679 VPX_SCALING_MODE v_scaling_mode; /**< vertical scaling mode */
680 } vpx_scaling_mode_t;
682 /*!\brief VP8 token partition mode
684 * This defines VP8 partitioning mode for compressed data, i.e., the number of
685 * sub-streams in the bitstream. Used for parallelized decoding.
690 VP8_ONE_TOKENPARTITION = 0,
691 VP8_TWO_TOKENPARTITION = 1,
692 VP8_FOUR_TOKENPARTITION = 2,
693 VP8_EIGHT_TOKENPARTITION = 3
694 } vp8e_token_partitions;
696 /*!brief VP9 encoder content type */
698 VP9E_CONTENT_DEFAULT,
704 /*!\brief VP8 model tuning parameters
706 * Changes the encoder to tune for certain types of input material.
709 typedef enum { VP8_TUNE_PSNR, VP8_TUNE_SSIM } vp8e_tuning;
711 /*!\brief vp9 svc layer parameters
713 * This defines the spatial and temporal layer id numbers for svc encoding.
714 * This is used with the #VP9E_SET_SVC_LAYER_ID control to set the spatial and
715 * temporal layer id for the current frame.
718 typedef struct vpx_svc_layer_id {
719 int spatial_layer_id; /**< Spatial layer id number. */
720 int temporal_layer_id; /**< Temporal layer id number. */
721 } vpx_svc_layer_id_t;
723 /*!\brief vp9 svc frame flag parameters.
725 * This defines the frame flags and buffer indices for each spatial layer for
727 * This is used with the #VP9E_SET_SVC_REF_FRAME_CONFIG control to set frame
728 * flags and buffer indices for each spatial layer for the current (super)frame.
731 typedef struct vpx_svc_ref_frame_config {
732 int frame_flags[VPX_TS_MAX_LAYERS]; /**< Frame flags. */
733 int lst_fb_idx[VPX_TS_MAX_LAYERS]; /**< Last buffer index. */
734 int gld_fb_idx[VPX_TS_MAX_LAYERS]; /**< Golden buffer index. */
735 int alt_fb_idx[VPX_TS_MAX_LAYERS]; /**< Altref buffer index. */
736 } vpx_svc_ref_frame_config_t;
739 /*!\brief VP8 encoder control function parameter type
741 * Defines the data types that VP8E control functions take. Note that
742 * additional common controls are defined in vp8.h
746 VPX_CTRL_USE_TYPE(VP8E_SET_FRAME_FLAGS, int)
747 #define VPX_CTRL_VP8E_SET_FRAME_FLAGS
748 VPX_CTRL_USE_TYPE(VP8E_SET_TEMPORAL_LAYER_ID, int)
749 #define VPX_CTRL_VP8E_SET_TEMPORAL_LAYER_ID
750 VPX_CTRL_USE_TYPE(VP8E_SET_ROI_MAP, vpx_roi_map_t *)
751 #define VPX_CTRL_VP8E_SET_ROI_MAP
752 VPX_CTRL_USE_TYPE(VP8E_SET_ACTIVEMAP, vpx_active_map_t *)
753 #define VPX_CTRL_VP8E_SET_ACTIVEMAP
754 VPX_CTRL_USE_TYPE(VP8E_SET_SCALEMODE, vpx_scaling_mode_t *)
755 #define VPX_CTRL_VP8E_SET_SCALEMODE
757 VPX_CTRL_USE_TYPE(VP9E_SET_SVC, int)
758 #define VPX_CTRL_VP9E_SET_SVC
759 VPX_CTRL_USE_TYPE(VP9E_SET_SVC_PARAMETERS, void *)
760 #define VPX_CTRL_VP9E_SET_SVC_PARAMETERS
761 VPX_CTRL_USE_TYPE(VP9E_REGISTER_CX_CALLBACK, void *)
762 #define VPX_CTRL_VP9E_REGISTER_CX_CALLBACK
763 VPX_CTRL_USE_TYPE(VP9E_SET_SVC_LAYER_ID, vpx_svc_layer_id_t *)
764 #define VPX_CTRL_VP9E_SET_SVC_LAYER_ID
766 VPX_CTRL_USE_TYPE(VP8E_SET_CPUUSED, int)
767 #define VPX_CTRL_VP8E_SET_CPUUSED
768 VPX_CTRL_USE_TYPE(VP8E_SET_ENABLEAUTOALTREF, unsigned int)
769 #define VPX_CTRL_VP8E_SET_ENABLEAUTOALTREF
770 VPX_CTRL_USE_TYPE(VP8E_SET_NOISE_SENSITIVITY, unsigned int)
771 #define VPX_CTRL_VP8E_SET_NOISE_SENSITIVITY
772 VPX_CTRL_USE_TYPE(VP8E_SET_SHARPNESS, unsigned int)
773 #define VPX_CTRL_VP8E_SET_SHARPNESS
774 VPX_CTRL_USE_TYPE(VP8E_SET_STATIC_THRESHOLD, unsigned int)
775 #define VPX_CTRL_VP8E_SET_STATIC_THRESHOLD
776 VPX_CTRL_USE_TYPE(VP8E_SET_TOKEN_PARTITIONS, int) /* vp8e_token_partitions */
777 #define VPX_CTRL_VP8E_SET_TOKEN_PARTITIONS
779 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_MAXFRAMES, unsigned int)
780 #define VPX_CTRL_VP8E_SET_ARNR_MAXFRAMES
781 VPX_CTRL_USE_TYPE(VP8E_SET_ARNR_STRENGTH, unsigned int)
782 #define VPX_CTRL_VP8E_SET_ARNR_STRENGTH
783 VPX_CTRL_USE_TYPE_DEPRECATED(VP8E_SET_ARNR_TYPE, unsigned int)
784 #define VPX_CTRL_VP8E_SET_ARNR_TYPE
785 VPX_CTRL_USE_TYPE(VP8E_SET_TUNING, int) /* vp8e_tuning */
786 #define VPX_CTRL_VP8E_SET_TUNING
787 VPX_CTRL_USE_TYPE(VP8E_SET_CQ_LEVEL, unsigned int)
788 #define VPX_CTRL_VP8E_SET_CQ_LEVEL
790 VPX_CTRL_USE_TYPE(VP9E_SET_TILE_COLUMNS, int)
791 #define VPX_CTRL_VP9E_SET_TILE_COLUMNS
792 VPX_CTRL_USE_TYPE(VP9E_SET_TILE_ROWS, int)
793 #define VPX_CTRL_VP9E_SET_TILE_ROWS
795 VPX_CTRL_USE_TYPE(VP8E_GET_LAST_QUANTIZER, int *)
796 #define VPX_CTRL_VP8E_GET_LAST_QUANTIZER
797 VPX_CTRL_USE_TYPE(VP8E_GET_LAST_QUANTIZER_64, int *)
798 #define VPX_CTRL_VP8E_GET_LAST_QUANTIZER_64
799 VPX_CTRL_USE_TYPE(VP9E_GET_SVC_LAYER_ID, vpx_svc_layer_id_t *)
800 #define VPX_CTRL_VP9E_GET_SVC_LAYER_ID
802 VPX_CTRL_USE_TYPE(VP8E_SET_MAX_INTRA_BITRATE_PCT, unsigned int)
803 #define VPX_CTRL_VP8E_SET_MAX_INTRA_BITRATE_PCT
804 VPX_CTRL_USE_TYPE(VP8E_SET_MAX_INTER_BITRATE_PCT, unsigned int)
805 #define VPX_CTRL_VP8E_SET_MAX_INTER_BITRATE_PCT
807 VPX_CTRL_USE_TYPE(VP8E_SET_GF_CBR_BOOST_PCT, unsigned int)
808 #define VPX_CTRL_VP8E_SET_GF_CBR_BOOST_PCT
810 VPX_CTRL_USE_TYPE(VP8E_SET_SCREEN_CONTENT_MODE, unsigned int)
811 #define VPX_CTRL_VP8E_SET_SCREEN_CONTENT_MODE
813 VPX_CTRL_USE_TYPE(VP9E_SET_GF_CBR_BOOST_PCT, unsigned int)
814 #define VPX_CTRL_VP9E_SET_GF_CBR_BOOST_PCT
816 VPX_CTRL_USE_TYPE(VP9E_SET_LOSSLESS, unsigned int)
817 #define VPX_CTRL_VP9E_SET_LOSSLESS
819 VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PARALLEL_DECODING, unsigned int)
820 #define VPX_CTRL_VP9E_SET_FRAME_PARALLEL_DECODING
822 VPX_CTRL_USE_TYPE(VP9E_SET_AQ_MODE, unsigned int)
823 #define VPX_CTRL_VP9E_SET_AQ_MODE
825 VPX_CTRL_USE_TYPE(VP9E_SET_ALT_REF_AQ, int)
826 #define VPX_CTRL_VP9E_SET_ALT_REF_AQ
828 VPX_CTRL_USE_TYPE(VP9E_SET_FRAME_PERIODIC_BOOST, unsigned int)
829 #define VPX_CTRL_VP9E_SET_FRAME_PERIODIC_BOOST
831 VPX_CTRL_USE_TYPE(VP9E_SET_NOISE_SENSITIVITY, unsigned int)
832 #define VPX_CTRL_VP9E_SET_NOISE_SENSITIVITY
834 VPX_CTRL_USE_TYPE(VP9E_SET_TUNE_CONTENT, int) /* vp9e_tune_content */
835 #define VPX_CTRL_VP9E_SET_TUNE_CONTENT
837 VPX_CTRL_USE_TYPE(VP9E_SET_COLOR_SPACE, int)
838 #define VPX_CTRL_VP9E_SET_COLOR_SPACE
840 VPX_CTRL_USE_TYPE(VP9E_SET_MIN_GF_INTERVAL, unsigned int)
841 #define VPX_CTRL_VP9E_SET_MIN_GF_INTERVAL
843 VPX_CTRL_USE_TYPE(VP9E_SET_MAX_GF_INTERVAL, unsigned int)
844 #define VPX_CTRL_VP9E_SET_MAX_GF_INTERVAL
846 VPX_CTRL_USE_TYPE(VP9E_GET_ACTIVEMAP, vpx_active_map_t *)
847 #define VPX_CTRL_VP9E_GET_ACTIVEMAP
849 VPX_CTRL_USE_TYPE(VP9E_SET_COLOR_RANGE, int)
850 #define VPX_CTRL_VP9E_SET_COLOR_RANGE
852 VPX_CTRL_USE_TYPE(VP9E_SET_SVC_REF_FRAME_CONFIG, vpx_svc_ref_frame_config_t *)
853 #define VPX_CTRL_VP9E_SET_SVC_REF_FRAME_CONFIG
855 VPX_CTRL_USE_TYPE(VP9E_SET_RENDER_SIZE, int *)
856 #define VPX_CTRL_VP9E_SET_RENDER_SIZE
858 VPX_CTRL_USE_TYPE(VP9E_SET_TARGET_LEVEL, unsigned int)
859 #define VPX_CTRL_VP9E_SET_TARGET_LEVEL
861 VPX_CTRL_USE_TYPE(VP9E_SET_ROW_MT, unsigned int)
862 #define VPX_CTRL_VP9E_SET_ROW_MT
864 VPX_CTRL_USE_TYPE(VP9E_GET_LEVEL, int *)
865 #define VPX_CTRL_VP9E_GET_LEVEL
867 VPX_CTRL_USE_TYPE(VP9E_ENABLE_MOTION_VECTOR_UNIT_TEST, unsigned int)
868 #define VPX_CTRL_VP9E_ENABLE_MOTION_VECTOR_UNIT_TEST
871 /*! @} - end defgroup vp8_encoder */
876 #endif // VPX_VP8CX_H_