WebM Codec SDK

vpx_encoder.h
Go to the documentation of this file.
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#ifndef VPX_VPX_VPX_ENCODER_H_
11#define VPX_VPX_VPX_ENCODER_H_
12
28#ifdef __cplusplus
29 extern "C" {
30#endif
31
32#include "./vpx_codec.h"
33#include "./vpx_ext_ratectrl.h"
34#include "./vpx_tpl.h"
35
39#define VPX_TS_MAX_PERIODICITY 16
40
42#define VPX_TS_MAX_LAYERS 5
43
45#define VPX_MAX_LAYERS 12 // 3 temporal + 4 spatial layers are allowed.
46
48#define VPX_SS_MAX_LAYERS 5
49
51#define VPX_SS_DEFAULT_LAYERS 1
52
61#define VPX_ENCODER_ABI_VERSION \
62 (16 + VPX_CODEC_ABI_VERSION + VPX_EXT_RATECTRL_ABI_VERSION + \
63 VPX_TPL_ABI_VERSION)
74#define VPX_CODEC_CAP_PSNR 0x10000
81#define VPX_CODEC_CAP_OUTPUT_PARTITION 0x20000
82
90#define VPX_CODEC_USE_PSNR 0x10000
92#define VPX_CODEC_USE_OUTPUT_PARTITION 0x20000
93#define VPX_CODEC_USE_HIGHBITDEPTH 0x40000
99 typedef struct vpx_fixed_buf {
100 void *buf;
101 size_t sz;
102} vpx_fixed_buf_t;
109 typedef int64_t vpx_codec_pts_t;
110
118 typedef uint32_t vpx_codec_frame_flags_t;
119#define VPX_FRAME_IS_KEY 0x1u
122#define VPX_FRAME_IS_DROPPABLE 0x2u
124#define VPX_FRAME_IS_INVISIBLE 0x4u
126#define VPX_FRAME_IS_FRAGMENT 0x8u
127
134 typedef uint32_t vpx_codec_er_flags_t;
136#define VPX_ERROR_RESILIENT_DEFAULT 0x1u
142#define VPX_ERROR_RESILIENT_PARTITIONS 0x2u
143
150 enum vpx_codec_cx_pkt_kind {
151 VPX_CODEC_CX_FRAME_PKT,
152 VPX_CODEC_STATS_PKT,
153 VPX_CODEC_FPMB_STATS_PKT,
154 VPX_CODEC_PSNR_PKT,
155 VPX_CODEC_CUSTOM_PKT = 256
156};
157
163 typedef struct vpx_codec_cx_pkt {
164 enum vpx_codec_cx_pkt_kind kind;
165 union {
166 struct {
167 void *buf;
168 size_t sz;
170 vpx_codec_pts_t pts;
172 unsigned long duration;
173 vpx_codec_frame_flags_t flags;
177 int partition_id;
180 unsigned int width[VPX_SS_MAX_LAYERS];
181 unsigned int height[VPX_SS_MAX_LAYERS];
184 uint8_t spatial_layer_encoded[VPX_SS_MAX_LAYERS];
185 } frame;
186 vpx_fixed_buf_t twopass_stats;
187 vpx_fixed_buf_t firstpass_mb_stats;
188 struct vpx_psnr_pkt {
189 unsigned int samples[4];
190 uint64_t sse[4];
191 double psnr[4];
192 } psnr;
193 vpx_fixed_buf_t raw;
195 /* This packet size is fixed to allow codecs to extend this
196 * interface without having to manage storage for raw packets,
197 * i.e., if it's smaller than 128 bytes, you can store in the
198 * packet list directly.
199 */
200 char pad[128 - sizeof(enum vpx_codec_cx_pkt_kind)];
201 } data;
202} vpx_codec_cx_pkt_t;
209 typedef void (*vpx_codec_enc_output_cx_pkt_cb_fn_t)(vpx_codec_cx_pkt_t *pkt,
210 void *user_data);
211
213 typedef struct vpx_codec_enc_output_cx_cb_pair {
214 vpx_codec_enc_output_cx_pkt_cb_fn_t output_cx_pkt;
215 void *user_priv;
216} vpx_codec_priv_output_cx_pkt_cb_pair_t;
217
222 typedef struct vpx_rational {
223 int num;
224 int den;
225} vpx_rational_t;
228 typedef enum vpx_enc_pass {
229 VPX_RC_ONE_PASS,
230 VPX_RC_FIRST_PASS,
231 VPX_RC_LAST_PASS
232} vpx_enc_pass;
233
235 enum vpx_rc_mode {
236 VPX_VBR,
237 VPX_CBR,
238 VPX_CQ,
239 VPX_Q,
240};
241
250 enum vpx_kf_mode {
251 VPX_KF_FIXED,
252 VPX_KF_AUTO,
253 VPX_KF_DISABLED = 0
254};
255
263 typedef long vpx_enc_frame_flags_t;
264#define VPX_EFLAG_FORCE_KF (1 << 0)
272 typedef struct vpx_codec_enc_cfg {
273 /*
274 * generic settings (g)
275 */
276
281 unsigned int g_usage;
282
289 unsigned int g_threads;
290
299 unsigned int g_profile;
308 unsigned int g_w;
309
317 unsigned int g_h;
318
325 vpx_bit_depth_t g_bit_depth;
326
333 unsigned int g_input_bit_depth;
334
347 struct vpx_rational g_timebase;
348
355 vpx_codec_er_flags_t g_error_resilient;
356
362 enum vpx_enc_pass g_pass;
363
376 unsigned int g_lag_in_frames;
377
378 /*
379 * rate control settings (rc)
380 */
381
395 unsigned int rc_dropframe_thresh;
396
404 unsigned int rc_resize_allowed;
405
411 unsigned int rc_scaled_width;
412
418 unsigned int rc_scaled_height;
419
426 unsigned int rc_resize_up_thresh;
427
434 unsigned int rc_resize_down_thresh;
435
444 enum vpx_rc_mode rc_end_usage;
445
451 vpx_fixed_buf_t rc_twopass_stats_in;
452
458 vpx_fixed_buf_t rc_firstpass_mb_stats_in;
459
464 unsigned int rc_target_bitrate;
465
466 /*
467 * quantizer settings
468 */
469
477 unsigned int rc_min_quantizer;
478
486 unsigned int rc_max_quantizer;
487
488 /*
489 * bitrate tolerance
490 */
491
505 unsigned int rc_undershoot_pct;
506
520 unsigned int rc_overshoot_pct;
521
522 /*
523 * decoder buffer model parameters
524 */
525
535 unsigned int rc_buf_sz;
536
544 unsigned int rc_buf_initial_sz;
545
553 unsigned int rc_buf_optimal_sz;
554
555 /*
556 * 2 pass rate control parameters
557 */
558
567 unsigned int rc_2pass_vbr_bias_pct;
568
574 unsigned int rc_2pass_vbr_minsection_pct;
575
581 unsigned int rc_2pass_vbr_maxsection_pct;
582
588 unsigned int rc_2pass_vbr_corpus_complexity;
589
590 /*
591 * keyframing settings (kf)
592 */
593
600 enum vpx_kf_mode kf_mode;
601
609 unsigned int kf_min_dist;
610
618 unsigned int kf_max_dist;
619
620 /*
621 * Spatial scalability settings (ss)
622 */
623
628 unsigned int ss_number_layers;
629
635 int ss_enable_auto_alt_ref[VPX_SS_MAX_LAYERS];
636
642 unsigned int ss_target_bitrate[VPX_SS_MAX_LAYERS];
643
648 unsigned int ts_number_layers;
649
655 unsigned int ts_target_bitrate[VPX_TS_MAX_LAYERS];
656
662 unsigned int ts_rate_decimator[VPX_TS_MAX_LAYERS];
663
671 unsigned int ts_periodicity;
672
680 unsigned int ts_layer_id[VPX_TS_MAX_PERIODICITY];
681
688 unsigned int layer_target_bitrate[VPX_MAX_LAYERS];
689
697 int temporal_layering_mode;
698
703 int use_vizier_rc_params;
704
712 vpx_rational_t active_wq_factor;
713
721 vpx_rational_t err_per_mb_factor;
722
730 vpx_rational_t sr_default_decay_limit;
731
739 vpx_rational_t sr_diff_factor;
740
748 vpx_rational_t kf_err_per_mb_factor;
749
757 vpx_rational_t kf_frame_min_boost_factor;
758
767 vpx_rational_t kf_frame_max_boost_first_factor;
768
776 vpx_rational_t kf_frame_max_boost_subs_factor;
777
785 vpx_rational_t kf_max_total_boost_factor;
786
794 vpx_rational_t gf_max_total_boost_factor;
795
803 vpx_rational_t gf_frame_max_boost_factor;
804
812 vpx_rational_t zm_factor;
813
822 vpx_rational_t rd_mult_inter_qp_fac;
823
832 vpx_rational_t rd_mult_arf_qp_fac;
833
842 vpx_rational_t rd_mult_key_qp_fac;
843} vpx_codec_enc_cfg_t;
850 typedef struct vpx_svc_parameters {
851 int max_quantizers[VPX_MAX_LAYERS];
852 int min_quantizers[VPX_MAX_LAYERS];
853 int scaling_factor_num[VPX_MAX_LAYERS];
854 int scaling_factor_den[VPX_MAX_LAYERS];
855 int speed_per_layer[VPX_MAX_LAYERS];
856 int temporal_layering_mode;
857 int loopfilter_ctrl[VPX_MAX_LAYERS];
858} vpx_svc_extra_cfg_t;
859
885 vpx_codec_err_t vpx_codec_enc_init_ver(vpx_codec_ctx_t *ctx,
886 vpx_codec_iface_t *iface,
887 const vpx_codec_enc_cfg_t *cfg,
888 vpx_codec_flags_t flags, int ver);
889
894#define vpx_codec_enc_init(ctx, iface, cfg, flags) \
895 vpx_codec_enc_init_ver(ctx, iface, cfg, flags, VPX_ENCODER_ABI_VERSION)
896
917 vpx_codec_err_t vpx_codec_enc_init_multi_ver(
918 vpx_codec_ctx_t *ctx, vpx_codec_iface_t *iface, vpx_codec_enc_cfg_t *cfg,
919 int num_enc, vpx_codec_flags_t flags, vpx_rational_t *dsf, int ver);
920
925#define vpx_codec_enc_init_multi(ctx, iface, cfg, num_enc, flags, dsf) \
926 vpx_codec_enc_init_multi_ver(ctx, iface, cfg, num_enc, flags, dsf, \
927 VPX_ENCODER_ABI_VERSION)
928
948 vpx_codec_err_t vpx_codec_enc_config_default(vpx_codec_iface_t *iface,
949 vpx_codec_enc_cfg_t *cfg,
950 unsigned int usage);
951
966 vpx_codec_err_t vpx_codec_enc_config_set(vpx_codec_ctx_t *ctx,
967 const vpx_codec_enc_cfg_t *cfg);
968
989 vpx_fixed_buf_t *vpx_codec_get_global_headers(vpx_codec_ctx_t *ctx);
990
992#define VPX_DL_REALTIME (1)
994#define VPX_DL_GOOD_QUALITY (1000000)
996#define VPX_DL_BEST_QUALITY (0)
1033 vpx_codec_err_t vpx_codec_encode(vpx_codec_ctx_t *ctx, const vpx_image_t *img,
1034 vpx_codec_pts_t pts, unsigned long duration,
1035 vpx_enc_frame_flags_t flags,
1036 unsigned long deadline);
1037
1081 vpx_codec_err_t vpx_codec_set_cx_data_buf(vpx_codec_ctx_t *ctx,
1082 const vpx_fixed_buf_t *buf,
1083 unsigned int pad_before,
1084 unsigned int pad_after);
1085
1109 const vpx_codec_cx_pkt_t *vpx_codec_get_cx_data(vpx_codec_ctx_t *ctx,
1110 vpx_codec_iter_t *iter);
1111
1124 const vpx_image_t *vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx);
1125
1127#ifdef __cplusplus
1128}
1129#endif
1130#endif // VPX_VPX_VPX_ENCODER_H_
vpx_codec_flags_t
long vpx_codec_flags_t
Initialization-time Feature Enabling.
Definition vpx_codec.h:170
vpx_codec_iter_t
const void * vpx_codec_iter_t
Iterator.
Definition vpx_codec.h:190
vpx_bit_depth_t
enum vpx_bit_depth vpx_bit_depth_t
Bit depth for codecThis enumeration determines the bit depth of the codec.
vpx_codec_err_t
vpx_codec_err_t
Algorithm return codes.
Definition vpx_codec.h:93
vpx_codec_iface_t
const struct vpx_codec_iface vpx_codec_iface_t
Codec interface structure.
Definition vpx_codec.h:177
vpx_codec_enc_init_ver
vpx_codec_err_t vpx_codec_enc_init_ver(vpx_codec_ctx_t *ctx, vpx_codec_iface_t *iface, const vpx_codec_enc_cfg_t *cfg, vpx_codec_flags_t flags, int ver)
Initialize an encoder instance.
vpx_codec_enc_init_multi_ver
vpx_codec_err_t vpx_codec_enc_init_multi_ver(vpx_codec_ctx_t *ctx, vpx_codec_iface_t *iface, vpx_codec_enc_cfg_t *cfg, int num_enc, vpx_codec_flags_t flags, vpx_rational_t *dsf, int ver)
Initialize multi-encoder instance.
vpx_codec_enc_cfg_t
struct vpx_codec_enc_cfg vpx_codec_enc_cfg_t
Encoder configuration structure.
VPX_TS_MAX_LAYERS
#define VPX_TS_MAX_LAYERS
Definition vpx_encoder.h:42
vpx_codec_cx_pkt_kind
vpx_codec_cx_pkt_kind
Encoder output packet variants.
Definition vpx_encoder.h:150
vpx_codec_enc_output_cx_pkt_cb_fn_t
void(* vpx_codec_enc_output_cx_pkt_cb_fn_t)(vpx_codec_cx_pkt_t *pkt, void *user_data)
Encoder return output buffer callback.
Definition vpx_encoder.h:209
vpx_enc_pass
vpx_enc_pass
Multi-pass Encoding Pass.
Definition vpx_encoder.h:228
vpx_codec_get_preview_frame
const vpx_image_t * vpx_codec_get_preview_frame(vpx_codec_ctx_t *ctx)
Get Preview Frame.
vpx_svc_extra_cfg_t
struct vpx_svc_parameters vpx_svc_extra_cfg_t
vp9 svc extra configure parameters
vpx_fixed_buf_t
struct vpx_fixed_buf vpx_fixed_buf_t
Generic fixed size buffer structure.
vpx_codec_get_cx_data
const vpx_codec_cx_pkt_t * vpx_codec_get_cx_data(vpx_codec_ctx_t *ctx, vpx_codec_iter_t *iter)
Encoded data iterator.
VPX_TS_MAX_PERIODICITY
#define VPX_TS_MAX_PERIODICITY
Definition vpx_encoder.h:39
vpx_codec_priv_output_cx_pkt_cb_pair_t
struct vpx_codec_enc_output_cx_cb_pair vpx_codec_priv_output_cx_pkt_cb_pair_t
Callback function pointer / user data pair storage.
VPX_MAX_LAYERS
#define VPX_MAX_LAYERS
Definition vpx_encoder.h:45
vpx_codec_er_flags_t
uint32_t vpx_codec_er_flags_t
Error Resilient flags.
Definition vpx_encoder.h:134
vpx_codec_pts_t
int64_t vpx_codec_pts_t
Time Stamp Type.
Definition vpx_encoder.h:109
VPX_SS_MAX_LAYERS
#define VPX_SS_MAX_LAYERS
Definition vpx_encoder.h:48
vpx_enc_frame_flags_t
long vpx_enc_frame_flags_t
Encoded Frame Flags.
Definition vpx_encoder.h:263
vpx_codec_enc_config_default
vpx_codec_err_t vpx_codec_enc_config_default(vpx_codec_iface_t *iface, vpx_codec_enc_cfg_t *cfg, unsigned int usage)
Get a default configuration.
vpx_kf_mode
vpx_kf_mode
Keyframe placement mode.
Definition vpx_encoder.h:250
vpx_codec_cx_pkt_t
struct vpx_codec_cx_pkt vpx_codec_cx_pkt_t
Encoder output packet.
vpx_codec_frame_flags_t
uint32_t vpx_codec_frame_flags_t
Compressed Frame Flags.
Definition vpx_encoder.h:118
vpx_codec_enc_config_set
vpx_codec_err_t vpx_codec_enc_config_set(vpx_codec_ctx_t *ctx, const vpx_codec_enc_cfg_t *cfg)
Set or change configuration.
vpx_codec_get_global_headers
vpx_fixed_buf_t * vpx_codec_get_global_headers(vpx_codec_ctx_t *ctx)
Get global stream headers.
vpx_rational_t
struct vpx_rational vpx_rational_t
Rational Number.
vpx_codec_set_cx_data_buf
vpx_codec_err_t vpx_codec_set_cx_data_buf(vpx_codec_ctx_t *ctx, const vpx_fixed_buf_t *buf, unsigned int pad_before, unsigned int pad_after)
Set compressed data output buffer.
vpx_rc_mode
vpx_rc_mode
Rate control mode.
Definition vpx_encoder.h:235
vpx_codec_encode
vpx_codec_err_t vpx_codec_encode(vpx_codec_ctx_t *ctx, const vpx_image_t *img, vpx_codec_pts_t pts, unsigned long duration, vpx_enc_frame_flags_t flags, unsigned long deadline)
Encode a frame.
VPX_CODEC_PSNR_PKT
@ VPX_CODEC_PSNR_PKT
Definition vpx_encoder.h:154
VPX_CODEC_CX_FRAME_PKT
@ VPX_CODEC_CX_FRAME_PKT
Definition vpx_encoder.h:151
VPX_CODEC_STATS_PKT
@ VPX_CODEC_STATS_PKT
Definition vpx_encoder.h:152
VPX_CODEC_CUSTOM_PKT
@ VPX_CODEC_CUSTOM_PKT
Definition vpx_encoder.h:155
VPX_CODEC_FPMB_STATS_PKT
@ VPX_CODEC_FPMB_STATS_PKT
Definition vpx_encoder.h:153
VPX_RC_LAST_PASS
@ VPX_RC_LAST_PASS
Definition vpx_encoder.h:231
VPX_RC_ONE_PASS
@ VPX_RC_ONE_PASS
Definition vpx_encoder.h:229
VPX_RC_FIRST_PASS
@ VPX_RC_FIRST_PASS
Definition vpx_encoder.h:230
VPX_KF_DISABLED
@ VPX_KF_DISABLED
Definition vpx_encoder.h:253
VPX_KF_FIXED
@ VPX_KF_FIXED
Definition vpx_encoder.h:251
VPX_KF_AUTO
@ VPX_KF_AUTO
Definition vpx_encoder.h:252
VPX_Q
@ VPX_Q
Definition vpx_encoder.h:239
VPX_CQ
@ VPX_CQ
Definition vpx_encoder.h:238
VPX_CBR
@ VPX_CBR
Definition vpx_encoder.h:237
VPX_VBR
@ VPX_VBR
Definition vpx_encoder.h:236
vpx_codec_ctx
Codec context structure.
Definition vpx_codec.h:200
vpx_codec_cx_pkt
Encoder output packet.
Definition vpx_encoder.h:163
vpx_codec_cx_pkt::pad
char pad[128 - sizeof(enum vpx_codec_cx_pkt_kind)]
Definition vpx_encoder.h:200
vpx_codec_cx_pkt::flags
vpx_codec_frame_flags_t flags
Definition vpx_encoder.h:173
vpx_codec_cx_pkt::twopass_stats
vpx_fixed_buf_t twopass_stats
Definition vpx_encoder.h:186
vpx_codec_cx_pkt::kind
enum vpx_codec_cx_pkt_kind kind
Definition vpx_encoder.h:164
vpx_codec_cx_pkt::psnr
double psnr[4]
Definition vpx_encoder.h:191
vpx_codec_cx_pkt::width
unsigned int width[5]
Width and height of frames in this packet. VP8 will only use the first one.
Definition vpx_encoder.h:180
vpx_codec_cx_pkt::frame
struct vpx_codec_cx_pkt::@1::@2 frame
vpx_codec_cx_pkt::spatial_layer_encoded
uint8_t spatial_layer_encoded[5]
Flag to indicate if spatial layer frame in this packet is encoded or dropped. VP8 will always be set ...
Definition vpx_encoder.h:184
vpx_codec_cx_pkt::firstpass_mb_stats
vpx_fixed_buf_t firstpass_mb_stats
Definition vpx_encoder.h:187
vpx_codec_cx_pkt::sz
size_t sz
Definition vpx_encoder.h:168
vpx_codec_cx_pkt::buf
void * buf
Definition vpx_encoder.h:167
vpx_codec_cx_pkt::pts
vpx_codec_pts_t pts
time stamp to show frame (in timebase units)
Definition vpx_encoder.h:170
vpx_codec_cx_pkt::raw
vpx_fixed_buf_t raw
Definition vpx_encoder.h:193
vpx_codec_cx_pkt::height
unsigned int height[5]
Definition vpx_encoder.h:181
vpx_codec_cx_pkt::partition_id
int partition_id
the partition id defines the decoding order of the partitions. Only applicable when "output partition...
Definition vpx_encoder.h:177
vpx_codec_cx_pkt::duration
unsigned long duration
duration to show frame (in timebase units)
Definition vpx_encoder.h:172
vpx_codec_cx_pkt::data
union vpx_codec_cx_pkt::@1 data
vpx_codec_enc_cfg
Encoder configuration structure.
Definition vpx_encoder.h:272
vpx_codec_enc_cfg::rd_mult_arf_qp_fac
vpx_rational_t rd_mult_arf_qp_fac
Rate-distortion multiplier for alt-ref frames. The multiplier is a crucial parameter in the calculati...
Definition vpx_encoder.h:832
vpx_codec_enc_cfg::rc_resize_allowed
unsigned int rc_resize_allowed
Enable/disable spatial resampling, if supported by the codec.
Definition vpx_encoder.h:404
vpx_codec_enc_cfg::temporal_layering_mode
int temporal_layering_mode
Temporal layering mode indicating which temporal layering scheme to use.
Definition vpx_encoder.h:697
vpx_codec_enc_cfg::kf_min_dist
unsigned int kf_min_dist
Keyframe minimum interval.
Definition vpx_encoder.h:609
vpx_codec_enc_cfg::sr_default_decay_limit
vpx_rational_t sr_default_decay_limit
Second reference default decay limit.
Definition vpx_encoder.h:730
vpx_codec_enc_cfg::rc_min_quantizer
unsigned int rc_min_quantizer
Minimum (Best Quality) Quantizer.
Definition vpx_encoder.h:477
vpx_codec_enc_cfg::ts_number_layers
unsigned int ts_number_layers
Number of temporal coding layers.
Definition vpx_encoder.h:648
vpx_codec_enc_cfg::kf_max_total_boost_factor
vpx_rational_t kf_max_total_boost_factor
Keyframe maximum total boost adjustment factor.
Definition vpx_encoder.h:785
vpx_codec_enc_cfg::rc_twopass_stats_in
vpx_fixed_buf_t rc_twopass_stats_in
Two-pass stats buffer.
Definition vpx_encoder.h:451
vpx_codec_enc_cfg::rc_resize_down_thresh
unsigned int rc_resize_down_thresh
Spatial resampling down watermark.
Definition vpx_encoder.h:434
vpx_codec_enc_cfg::ss_number_layers
unsigned int ss_number_layers
Number of spatial coding layers.
Definition vpx_encoder.h:628
vpx_codec_enc_cfg::rc_2pass_vbr_bias_pct
unsigned int rc_2pass_vbr_bias_pct
Two-pass mode CBR/VBR bias.
Definition vpx_encoder.h:567
vpx_codec_enc_cfg::rc_2pass_vbr_minsection_pct
unsigned int rc_2pass_vbr_minsection_pct
Two-pass mode per-GOP minimum bitrate.
Definition vpx_encoder.h:574
vpx_codec_enc_cfg::ss_enable_auto_alt_ref
int ss_enable_auto_alt_ref[5]
Enable auto alt reference flags for each spatial layer.
Definition vpx_encoder.h:635
vpx_codec_enc_cfg::rc_scaled_width
unsigned int rc_scaled_width
Internal coded frame width.
Definition vpx_encoder.h:411
vpx_codec_enc_cfg::rd_mult_key_qp_fac
vpx_rational_t rd_mult_key_qp_fac
Rate-distortion multiplier for key frames. The multiplier is a crucial parameter in the calculation o...
Definition vpx_encoder.h:842
vpx_codec_enc_cfg::g_profile
unsigned int g_profile
Bitstream profile to use.
Definition vpx_encoder.h:299
vpx_codec_enc_cfg::layer_target_bitrate
unsigned int layer_target_bitrate[12]
Target bitrate for each spatial/temporal layer.
Definition vpx_encoder.h:688
vpx_codec_enc_cfg::g_h
unsigned int g_h
Height of the frame.
Definition vpx_encoder.h:317
vpx_codec_enc_cfg::kf_mode
enum vpx_kf_mode kf_mode
Keyframe placement mode.
Definition vpx_encoder.h:600
vpx_codec_enc_cfg::ts_layer_id
unsigned int ts_layer_id[16]
Template defining the membership of frames to temporal layers.
Definition vpx_encoder.h:680
vpx_codec_enc_cfg::g_error_resilient
vpx_codec_er_flags_t g_error_resilient
Enable error resilient modes.
Definition vpx_encoder.h:355
vpx_codec_enc_cfg::ts_periodicity
unsigned int ts_periodicity
Length of the sequence defining frame temporal layer membership.
Definition vpx_encoder.h:671
vpx_codec_enc_cfg::rc_overshoot_pct
unsigned int rc_overshoot_pct
Rate control adaptation overshoot control.
Definition vpx_encoder.h:520
vpx_codec_enc_cfg::rc_firstpass_mb_stats_in
vpx_fixed_buf_t rc_firstpass_mb_stats_in
first pass mb stats buffer.
Definition vpx_encoder.h:458
vpx_codec_enc_cfg::rc_scaled_height
unsigned int rc_scaled_height
Internal coded frame height.
Definition vpx_encoder.h:418
vpx_codec_enc_cfg::g_usage
unsigned int g_usage
Deprecated: Algorithm specific "usage" value.
Definition vpx_encoder.h:281
vpx_codec_enc_cfg::g_w
unsigned int g_w
Width of the frame.
Definition vpx_encoder.h:308
vpx_codec_enc_cfg::ss_target_bitrate
unsigned int ss_target_bitrate[5]
Target bitrate for each spatial layer.
Definition vpx_encoder.h:642
vpx_codec_enc_cfg::rc_buf_sz
unsigned int rc_buf_sz
Decoder Buffer Size.
Definition vpx_encoder.h:535
vpx_codec_enc_cfg::rc_dropframe_thresh
unsigned int rc_dropframe_thresh
Temporal resampling configuration, if supported by the codec.
Definition vpx_encoder.h:395
vpx_codec_enc_cfg::g_timebase
struct vpx_rational g_timebase
Stream timebase units.
Definition vpx_encoder.h:347
vpx_codec_enc_cfg::g_pass
enum vpx_enc_pass g_pass
Multi-pass Encoding Mode.
Definition vpx_encoder.h:362
vpx_codec_enc_cfg::kf_frame_max_boost_first_factor
vpx_rational_t kf_frame_max_boost_first_factor
Keyframe maximum boost adjustment factor, for the first keyframe in a chunk.
Definition vpx_encoder.h:767
vpx_codec_enc_cfg::rc_resize_up_thresh
unsigned int rc_resize_up_thresh
Spatial resampling up watermark.
Definition vpx_encoder.h:426
vpx_codec_enc_cfg::rc_max_quantizer
unsigned int rc_max_quantizer
Maximum (Worst Quality) Quantizer.
Definition vpx_encoder.h:486
vpx_codec_enc_cfg::rc_2pass_vbr_corpus_complexity
unsigned int rc_2pass_vbr_corpus_complexity
Two-pass corpus vbr mode complexity control Used only in VP9: A value representing the corpus midpoin...
Definition vpx_encoder.h:588
vpx_codec_enc_cfg::zm_factor
vpx_rational_t zm_factor
Zero motion power factor.
Definition vpx_encoder.h:812
vpx_codec_enc_cfg::g_lag_in_frames
unsigned int g_lag_in_frames
Allow lagged encoding.
Definition vpx_encoder.h:376
vpx_codec_enc_cfg::rc_end_usage
enum vpx_rc_mode rc_end_usage
Rate control algorithm to use.
Definition vpx_encoder.h:444
vpx_codec_enc_cfg::active_wq_factor
vpx_rational_t active_wq_factor
Active worst quality factor.
Definition vpx_encoder.h:712
vpx_codec_enc_cfg::gf_max_total_boost_factor
vpx_rational_t gf_max_total_boost_factor
Golden frame maximum total boost adjustment factor.
Definition vpx_encoder.h:794
vpx_codec_enc_cfg::rc_buf_initial_sz
unsigned int rc_buf_initial_sz
Decoder Buffer Initial Size.
Definition vpx_encoder.h:544
vpx_codec_enc_cfg::g_bit_depth
vpx_bit_depth_t g_bit_depth
Bit-depth of the codec.
Definition vpx_encoder.h:325
vpx_codec_enc_cfg::gf_frame_max_boost_factor
vpx_rational_t gf_frame_max_boost_factor
Golden frame maximum boost adjustment factor.
Definition vpx_encoder.h:803
vpx_codec_enc_cfg::rc_buf_optimal_sz
unsigned int rc_buf_optimal_sz
Decoder Buffer Optimal Size.
Definition vpx_encoder.h:553
vpx_codec_enc_cfg::use_vizier_rc_params
int use_vizier_rc_params
A flag indicating whether to use external rate control parameters. By default is 0....
Definition vpx_encoder.h:703
vpx_codec_enc_cfg::rc_2pass_vbr_maxsection_pct
unsigned int rc_2pass_vbr_maxsection_pct
Two-pass mode per-GOP maximum bitrate.
Definition vpx_encoder.h:581
vpx_codec_enc_cfg::rc_target_bitrate
unsigned int rc_target_bitrate
Target data rate.
Definition vpx_encoder.h:464
vpx_codec_enc_cfg::ts_target_bitrate
unsigned int ts_target_bitrate[5]
Target bitrate for each temporal layer.
Definition vpx_encoder.h:655
vpx_codec_enc_cfg::err_per_mb_factor
vpx_rational_t err_per_mb_factor
Error per macroblock adjustment factor.
Definition vpx_encoder.h:721
vpx_codec_enc_cfg::g_input_bit_depth
unsigned int g_input_bit_depth
Bit-depth of the input frames.
Definition vpx_encoder.h:333
vpx_codec_enc_cfg::kf_frame_min_boost_factor
vpx_rational_t kf_frame_min_boost_factor
Keyframe minimum boost adjustment factor.
Definition vpx_encoder.h:757
vpx_codec_enc_cfg::sr_diff_factor
vpx_rational_t sr_diff_factor
Second reference difference factor.
Definition vpx_encoder.h:739
vpx_codec_enc_cfg::kf_err_per_mb_factor
vpx_rational_t kf_err_per_mb_factor
Keyframe error per macroblock adjustment factor.
Definition vpx_encoder.h:748
vpx_codec_enc_cfg::rc_undershoot_pct
unsigned int rc_undershoot_pct
Rate control adaptation undershoot control.
Definition vpx_encoder.h:505
vpx_codec_enc_cfg::ts_rate_decimator
unsigned int ts_rate_decimator[5]
Frame rate decimation factor for each temporal layer.
Definition vpx_encoder.h:662
vpx_codec_enc_cfg::kf_max_dist
unsigned int kf_max_dist
Keyframe maximum interval.
Definition vpx_encoder.h:618
vpx_codec_enc_cfg::rd_mult_inter_qp_fac
vpx_rational_t rd_mult_inter_qp_fac
Rate-distortion multiplier for inter frames. The multiplier is a crucial parameter in the calculation...
Definition vpx_encoder.h:822
vpx_codec_enc_cfg::kf_frame_max_boost_subs_factor
vpx_rational_t kf_frame_max_boost_subs_factor
Keyframe maximum boost adjustment factor, for subsequent keyframes.
Definition vpx_encoder.h:776
vpx_codec_enc_cfg::g_threads
unsigned int g_threads
Maximum number of threads to use.
Definition vpx_encoder.h:289
vpx_codec_enc_output_cx_cb_pair
Callback function pointer / user data pair storage.
Definition vpx_encoder.h:213
vpx_codec_enc_output_cx_cb_pair::user_priv
void * user_priv
Definition vpx_encoder.h:215
vpx_codec_enc_output_cx_cb_pair::output_cx_pkt
vpx_codec_enc_output_cx_pkt_cb_fn_t output_cx_pkt
Definition vpx_encoder.h:214
vpx_fixed_buf
Generic fixed size buffer structure.
Definition vpx_encoder.h:99
vpx_fixed_buf::sz
size_t sz
Definition vpx_encoder.h:101
vpx_fixed_buf::buf
void * buf
Definition vpx_encoder.h:100
vpx_image
Image Descriptor.
Definition vpx_image.h:72
vpx_rational
Rational Number.
Definition vpx_encoder.h:222
vpx_rational::den
int den
Definition vpx_encoder.h:224
vpx_rational::num
int num
Definition vpx_encoder.h:223
vpx_svc_parameters
vp9 svc extra configure parameters
Definition vpx_encoder.h:850
vpx_svc_parameters::min_quantizers
int min_quantizers[12]
Definition vpx_encoder.h:852
vpx_svc_parameters::scaling_factor_num
int scaling_factor_num[12]
Definition vpx_encoder.h:853
vpx_svc_parameters::speed_per_layer
int speed_per_layer[12]
Definition vpx_encoder.h:855
vpx_svc_parameters::max_quantizers
int max_quantizers[12]
Definition vpx_encoder.h:851
vpx_svc_parameters::scaling_factor_den
int scaling_factor_den[12]
Definition vpx_encoder.h:854
vpx_svc_parameters::loopfilter_ctrl
int loopfilter_ctrl[12]
Definition vpx_encoder.h:857
vpx_svc_parameters::temporal_layering_mode
int temporal_layering_mode
Definition vpx_encoder.h:856
vpx_codec.h
Describes the codec algorithm interface to applications.
vpx_tpl.h
Describes the TPL stats descriptor and associated operations.