AOMedia Codec SDK: aom/aom_encoder.h Source File

AOMedia Codec SDK

aom_encoder.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
3 *
4 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10 */
11 #ifndef AOM_AOM_AOM_ENCODER_H_
12 #define AOM_AOM_AOM_ENCODER_H_
13
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32
33 #include "aom/aom_codec.h"
34
43 #define AOM_ENCODER_ABI_VERSION \
44 (8 + AOM_CODEC_ABI_VERSION)
55 #define AOM_CODEC_CAP_PSNR 0x10000
59 #define AOM_CODEC_CAP_HIGHBITDEPTH 0x40000
60
68 #define AOM_CODEC_USE_PSNR 0x10000
70 #define AOM_CODEC_USE_HIGHBITDEPTH 0x40000
76 typedef struct aom_fixed_buf {
77 void *buf;
78 size_t sz;
79 } aom_fixed_buf_t;
88 typedef uint32_t aom_codec_frame_flags_t;
89 #define AOM_FRAME_IS_KEY 0x1
92 #define AOM_FRAME_IS_DROPPABLE 0x2
93
94 #define AOM_FRAME_IS_INTRAONLY 0x10
95
96 #define AOM_FRAME_IS_SWITCH 0x20
97
98 #define AOM_FRAME_IS_ERROR_RESILIENT 0x40
99
100 #define AOM_FRAME_IS_DELAYED_RANDOM_ACCESS_POINT 0x80
101
108 typedef uint32_t aom_codec_er_flags_t;
110 #define AOM_ERROR_RESILIENT_DEFAULT 0x1
111
118 enum aom_codec_cx_pkt_kind {
119 AOM_CODEC_CX_FRAME_PKT,
120 AOM_CODEC_STATS_PKT,
121 AOM_CODEC_FPMB_STATS_PKT,
122 AOM_CODEC_PSNR_PKT,
123 AOM_CODEC_CUSTOM_PKT = 256
124 };
125
131 typedef struct aom_codec_cx_pkt {
132 enum aom_codec_cx_pkt_kind kind;
133 union {
134 struct {
135 void *buf;
136 size_t sz;
138 aom_codec_pts_t pts;
140 unsigned long duration;
141 aom_codec_frame_flags_t flags;
145 int partition_id;
147 size_t vis_frame_size;
148 } frame;
149 aom_fixed_buf_t twopass_stats;
150 aom_fixed_buf_t firstpass_mb_stats;
151 struct aom_psnr_pkt {
152 unsigned int samples[4];
153 uint64_t sse[4];
154 double psnr[4];
155 } psnr;
156 aom_fixed_buf_t raw;
158 /* This packet size is fixed to allow codecs to extend this
159 * interface without having to manage storage for raw packets,
160 * i.e., if it's smaller than 128 bytes, you can store in the
161 * packet list directly.
162 */
163 char pad[128 - sizeof(enum aom_codec_cx_pkt_kind)];
164 } data;
165 } aom_codec_cx_pkt_t;
171 typedef struct aom_rational {
172 int num;
173 int den;
174 } aom_rational_t;
177 enum aom_enc_pass {
178 AOM_RC_ONE_PASS,
179 AOM_RC_FIRST_PASS,
180 AOM_RC_LAST_PASS
181 };
182
184 enum aom_rc_mode {
185 AOM_VBR,
186 AOM_CBR,
187 AOM_CQ,
188 AOM_Q,
189 };
190
199 enum aom_kf_mode {
200 AOM_KF_FIXED,
201 AOM_KF_AUTO,
202 AOM_KF_DISABLED = 0
203 };
204
210 typedef struct cfg_options {
214 unsigned int init_by_cfg_file;
218 unsigned int super_block_size;
222 unsigned int max_partition_size;
226 unsigned int min_partition_size;
230 unsigned int disable_ab_partition_type;
234 unsigned int disable_rect_partition_type;
238 unsigned int disable_1to4_partition_type;
242 unsigned int disable_flip_idtx;
246 unsigned int disable_cdef;
250 unsigned int disable_lr;
254 unsigned int disable_obmc;
258 unsigned int disable_warp_motion;
262 unsigned int disable_global_motion;
266 unsigned int disable_dist_wtd_comp;
270 unsigned int disable_diff_wtd_comp;
274 unsigned int disable_inter_intra_comp;
278 unsigned int disable_masked_comp;
282 unsigned int disable_one_sided_comp;
286 unsigned int disable_palette;
290 unsigned int disable_intrabc;
294 unsigned int disable_cfl;
298 unsigned int disable_smooth_intra;
302 unsigned int disable_filter_intra;
306 unsigned int disable_dual_filter;
310 unsigned int disable_intra_angle_delta;
314 unsigned int disable_intra_edge_filter;
318 unsigned int disable_tx_64x64;
322 unsigned int disable_smooth_inter_intra;
326 unsigned int disable_inter_inter_wedge;
330 unsigned int disable_inter_intra_wedge;
334 unsigned int disable_paeth_intra;
338 unsigned int disable_trellis_quant;
342 unsigned int disable_ref_frame_mv;
346 unsigned int reduced_reference_set;
350 unsigned int reduced_tx_type_set;
351 } cfg_options_t;
352
360 typedef long aom_enc_frame_flags_t;
361 #define AOM_EFLAG_FORCE_KF (1 << 0)
369 typedef struct aom_codec_enc_cfg {
370 /*
371 * generic settings (g)
372 */
373
381 unsigned int g_usage;
382
389 unsigned int g_threads;
390
399 unsigned int g_profile;
408 unsigned int g_w;
409
417 unsigned int g_h;
418
422 unsigned int g_limit;
423
429 unsigned int g_forced_max_frame_width;
430
436 unsigned int g_forced_max_frame_height;
437
444 aom_bit_depth_t g_bit_depth;
445
452 unsigned int g_input_bit_depth;
453
466 struct aom_rational g_timebase;
467
474 aom_codec_er_flags_t g_error_resilient;
475
481 enum aom_enc_pass g_pass;
482
495 unsigned int g_lag_in_frames;
496
497 /*
498 * rate control settings (rc)
499 */
500
517 unsigned int rc_dropframe_thresh;
518
526 unsigned int rc_resize_mode;
527
534 unsigned int rc_resize_denominator;
535
542 unsigned int rc_resize_kf_denominator;
543
552 unsigned int rc_superres_mode;
553
564 unsigned int rc_superres_denominator;
565
574 unsigned int rc_superres_kf_denominator;
575
583 unsigned int rc_superres_qthresh;
584
592 unsigned int rc_superres_kf_qthresh;
593
602 enum aom_rc_mode rc_end_usage;
603
609 aom_fixed_buf_t rc_twopass_stats_in;
610
616 aom_fixed_buf_t rc_firstpass_mb_stats_in;
617
622 unsigned int rc_target_bitrate;
623
624 /*
625 * quantizer settings
626 */
627
636 unsigned int rc_min_quantizer;
637
646 unsigned int rc_max_quantizer;
647
648 /*
649 * bitrate tolerance
650 */
651
662 unsigned int rc_undershoot_pct;
663
674 unsigned int rc_overshoot_pct;
675
676 /*
677 * decoder buffer model parameters
678 */
679
689 unsigned int rc_buf_sz;
690
698 unsigned int rc_buf_initial_sz;
699
707 unsigned int rc_buf_optimal_sz;
708
709 /*
710 * 2 pass rate control parameters
711 */
712
721 unsigned int rc_2pass_vbr_bias_pct;
722
728 unsigned int rc_2pass_vbr_minsection_pct;
729
735 unsigned int rc_2pass_vbr_maxsection_pct;
736
737 /*
738 * keyframing settings (kf)
739 */
740
744 int fwd_kf_enabled;
745
752 enum aom_kf_mode kf_mode;
753
761 unsigned int kf_min_dist;
762
770 unsigned int kf_max_dist;
771
777 unsigned int sframe_dist;
778
792 unsigned int sframe_mode;
793
800 unsigned int large_scale_tile;
801
807 unsigned int monochrome;
808
816 unsigned int full_still_picture_hdr;
817
824 unsigned int save_as_annexb;
825
832 int tile_width_count;
833
840 int tile_height_count;
841
846 #define MAX_TILE_WIDTHS 64 // maximum tile width array length
847
853 int tile_widths[MAX_TILE_WIDTHS];
854
859 #define MAX_TILE_HEIGHTS 64 // maximum tile height array length
860
866 int tile_heights[MAX_TILE_HEIGHTS];
867
880 unsigned int use_fixed_qp_offsets;
881
886 #define FIXED_QP_OFFSET_COUNT 5
887
902 int fixed_qp_offsets[FIXED_QP_OFFSET_COUNT];
903
907 cfg_options_t encoder_cfg;
908 } aom_codec_enc_cfg_t;
932 aom_codec_err_t aom_codec_enc_init_ver(aom_codec_ctx_t *ctx,
933 aom_codec_iface_t *iface,
934 const aom_codec_enc_cfg_t *cfg,
935 aom_codec_flags_t flags, int ver);
936
941 #define aom_codec_enc_init(ctx, iface, cfg, flags) \
942 aom_codec_enc_init_ver(ctx, iface, cfg, flags, AOM_ENCODER_ABI_VERSION)
943
965 aom_codec_err_t aom_codec_enc_config_default(aom_codec_iface_t *iface,
966 aom_codec_enc_cfg_t *cfg,
967 unsigned int usage);
968
983 aom_codec_err_t aom_codec_enc_config_set(aom_codec_ctx_t *ctx,
984 const aom_codec_enc_cfg_t *cfg);
985
1009 aom_fixed_buf_t *aom_codec_get_global_headers(aom_codec_ctx_t *ctx);
1010
1012 #define AOM_USAGE_GOOD_QUALITY (0)
1013
1014 #define AOM_USAGE_REALTIME (1)
1015
1040 aom_codec_err_t aom_codec_encode(aom_codec_ctx_t *ctx, const aom_image_t *img,
1041 aom_codec_pts_t pts, unsigned long duration,
1042 aom_enc_frame_flags_t flags);
1043
1087 aom_codec_err_t aom_codec_set_cx_data_buf(aom_codec_ctx_t *ctx,
1088 const aom_fixed_buf_t *buf,
1089 unsigned int pad_before,
1090 unsigned int pad_after);
1091
1115 const aom_codec_cx_pkt_t *aom_codec_get_cx_data(aom_codec_ctx_t *ctx,
1116 aom_codec_iter_t *iter);
1117
1130 const aom_image_t *aom_codec_get_preview_frame(aom_codec_ctx_t *ctx);
1131
1133 #ifdef __cplusplus
1134 }
1135 #endif
1136 #endif // AOM_AOM_AOM_ENCODER_H_
aom_codec_enc_cfg::rc_superres_kf_qthresh
unsigned int rc_superres_kf_qthresh
Keyframe super-resolution q threshold.
Definition: aom_encoder.h:592
aom_codec_cx_pkt::duration
unsigned long duration
duration to show frame (in timebase units)
Definition: aom_encoder.h:140
cfg_options::disable_inter_intra_comp
unsigned int disable_inter_intra_comp
disable inter/intra compound
Definition: aom_encoder.h:274
aom_codec_enc_cfg::g_profile
unsigned int g_profile
Bitstream profile to use.
Definition: aom_encoder.h:399
aom_codec_enc_cfg::rc_dropframe_thresh
unsigned int rc_dropframe_thresh
Temporal resampling configuration, if supported by the codec.
Definition: aom_encoder.h:517
aom_codec_cx_pkt::samples
unsigned int samples[4]
Definition: aom_encoder.h:152
aom_codec_pts_t
int64_t aom_codec_pts_t
Time Stamp Type.
Definition: aom_codec.h:181
aom_codec_enc_cfg
Encoder configuration structure.
Definition: aom_encoder.h:369
MAX_TILE_WIDTHS
#define MAX_TILE_WIDTHS
Maximum number of tile widths in tile widths array.
Definition: aom_encoder.h:846
cfg_options::disable_inter_inter_wedge
unsigned int disable_inter_inter_wedge
disable inter/inter wedge comp
Definition: aom_encoder.h:326
FIXED_QP_OFFSET_COUNT
#define FIXED_QP_OFFSET_COUNT
Number of fixed QP offsets.
Definition: aom_encoder.h:886
cfg_options::disable_palette
unsigned int disable_palette
disable Palette
Definition: aom_encoder.h:286
cfg_options::disable_diff_wtd_comp
unsigned int disable_diff_wtd_comp
disable diff weighted compound
Definition: aom_encoder.h:270
cfg_options::disable_lr
unsigned int disable_lr
disable Loop Restoration Filter
Definition: aom_encoder.h:250
cfg_options::disable_tx_64x64
unsigned int disable_tx_64x64
disable 64x64 transform
Definition: aom_encoder.h:318
AOM_KF_FIXED
@ AOM_KF_FIXED
Definition: aom_encoder.h:200
aom_codec_enc_cfg::rc_superres_kf_denominator
unsigned int rc_superres_kf_denominator
Keyframe super-resolution denominator.
Definition: aom_encoder.h:574
cfg_options::disable_obmc
unsigned int disable_obmc
disable OBMC
Definition: aom_encoder.h:254
aom_fixed_buf
Generic fixed size buffer structure.
Definition: aom_encoder.h:76
aom_codec_enc_cfg::rc_resize_kf_denominator
unsigned int rc_resize_kf_denominator
Keyframe resize denominator.
Definition: aom_encoder.h:542
aom_codec_enc_cfg::rc_2pass_vbr_bias_pct
unsigned int rc_2pass_vbr_bias_pct
Two-pass mode CBR/VBR bias.
Definition: aom_encoder.h:721
aom_codec_enc_cfg::use_fixed_qp_offsets
unsigned int use_fixed_qp_offsets
Whether encoder should use fixed QP offsets.
Definition: aom_encoder.h:880
aom_codec_enc_cfg::rc_resize_mode
unsigned int rc_resize_mode
Mode for spatial resampling, if supported by the codec.
Definition: aom_encoder.h:526
aom_codec_enc_cfg::g_lag_in_frames
unsigned int g_lag_in_frames
Allow lagged encoding.
Definition: aom_encoder.h:495
MAX_TILE_HEIGHTS
#define MAX_TILE_HEIGHTS
Maximum number of tile heights in tile heights array.
Definition: aom_encoder.h:859
aom_codec_cx_pkt::pad
char pad[128 - sizeof(enum aom_codec_cx_pkt_kind)]
Definition: aom_encoder.h:163
aom_codec_ctx
Codec context structure.
Definition: aom_codec.h:219
cfg_options::disable_ref_frame_mv
unsigned int disable_ref_frame_mv
disable ref frame MV
Definition: aom_encoder.h:342
aom_codec_enc_cfg::rc_buf_sz
unsigned int rc_buf_sz
Decoder Buffer Size.
Definition: aom_encoder.h:689
aom_codec_iface_t
const struct aom_codec_iface aom_codec_iface_t
Codec interface structure.
Definition: aom_codec.h:196
cfg_options::super_block_size
unsigned int super_block_size
Superblock size 0, 64 or 128.
Definition: aom_encoder.h:218
aom_rational
Rational Number.
Definition: aom_encoder.h:171
AOM_CODEC_FPMB_STATS_PKT
@ AOM_CODEC_FPMB_STATS_PKT
Definition: aom_encoder.h:121
AOM_CQ
@ AOM_CQ
Definition: aom_encoder.h:187
aom_codec_enc_cfg::sframe_mode
unsigned int sframe_mode
sframe insertion mode
Definition: aom_encoder.h:792
aom_codec_get_global_headers
aom_fixed_buf_t * aom_codec_get_global_headers(aom_codec_ctx_t *ctx)
Get global stream headers.
cfg_options::disable_trellis_quant
unsigned int disable_trellis_quant
disable trellis quantization
Definition: aom_encoder.h:338
aom_codec.h
Describes the codec algorithm interface to applications.
cfg_options::disable_paeth_intra
unsigned int disable_paeth_intra
disable paeth intra
Definition: aom_encoder.h:334
cfg_options::min_partition_size
unsigned int min_partition_size
min partition size 8, 16, 32, 64, 128
Definition: aom_encoder.h:226
cfg_options::disable_intra_angle_delta
unsigned int disable_intra_angle_delta
disable intra angle delta
Definition: aom_encoder.h:310
aom_codec_enc_cfg::rc_target_bitrate
unsigned int rc_target_bitrate
Target data rate.
Definition: aom_encoder.h:622
AOM_RC_FIRST_PASS
@ AOM_RC_FIRST_PASS
Definition: aom_encoder.h:179
AOM_CODEC_PSNR_PKT
@ AOM_CODEC_PSNR_PKT
Definition: aom_encoder.h:122
cfg_options::disable_one_sided_comp
unsigned int disable_one_sided_comp
disable one sided compound
Definition: aom_encoder.h:282
aom_codec_enc_cfg::rc_min_quantizer
unsigned int rc_min_quantizer
Minimum (Best Quality) Quantizer.
Definition: aom_encoder.h:636
cfg_options::disable_warp_motion
unsigned int disable_warp_motion
disable Warped Motion
Definition: aom_encoder.h:258
aom_codec_enc_cfg::full_still_picture_hdr
unsigned int full_still_picture_hdr
full_still_picture_hdr
Definition: aom_encoder.h:816
AOM_CBR
@ AOM_CBR
Definition: aom_encoder.h:186
aom_codec_enc_config_set
aom_codec_err_t aom_codec_enc_config_set(aom_codec_ctx_t *ctx, const aom_codec_enc_cfg_t *cfg)
Set or change configuration.
aom_codec_cx_pkt::flags
aom_codec_frame_flags_t flags
Definition: aom_encoder.h:141
aom_rational::den
int den
Definition: aom_encoder.h:173
aom_codec_enc_cfg::rc_undershoot_pct
unsigned int rc_undershoot_pct
Rate control adaptation undershoot control.
Definition: aom_encoder.h:662
cfg_options::disable_global_motion
unsigned int disable_global_motion
disable global motion
Definition: aom_encoder.h:262
AOM_RC_LAST_PASS
@ AOM_RC_LAST_PASS
Definition: aom_encoder.h:180
cfg_options::disable_filter_intra
unsigned int disable_filter_intra
disable filter intra
Definition: aom_encoder.h:302
aom_codec_cx_pkt::twopass_stats
aom_fixed_buf_t twopass_stats
Definition: aom_encoder.h:149
aom_codec_enc_cfg::rc_overshoot_pct
unsigned int rc_overshoot_pct
Rate control adaptation overshoot control.
Definition: aom_encoder.h:674
aom_codec_enc_cfg::tile_height_count
int tile_height_count
Number of explicit tile heights specified.
Definition: aom_encoder.h:840
aom_codec_cx_pkt::buf
void * buf
Definition: aom_encoder.h:135
aom_codec_frame_flags_t
uint32_t aom_codec_frame_flags_t
Compressed Frame Flags.
Definition: aom_encoder.h:88
aom_codec_cx_pkt_t
struct aom_codec_cx_pkt aom_codec_cx_pkt_t
Encoder output packet.
aom_codec_cx_pkt::sse
uint64_t sse[4]
Definition: aom_encoder.h:153
cfg_options::disable_flip_idtx
unsigned int disable_flip_idtx
disable flip and identity transform type
Definition: aom_encoder.h:242
aom_codec_enc_cfg::g_usage
unsigned int g_usage
Algorithm specific "usage" value.
Definition: aom_encoder.h:381
cfg_options::disable_smooth_inter_intra
unsigned int disable_smooth_inter_intra
disable smooth inter/intra
Definition: aom_encoder.h:322
aom_codec_enc_cfg::encoder_cfg
cfg_options_t encoder_cfg
Options defined per config file.
Definition: aom_encoder.h:907
aom_codec_enc_config_default
aom_codec_err_t aom_codec_enc_config_default(aom_codec_iface_t *iface, aom_codec_enc_cfg_t *cfg, unsigned int usage)
Get the default configuration for a usage.
aom_codec_enc_cfg::tile_width_count
int tile_width_count
Number of explicit tile widths specified.
Definition: aom_encoder.h:832
cfg_options::reduced_tx_type_set
unsigned int reduced_tx_type_set
use reduced transform type set
Definition: aom_encoder.h:350
aom_kf_mode
aom_kf_mode
Keyframe placement mode.
Definition: aom_encoder.h:199
aom_codec_enc_cfg::g_forced_max_frame_height
unsigned int g_forced_max_frame_height
Forced maximum height of the frame.
Definition: aom_encoder.h:436
aom_codec_cx_pkt::firstpass_mb_stats
aom_fixed_buf_t firstpass_mb_stats
Definition: aom_encoder.h:150
aom_enc_frame_flags_t
long aom_enc_frame_flags_t
Encoded Frame Flags.
Definition: aom_encoder.h:360
aom_codec_enc_cfg::g_w
unsigned int g_w
Width of the frame.
Definition: aom_encoder.h:408
aom_codec_set_cx_data_buf
aom_codec_err_t aom_codec_set_cx_data_buf(aom_codec_ctx_t *ctx, const aom_fixed_buf_t *buf, unsigned int pad_before, unsigned int pad_after)
Set compressed data output buffer.
cfg_options::disable_intra_edge_filter
unsigned int disable_intra_edge_filter
disable intra edge filter
Definition: aom_encoder.h:314
cfg_options::disable_inter_intra_wedge
unsigned int disable_inter_intra_wedge
disable inter/intra wedge comp
Definition: aom_encoder.h:330
cfg_options::disable_dist_wtd_comp
unsigned int disable_dist_wtd_comp
disable dist weighted compound
Definition: aom_encoder.h:266
aom_codec_enc_cfg::rc_firstpass_mb_stats_in
aom_fixed_buf_t rc_firstpass_mb_stats_in
first pass mb stats buffer.
Definition: aom_encoder.h:616
AOM_VBR
@ AOM_VBR
Definition: aom_encoder.h:185
aom_codec_cx_pkt::raw
aom_fixed_buf_t raw
Definition: aom_encoder.h:156
aom_fixed_buf_t
struct aom_fixed_buf aom_fixed_buf_t
Generic fixed size buffer structure.
cfg_options::init_by_cfg_file
unsigned int init_by_cfg_file
Indicate init by cfg file 0 or 1.
Definition: aom_encoder.h:214
aom_codec_enc_cfg::rc_twopass_stats_in
aom_fixed_buf_t rc_twopass_stats_in
Two-pass stats buffer.
Definition: aom_encoder.h:609
aom_codec_err_t
aom_codec_err_t
Algorithm return codes.
Definition: aom_codec.h:101
AOM_RC_ONE_PASS
@ AOM_RC_ONE_PASS
Definition: aom_encoder.h:178
aom_codec_get_cx_data
const aom_codec_cx_pkt_t * aom_codec_get_cx_data(aom_codec_ctx_t *ctx, aom_codec_iter_t *iter)
Encoded data iterator.
aom_codec_encode
aom_codec_err_t aom_codec_encode(aom_codec_ctx_t *ctx, const aom_image_t *img, aom_codec_pts_t pts, unsigned long duration, aom_enc_frame_flags_t flags)
Encode a frame.
aom_codec_enc_init_ver
aom_codec_err_t aom_codec_enc_init_ver(aom_codec_ctx_t *ctx, aom_codec_iface_t *iface, const aom_codec_enc_cfg_t *cfg, aom_codec_flags_t flags, int ver)
Initialize an encoder instance.
aom_codec_enc_cfg::rc_resize_denominator
unsigned int rc_resize_denominator
Frame resize denominator.
Definition: aom_encoder.h:534
aom_codec_enc_cfg::g_limit
unsigned int g_limit
Max number of frames to encode.
Definition: aom_encoder.h:422
aom_codec_enc_cfg::rc_buf_initial_sz
unsigned int rc_buf_initial_sz
Decoder Buffer Initial Size.
Definition: aom_encoder.h:698
aom_codec_cx_pkt::pts
aom_codec_pts_t pts
time stamp to show frame (in timebase units)
Definition: aom_encoder.h:138
aom_codec_enc_cfg::rc_superres_denominator
unsigned int rc_superres_denominator
Frame super-resolution denominator.
Definition: aom_encoder.h:564
cfg_options::disable_cfl
unsigned int disable_cfl
disable chroma from luma
Definition: aom_encoder.h:294
aom_codec_er_flags_t
uint32_t aom_codec_er_flags_t
Error Resilient flags.
Definition: aom_encoder.h:108
AOM_Q
@ AOM_Q
Definition: aom_encoder.h:188
aom_codec_enc_cfg::rc_max_quantizer
unsigned int rc_max_quantizer
Maximum (Worst Quality) Quantizer.
Definition: aom_encoder.h:646
aom_codec_cx_pkt::data
union aom_codec_cx_pkt::@1 data
aom_codec_enc_cfg::monochrome
unsigned int monochrome
Monochrome mode.
Definition: aom_encoder.h:807
AOM_KF_DISABLED
@ AOM_KF_DISABLED
Definition: aom_encoder.h:202
aom_codec_cx_pkt::frame
struct aom_codec_cx_pkt::@1::@2 frame
aom_codec_cx_pkt
Encoder output packet.
Definition: aom_encoder.h:131
aom_codec_enc_cfg::g_forced_max_frame_width
unsigned int g_forced_max_frame_width
Forced maximum width of the frame.
Definition: aom_encoder.h:429
aom_rc_mode
aom_rc_mode
Rate control mode.
Definition: aom_encoder.h:184
AOM_CODEC_CUSTOM_PKT
@ AOM_CODEC_CUSTOM_PKT
Definition: aom_encoder.h:123
AOM_KF_AUTO
@ AOM_KF_AUTO
Definition: aom_encoder.h:201
aom_codec_iter_t
const void * aom_codec_iter_t
Iterator.
Definition: aom_codec.h:209
cfg_options::disable_smooth_intra
unsigned int disable_smooth_intra
disable intra smooth mode
Definition: aom_encoder.h:298
aom_codec_enc_cfg::rc_superres_mode
unsigned int rc_superres_mode
Frame super-resolution scaling mode.
Definition: aom_encoder.h:552
AOM_CODEC_STATS_PKT
@ AOM_CODEC_STATS_PKT
Definition: aom_encoder.h:120
aom_codec_enc_cfg::rc_superres_qthresh
unsigned int rc_superres_qthresh
Frame super-resolution q threshold.
Definition: aom_encoder.h:583
aom_codec_enc_cfg::g_h
unsigned int g_h
Height of the frame.
Definition: aom_encoder.h:417
aom_enc_pass
aom_enc_pass
Multi-pass Encoding Pass.
Definition: aom_encoder.h:177
AOM_CODEC_CX_FRAME_PKT
@ AOM_CODEC_CX_FRAME_PKT
Definition: aom_encoder.h:119
aom_codec_enc_cfg::save_as_annexb
unsigned int save_as_annexb
Bitstream syntax mode.
Definition: aom_encoder.h:824
aom_codec_flags_t
long aom_codec_flags_t
Initialization-time Feature Enabling.
Definition: aom_codec.h:174
cfg_options::disable_rect_partition_type
unsigned int disable_rect_partition_type
disable rectangular partition type
Definition: aom_encoder.h:234
aom_codec_cx_pkt::psnr
double psnr[4]
Definition: aom_encoder.h:154
aom_image
Image Descriptor.
Definition: aom_image.h:171
aom_fixed_buf::sz
size_t sz
Definition: aom_encoder.h:78
cfg_options::disable_cdef
unsigned int disable_cdef
disable CDEF filter
Definition: aom_encoder.h:246
aom_codec_cx_pkt::kind
enum aom_codec_cx_pkt_kind kind
Definition: aom_encoder.h:132
cfg_options::disable_intrabc
unsigned int disable_intrabc
disable Intra Block Copy
Definition: aom_encoder.h:290
cfg_options::disable_1to4_partition_type
unsigned int disable_1to4_partition_type
disable 1:4/4:1 partition type
Definition: aom_encoder.h:238
aom_codec_enc_cfg::g_threads
unsigned int g_threads
Maximum number of threads to use.
Definition: aom_encoder.h:389
cfg_options_t
struct cfg_options cfg_options_t
Encoder Config Options.
aom_codec_get_preview_frame
const aom_image_t * aom_codec_get_preview_frame(aom_codec_ctx_t *ctx)
Get Preview Frame.
cfg_options::disable_ab_partition_type
unsigned int disable_ab_partition_type
disable AB Shape partition type
Definition: aom_encoder.h:230
cfg_options
Encoder Config Options.
Definition: aom_encoder.h:210
aom_bit_depth_t
enum aom_bit_depth aom_bit_depth_t
Bit depth for codecThis enumeration determines the bit depth of the codec.
aom_codec_enc_cfg_t
struct aom_codec_enc_cfg aom_codec_enc_cfg_t
Encoder configuration structure.
aom_codec_enc_cfg::g_bit_depth
aom_bit_depth_t g_bit_depth
Bit-depth of the codec.
Definition: aom_encoder.h:444
cfg_options::max_partition_size
unsigned int max_partition_size
max partition size 8, 16, 32, 64, 128
Definition: aom_encoder.h:222
aom_codec_enc_cfg::rc_buf_optimal_sz
unsigned int rc_buf_optimal_sz
Decoder Buffer Optimal Size.
Definition: aom_encoder.h:707
aom_codec_enc_cfg::kf_max_dist
unsigned int kf_max_dist
Keyframe maximum interval.
Definition: aom_encoder.h:770
aom_codec_enc_cfg::large_scale_tile
unsigned int large_scale_tile
Tile coding mode.
Definition: aom_encoder.h:800
cfg_options::disable_masked_comp
unsigned int disable_masked_comp
disable masked compound
Definition: aom_encoder.h:278
aom_codec_enc_cfg::sframe_dist
unsigned int sframe_dist
sframe interval
Definition: aom_encoder.h:777
aom_codec_enc_cfg::rc_2pass_vbr_maxsection_pct
unsigned int rc_2pass_vbr_maxsection_pct
Two-pass mode per-GOP maximum bitrate.
Definition: aom_encoder.h:735
aom_fixed_buf::buf
void * buf
Definition: aom_encoder.h:77
aom_codec_cx_pkt::sz
size_t sz
Definition: aom_encoder.h:136
cfg_options::disable_dual_filter
unsigned int disable_dual_filter
disable dual filter
Definition: aom_encoder.h:306
aom_rational_t
struct aom_rational aom_rational_t
Rational Number.
cfg_options::reduced_reference_set
unsigned int reduced_reference_set
use reduced reference frame set
Definition: aom_encoder.h:346
aom_codec_enc_cfg::kf_min_dist
unsigned int kf_min_dist
Keyframe minimum interval.
Definition: aom_encoder.h:761
aom_codec_cx_pkt::vis_frame_size
size_t vis_frame_size
size of the visible frame in this packet
Definition: aom_encoder.h:147
aom_rational::num
int num
Definition: aom_encoder.h:172
aom_codec_cx_pkt_kind
aom_codec_cx_pkt_kind
Encoder output packet variants.
Definition: aom_encoder.h:118
aom_codec_cx_pkt::partition_id
int partition_id
the partition id defines the decoding order of the partitions. Only applicable when "output partition...
Definition: aom_encoder.h:145
aom_codec_enc_cfg::rc_2pass_vbr_minsection_pct
unsigned int rc_2pass_vbr_minsection_pct
Two-pass mode per-GOP minimum bitrate.
Definition: aom_encoder.h:728