This SDK includes a number of sample applications. Each sample documents a feature of the SDK in both prose and the associated C code. The following samples are included:
In addition, the SDK contains a number of utilities. Since these utilities are built upon the concepts described in the sample code listed above, they are not documented in pieces like the samples are. Their source is included here for reference. The following utilities are included:
@ AOMD_GET_FRAME_CORRUPTED
Codec control function to check if the indicated frame is corrupted, int* parameter.
Definition: aomdx.h:120
@ AOME_GET_LAST_QUANTIZER_64
Codec control function to get last quantizer chosen by the encoder, int* parameter.
Definition: aomcx.h:228
@ AOM_IMG_FMT_I420
Definition: aom_image.h:45
aom_img_fmt_t fmt
Definition: aom_image.h:172
@ AOM_CICP_TC_IEC_61966
Definition: aom_image.h:92
@ AOM_IMG_FMT_YV12
Definition: aom_image.h:43
@ AOM_CICP_TC_BT_2020_12_BIT
Definition: aom_image.h:96
@ AV1E_ENABLE_EXT_TILE_DEBUG
Codec control function to enable EXT_TILE_DEBUG in AV1 encoder, unsigned int parameter.
Definition: aomcx.h:1240
@ AV1E_SET_ENABLE_DIFF_WTD_COMP
Codec control function to turn on / off difference weighted compound, int parameter.
Definition: aomcx.h:940
@ AOM_CICP_CP_BT_2020
Definition: aom_image.h:69
@ AOM_CICP_CP_SMPTE_431
Definition: aom_image.h:71
unsigned char * active_map
specify an on (1) or off (0) each 16x16 region within a frame
Definition: aomcx.h:1307
@ AV1E_SET_MV_COST_UPD_FREQ
Control to set frequency of the cost updates for motion vectors, unsigned int parameter.
Definition: aomcx.h:1192
@ AV1D_SET_OUTPUT_ALL_LAYERS
Codec control function to indicate whether to output one frame per temporal unit (the default),...
Definition: aomdx.h:283
@ AV1E_SET_TIER_MASK
Control to set bit mask that specifies which tier each of the 32 possible operating points conforms t...
Definition: aomcx.h:1200
#define AOM_USAGE_REALTIME
usage parameter analogous to AV1 REALTIME mode.
Definition: aom_encoder.h:1014
size_t extra_size
Definition: aomdx.h:89
aom_codec_err_t aom_codec_decode(aom_codec_ctx_t *ctx, const uint8_t *data, size_t data_sz, void *user_priv)
Decode data.
@ AV1E_SET_ENABLE_OVERLAY
Codec control function to turn on / off overlay frames for filtered ALTREF frames,...
Definition: aomcx.h:1043
unsigned int rc_dropframe_thresh
Temporal resampling configuration, if supported by the codec.
Definition: aom_encoder.h:517
#define AOM_EFLAG_NO_UPD_ENTROPY
Disable entropy update.
Definition: aomcx.h:120
@ AV1E_SET_DELTALF_MODE
Codec control function to turn on/off loopfilter modulation when delta q modulation is enabled,...
Definition: aomcx.h:1074
int64_t aom_codec_pts_t
Time Stamp Type.
Definition: aom_codec.h:181
Encoder configuration structure.
Definition: aom_encoder.h:369
#define AOM_EFLAG_NO_REF_LAST
Don't reference the last frame.
Definition: aomcx.h:50
#define MAX_TILE_WIDTHS
Maximum number of tile widths in tile widths array.
Definition: aom_encoder.h:846
#define AOM_CODEC_CONTROL_TYPECHECKED(ctx, id, data)
aom_codec_control wrapper macro (adds type-checking, less flexible)
Definition: aom_codec.h:426
aom image scaling mode
Definition: aomcx.h:1317
#define FIXED_QP_OFFSET_COUNT
Number of fixed QP offsets.
Definition: aom_encoder.h:886
@ AOME_SET_CPUUSED
Codec control function to set encoder internal speed settings, int parameter.
Definition: aomcx.h:192
int framerate_factor[8]
Definition: aomcx.h:1371
int monochrome
Definition: aom_image.h:176
#define AOM_EFLAG_NO_REF_BWD
Don't reference the bwd reference frame.
Definition: aomcx.h:86
@ AOM_CICP_TC_SMPTE_240
Definition: aom_image.h:87
unsigned char * planes[3]
Definition: aom_image.h:202
@ AOM_SUPERBLOCK_SIZE_DYNAMIC
Definition: aom_codec.h:254
int number_spatial_layers
Definition: aomcx.h:1362
#define AOM_PLANE_Y
Definition: aom_image.h:199
@ AV1E_SET_FORCE_VIDEO_MODE
Codec control function to force video mode, unsigned int parameter.
Definition: aomcx.h:637
@ AV1E_SET_ENABLE_DIST_WTD_COMP
Codec control function to turn on / off dist-wtd compound mode at sequence level, int parameter.
Definition: aomcx.h:862
enum aom_chroma_sample_position aom_chroma_sample_position_t
List of chroma sample positions.
@ AV1E_SET_ENABLE_TX64
Codec control function to turn on / off 64-length transforms, int parameter.
Definition: aomcx.h:824
enum aom_img_fmt aom_img_fmt_t
List of supported image formats.
@ AOM_CICP_CP_BT_601
Definition: aom_image.h:65
@ AOM_CICP_TC_BT_709
Definition: aom_image.h:81
@ AOME_SET_ACTIVEMAP
Codec control function to pass an Active map to encoder, aom_active_map_t* parameter.
Definition: aomcx.h:167
@ AOM_IMG_FMT_I444
Definition: aom_image.h:50
size_t coded_tile_data_size
Definition: aomdx.h:85
@ AV1E_SET_AQ_MODE
Codec control function to set adaptive quantization mode, unsigned int parameter.
Definition: aomcx.h:426
@ AV1E_SET_MAX_GF_INTERVAL
Codec control function to set minimum interval between GF/ARF frames, unsigned int parameter.
Definition: aomcx.h:551
unsigned int w
Definition: aom_decoder.h:72
Generic fixed size buffer structure.
Definition: aom_encoder.h:76
unsigned int rc_resize_mode
Mode for spatial resampling, if supported by the codec.
Definition: aom_encoder.h:526
unsigned int g_lag_in_frames
Allow lagged encoding.
Definition: aom_encoder.h:495
@ AV1E_SET_ENABLE_OBMC
Codec control function to predict with OBMC mode, unsigned int parameter.
Definition: aomcx.h:645
@ AOM_BITS_8
Definition: aom_codec.h:240
@ AV1E_SET_QUANT_B_ADAPT
Control to use adaptive quantize_b, int parameter.
Definition: aomcx.h:1141
unsigned int d_h
Definition: aom_image.h:187
@ AV1E_SET_GF_CBR_BOOST_PCT
Boost percentage for Golden Frame in CBR mode, unsigned int parameter.
Definition: aomcx.h:302
#define MAX_TILE_HEIGHTS
Maximum number of tile heights in tile heights array.
Definition: aom_encoder.h:859
#define AOM_PLANE_U
Definition: aom_image.h:200
const void * coded_tile_data
Definition: aomdx.h:87
int use_external_ref
Definition: aom.h:73
@ AOME_SET_SPATIAL_LAYER_ID
Codec control function to set encoder spatial layer id, unsigned int parameter.
Definition: aomcx.h:179
@ AV1E_SET_ENABLE_1TO4_PARTITIONS
Codec control function to enable/disable 1:4 and 4:1 partitions, int parameter.
Definition: aomcx.h:774
unsigned int threads
Definition: aom_decoder.h:92
int refresh[8]
Definition: aomcx.h:1381
#define AOM_EFLAG_NO_REF_LAST3
Don't reference the last3 frame.
Definition: aomcx.h:64
Codec context structure.
Definition: aom_codec.h:219
@ AV1_SET_TILE_MODE
Codec control function to set the tile coding mode, int parameter.
Definition: aomdx.h:225
unsigned int rc_buf_sz
Decoder Buffer Size.
Definition: aom_encoder.h:689
AV1 specific reference frame data struct.
Definition: aom.h:71
@ AOM_CICP_MC_ICTCP
Definition: aom_image.h:121
unsigned int super_block_size
Superblock size 0, 64 or 128.
Definition: aom_encoder.h:218
@ AOM_CICP_CP_BT_470_B_G
Definition: aom_image.h:64
Rational Number.
Definition: aom_encoder.h:171
int reference[7]
Definition: aomcx.h:1378
@ AOME_SET_STATIC_THRESHOLD
Codec control function to set the threshold for MBs treated static, unsigned int parameter.
Definition: aomcx.h:211
@ AOM_CQ
Definition: aom_encoder.h:187
@ AOM_CSP_UNKNOWN
Definition: aom_image.h:133
Provides definitions for using AOM or AV1 encoder algorithm within the aom Codec Interface.
@ AOM_CODEC_OK
Operation completed without error.
Definition: aom_codec.h:103
@ AOM_CICP_MC_SMPTE_2085
Definition: aom_image.h:117
@ AV1E_SET_ENABLE_PALETTE
Codec control function to turn on/off palette mode, int parameter.
Definition: aomcx.h:1046
@ AV1E_SET_MODE_COST_UPD_FREQ
Control to set frequency of the cost updates for mode, unsigned int parameter.
Definition: aomcx.h:1182
const char * aom_codec_err_to_string(aom_codec_err_t err)
Convert error number to printable string.
@ AOMD_GET_LAST_QUANTIZER
Codec control function to get last decoded frame quantizer, int* parameter.
Definition: aomdx.h:207
unsigned int disable_trellis_quant
disable trellis quantization
Definition: aom_encoder.h:338
union aom_codec_ctx::@0 config
#define AOM_CODEC_USE_HIGHBITDEPTH
Make the encoder output one partition at a time.
Definition: aom_encoder.h:70
@ AOM_CICP_CP_BT_709
Definition: aom_image.h:60
@ AV1E_SET_ROW_MT
Codec control function to enable the row based multi-threading of the encoder, unsigned int parameter...
Definition: aomcx.h:324
#define AOM_EFLAG_FORCE_KF
Definition: aom_encoder.h:361
unsigned int min_partition_size
min partition size 8, 16, 32, 64, 128
Definition: aom_encoder.h:226
@ AOM_CICP_CP_SMPTE_240
Definition: aom_image.h:66
@ AOM_IMG_FMT_I422
Definition: aom_image.h:49
unsigned int rc_target_bitrate
Target data rate.
Definition: aom_encoder.h:622
@ AV1E_SET_DELTAQ_MODE
Codec control function to set the delta q mode, unsigned int parameter.
Definition: aomcx.h:1066
@ AOM_RC_FIRST_PASS
Definition: aom_encoder.h:179
@ AV1E_SET_COLOR_PRIMARIES
Codec control function to set color space info, int parameter.
Definition: aomcx.h:484
@ AOM_CICP_MC_BT_2020_NCL
Definition: aom_image.h:114
@ AV1E_SET_TUNE_CONTENT
Codec control function to set content type, aom_tune_content parameter.
Definition: aomcx.h:454
void aom_img_free(aom_image_t *img)
Close an image descriptor.
@ AOM_CODEC_PSNR_PKT
Definition: aom_encoder.h:122
@ AV1E_SET_QM_MAX
Codec control function to set the max quant matrix flatness, unsigned int parameter.
Definition: aomcx.h:691
int max_quantizers[32]
Definition: aomcx.h:1364
@ AOME_SET_ARNR_STRENGTH
Codec control function to set the filter strength for the arf, unsigned int parameter.
Definition: aomcx.h:238
unsigned int rc_min_quantizer
Minimum (Best Quality) Quantizer.
Definition: aom_encoder.h:636
Initialization-time Feature Enabling.
Definition: aom_decoder.h:71
@ AOM_CBR
Definition: aom_encoder.h:186
unsigned int y_chroma_shift
Definition: aom_image.h:195
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.
@ AOME_SET_ENABLEAUTOALTREF
Codec control function to enable automatic set and use alf frames, unsigned int parameter.
Definition: aomcx.h:200
aom_image_t img
Definition: aom.h:74
const char * aom_codec_iface_name(aom_codec_iface_t *iface)
Return the name for a given interface.
aom_codec_err_t err
Definition: aom_codec.h:222
@ AV1_SET_DECODE_TILE_ROW
Codec control function to set the range of tile decoding, int parameter.
Definition: aomdx.h:217
int den
Definition: aom_encoder.h:173
unsigned int rc_undershoot_pct
Rate control adaptation undershoot control.
Definition: aom_encoder.h:662
External frame buffer.
Definition: aom_frame_buffer.h:40
int number_temporal_layers
Definition: aomcx.h:1363
aom_codec_err_t aom_codec_destroy(aom_codec_ctx_t *ctx)
Destroy a codec instance.
@ AV1D_GET_FRAME_HEADER_INFO
Codec control function to get the frame header information of an encoded frame, unsigned int* paramet...
Definition: aomdx.h:230
@ AOM_CICP_TC_LOG_100
Definition: aom_image.h:89
@ AV1D_SET_OPERATING_POINT
Codec control function to indicate which operating point to use, int parameter.
Definition: aomdx.h:271
@ AV1E_SET_TRANSFER_CHARACTERISTICS
Codec control function to set transfer function info, int parameter.
Definition: aomcx.h:509
@ AV1E_SET_ENABLE_ANGLE_DELTA
Codec control function to turn on/off intra angle delta, int parameter.
Definition: aomcx.h:1054
@ AV1E_SET_SINGLE_TILE_DECODING
Codec control function to set the single tile decoding mode, unsigned int parameter.
Definition: aomcx.h:1084
@ AOM_CICP_CP_SMPTE_432
Definition: aom_image.h:72
@ AV1_COPY_NEW_FRAME_IMAGE
Definition: aom.h:61
aom_codec_err_t aom_codec_peek_stream_info(aom_codec_iface_t *iface, const uint8_t *data, size_t data_sz, aom_codec_stream_info_t *si)
Parse stream info from a buffer.
aom_image_t * aom_img_alloc_with_border(aom_image_t *img, aom_img_fmt_t fmt, unsigned int d_w, unsigned int d_h, unsigned int align, unsigned int size_align, unsigned int border)
Open a descriptor, allocating storage for the underlying image with a border.
@ AV1E_SET_MAX_PARTITION_SIZE
Codec control function to set max partition size, int parameter.
Definition: aomcx.h:796
@ AOM_RC_LAST_PASS
Definition: aom_encoder.h:180
aom_image_t * aom_img_alloc(aom_image_t *img, aom_img_fmt_t fmt, unsigned int d_w, unsigned int d_h, unsigned int align)
Open a descriptor, allocating storage for the underlying image.
int aom_img_plane_width(const aom_image_t *img, int plane)
Get the width of a plane.
@ AV1E_SET_VMAF_MODEL_PATH
Codec control function to set the path to the VMAF model used when tuning the encoder for VMAF,...
Definition: aomcx.h:1230
aom_fixed_buf_t twopass_stats
Definition: aom_encoder.h:149
unsigned int rc_overshoot_pct
Rate control adaptation overshoot control.
Definition: aom_encoder.h:674
@ AV1E_SET_TIMING_INFO_TYPE
Codec control function to signal picture timing info in the bitstream, aom_timing_info_type_t paramet...
Definition: aomcx.h:1101
@ AV1E_SET_ENABLE_SMOOTH_INTRA
Codec control function to turn on / off smooth intra modes usage, int parameter.
Definition: aomcx.h:1005
@ AOM_CICP_MC_BT_470_B_G
Definition: aom_image.h:110
@ AV1D_GET_TILE_COUNT
Codec control function to get the tile count in a tile list, int* parameter.
Definition: aomdx.h:158
@ AOM_IMG_FMT_I42216
Definition: aom_image.h:53
@ AV1E_SET_TILE_ROWS
Codec control function to set number of tile rows, unsigned int parameter.
Definition: aomcx.h:361
Initialization Configurations.
Definition: aom_decoder.h:91
@ AOM_IMG_FMT_I44416
Definition: aom_image.h:54
@ AOM_CICP_TC_SMPTE_428
Definition: aom_image.h:98
enum aom_kf_mode kf_mode
Keyframe placement mode.
Definition: aom_encoder.h:752
@ AOM_CICP_MC_BT_601
Definition: aom_image.h:111
@ AV1E_SET_COEFF_COST_UPD_FREQ
Control to set frequency of the cost updates for coefficients, unsigned int parameter.
Definition: aomcx.h:1172
@ AOM_CICP_CP_XYZ
Definition: aom_image.h:70
@ AOM_CICP_TC_LINEAR
Definition: aom_image.h:88
@ AV1D_GET_DISPLAY_SIZE
Codec control function to get the current frame's intended display dimensions (as specified in the wr...
Definition: aomdx.h:139
@ AV1E_SET_FRAME_PERIODIC_BOOST
Codec control function to enable/disable periodic Q boost, unsigned int parameter.
Definition: aomcx.h:438
unsigned int cols
Definition: aomcx.h:1309
@ AOM_SUPERBLOCK_SIZE_64X64
Definition: aom_codec.h:252
unsigned int g_usage
Algorithm specific "usage" value.
Definition: aom_encoder.h:381
@ AOM_IMG_FMT_YV1216
Definition: aom_image.h:52
uint8_t * data
Definition: aom_frame_buffer.h:41
@ AV1E_SET_SVC_LAYER_ID
Codec control function to set the layer id, aom_svc_layer_id_t* parameter.
Definition: aomcx.h:1214
@ AV1E_SET_NUM_TG
Codec control function to set a maximum number of tile groups, unsigned int parameter.
Definition: aomcx.h:737
@ AOME_SET_ARNR_MAXFRAMES
Codec control function to set the max no of frames to create arf, unsigned int parameter.
Definition: aomcx.h:233
@ AV1E_SET_ENABLE_CHROMA_DELTAQ
Codec control function to turn on / off delta quantization in chroma planes usage for a sequence,...
Definition: aomcx.h:900
@ AOM_CICP_TC_BT_1361
Definition: aom_image.h:93
#define AOM_EFLAG_NO_UPD_LAST
Don't update the last frame.
Definition: aomcx.h:100
@ AOM_CSP_VERTICAL
Definition: aom_image.h:134
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.
@ AV1E_SET_FRAME_PARALLEL_DECODING
Codec control function to enable frame parallel decoding feature, unsigned int parameter.
Definition: aomcx.h:391
enum aom_rc_mode rc_end_usage
Rate control algorithm to use.
Definition: aom_encoder.h:602
@ AV1E_SET_INTER_DCT_ONLY
Control to use dct only for inter modes, int parameter.
Definition: aomcx.h:1134
enum aom_enc_pass g_pass
Multi-pass Encoding Mode.
Definition: aom_encoder.h:481
int scaling_factor_num[4]
Definition: aomcx.h:1366
@ AV1E_SET_INTRA_DCT_ONLY
Control to use dct only for intra modes, int parameter.
Definition: aomcx.h:1131
int layer_target_bitrate[32]
Definition: aomcx.h:1369
@ AV1D_SET_SKIP_FILM_GRAIN
Codec control function to set the skip film grain flag, int parameter.
Definition: aomdx.h:299
@ AV1E_SET_ENABLE_PAETH_INTRA
Codec control function to turn on / off Paeth intra mode usage, int parameter.
Definition: aomcx.h:1013
@ AOM_CICP_MC_UNSPECIFIED
Definition: aom_image.h:107
@ AV1E_SET_GF_MIN_PYRAMID_HEIGHT
Control to select minimum height for the GF group pyramid structure, unsigned int parameter.
Definition: aomcx.h:1258
@ AV1E_SET_MTU
Codec control function to set an MTU size for a tile group, unsigned int parameter.
Definition: aomcx.h:748
int min_quantizers[32]
Definition: aomcx.h:1365
long aom_enc_frame_flags_t
Encoded Frame Flags.
Definition: aom_encoder.h:360
unsigned int g_w
Width of the frame.
Definition: aom_encoder.h:408
@ AOM_CICP_MC_SMPTE_YCGCO
Definition: aom_image.h:113
void * priv
Definition: aom_frame_buffer.h:43
@ AV1E_SET_MIN_CR
Control to set minimum compression ratio, unsigned int parameter Take integer values....
Definition: aomcx.h:1207
@ AV1E_SET_CDF_UPDATE_MODE
Codec control function to set CDF update mode, unsigned int parameter.
Definition: aomcx.h:463
@ AOM_CSP_COLOCATED
Definition: aom_image.h:136
@ AOM_BITS_12
Definition: aom_codec.h:242
aom_codec_err_t aom_codec_set_frame_buffer_functions(aom_codec_ctx_t *ctx, aom_get_frame_buffer_cb_fn_t cb_get, aom_release_frame_buffer_cb_fn_t cb_release, void *cb_priv)
Pass in external frame buffers for the decoder to use.
#define AOM_MAX_TS_LAYERS
Definition: aomcx.h:1352
@ AOM_SUPERBLOCK_SIZE_128X128
Definition: aom_codec.h:253
#define AOM_USAGE_GOOD_QUALITY
usage parameter analogous to AV1 GOOD QUALITY mode.
Definition: aom_encoder.h:1012
@ AOM_VBR
Definition: aom_encoder.h:185
aom_codec_er_flags_t g_error_resilient
Enable error resilient modes.
Definition: aom_encoder.h:474
@ AV1E_SET_NOISE_SENSITIVITY
Codec control function to set noise sensitivity, unsigned int parameter.
Definition: aomcx.h:446
@ AOM_CICP_TC_BT_2020_10_BIT
Definition: aom_image.h:95
#define AOM_EFLAG_NO_UPD_GF
Don't update the golden frame.
Definition: aomcx.h:107
aom_fixed_buf_t raw
Definition: aom_encoder.h:156
@ AOM_CICP_CP_EBU_3213
Definition: aom_image.h:74
@ AOM_CICP_TC_LOG_100_SQRT10
Definition: aom_image.h:90
#define AOM_MAX_LAYERS
Definition: aomcx.h:1350
@ AV1E_SET_SUPERBLOCK_SIZE
Codec control function to set intended superblock size, unsigned int parameter.
Definition: aomcx.h:604
@ AV1E_SET_INTRA_DEFAULT_TX_ONLY
Control to use default tx type only for intra modes, int parameter.
Definition: aomcx.h:1138
aom_fixed_buf_t rc_twopass_stats_in
Two-pass stats buffer.
Definition: aom_encoder.h:609
@ AV1E_SET_CHROMA_SAMPLE_POSITION
Codec control function to set chroma 4:2:0 sample position info, aom_chroma_sample_position_t paramet...
Definition: aomcx.h:537
aom_codec_err_t
Algorithm return codes.
Definition: aom_codec.h:101
Describes the decoder algorithm interface to applications.
#define AOM_EFLAG_NO_REF_GF
Don't reference the golden frame.
Definition: aomcx.h:71
@ AOM_RC_ONE_PASS
Definition: aom_encoder.h:178
unsigned int x_chroma_shift
Definition: aom_image.h:194
Describes the encoder algorithm interface to applications.
@ AV1E_SET_MIN_PARTITION_SIZE
Codec control function to set min partition size, int parameter.
Definition: aomcx.h:785
@ AV1E_SET_TARGET_SEQ_LEVEL_IDX
Control to set target sequence level index for a certain operating point(OP), int parameter Possible ...
Definition: aomcx.h:589
@ AV1E_SET_DISABLE_TRELLIS_QUANT
Codec control function to encode without trellis quantization, unsigned int parameter.
Definition: aomcx.h:655
@ AV1D_SET_IS_ANNEXB
Codec control function to indicate whether bitstream is in Annex-B format, unsigned int parameter.
Definition: aomdx.h:261
@ AOM_CICP_TC_HLG
Definition: aom_image.h:99
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_CICP_MC_BT_2020_CL
Definition: aom_image.h:116
@ AOME_SET_SCALEMODE
Codec control function to set encoder scaling mode, aom_scaling_mode_t* parameter.
Definition: aomcx.h:174
int scaling_factor_den[4]
Definition: aomcx.h:1367
int idx
Definition: aom.h:72
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.
@ AV1D_GET_TILE_DATA
Codec control function to get the start address and size of a tile in the coded bitstream,...
Definition: aomdx.h:235
#define aom_codec_dec_init(ctx, iface, cfg, flags)
Convenience macro for aom_codec_dec_init_ver()
Definition: aom_decoder.h:129
@ AV1E_SET_ENABLE_INTRABC
Codec control function to turn on/off intra block copy mode, int parameter.
Definition: aomcx.h:1050
unsigned int rc_buf_initial_sz
Decoder Buffer Initial Size.
Definition: aom_encoder.h:698
@ AV1E_SET_ENABLE_WARPED_MOTION
Codec control function to turn on / off warped motion usage at sequence level, int parameter.
Definition: aomcx.h:972
@ AV1E_SET_REDUCED_REFERENCE_SET
Control to use reduced set of single and compound references, int parameter.
Definition: aomcx.h:1159
@ AV1E_SET_ENABLE_INTERINTER_WEDGE
Codec control function to turn on / off interinter wedge compound, int parameter.
Definition: aomcx.h:948
@ AV1E_SET_QM_MIN
Codec control function to set the min quant matrix flatness, unsigned int parameter.
Definition: aomcx.h:679
@ AV1E_SET_MIN_GF_INTERVAL
Codec control function to set minimum interval between GF/ARF frames, unsigned int parameter.
Definition: aomcx.h:544
const char * name
Definition: aom_codec.h:220
Structure to hold the external reference frame pointer.
Definition: aomdx.h:96
aom active region map
Definition: aomcx.h:1305
@ AV1E_SET_ENABLE_CFL_INTRA
Codec control function to turn on / off CFL uv intra mode usage, int parameter.
Definition: aomcx.h:1023
@ AV1E_SET_ENABLE_FLIP_IDTX
Codec control function to turn on / off flip and identity transforms, int parameter.
Definition: aomcx.h:848
@ AOM_IMG_FMT_I42016
Definition: aom_image.h:51
@ AOME_SET_MAX_INTRA_BITRATE_PCT
Codec control function to set max data rate for intra frames, unsigned int parameter.
Definition: aomcx.h:269
uint32_t aom_codec_er_flags_t
Error Resilient flags.
Definition: aom_encoder.h:108
@ AOM_BITS_10
Definition: aom_codec.h:241
@ AV1E_SET_MATRIX_COEFFICIENTS
Codec control function to set transfer function info, int parameter.
Definition: aomcx.h:530
@ AV1D_GET_IMG_FORMAT
Codec control function to get the image format of the stream, aom_img_fmt_t* parameter.
Definition: aomdx.h:149
@ AOM_CICP_MC_FCC
Definition: aom_image.h:109
@ AOM_Q
Definition: aom_encoder.h:188
unsigned int rc_max_quantizer
Maximum (Worst Quality) Quantizer.
Definition: aom_encoder.h:646
union aom_codec_cx_pkt::@1 data
aom_chroma_sample_position_t csp
Definition: aom_image.h:177
@ AV1E_SET_ENABLE_CDEF
Codec control function to encode with CDEF, unsigned int parameter.
Definition: aomcx.h:622
@ AV1E_SET_FILM_GRAIN_TABLE
Codec control function to set the path to the film grain parameters, const char* parameter.
Definition: aomcx.h:1113
@ AOM_CICP_MC_IDENTITY
Definition: aom_image.h:105
@ AV1E_SET_FILM_GRAIN_TEST_VECTOR
Codec control function to add film grain parameters (one of several preset types) info in the bitstre...
Definition: aomcx.h:1108
@ AV1D_EXT_TILE_DEBUG
Codec control function to enable the ext-tile software debug and testing code in the decoder,...
Definition: aomdx.h:248
unsigned int bit_depth
Definition: aom_image.h:183
@ AV1D_SET_EXT_REF_PTR
Codec control function to set the external references' pointers in the decoder, av1_ext_ref_frame_t* ...
Definition: aomdx.h:243
@ AV1E_SET_MAX_INTER_BITRATE_PCT
Codec control function to set max data rate for inter frames, unsigned int parameter.
Definition: aomcx.h:288
@ AOM_KF_DISABLED
Definition: aom_encoder.h:202
@ AV1E_SET_ENABLE_GLOBAL_MOTION
Codec control function to turn on / off global motion usage for a sequence, int parameter.
Definition: aomcx.h:964
struct aom_codec_cx_pkt::@1::@2 frame
unsigned int rows
Definition: aomcx.h:1308
aom_image_t * aom_codec_get_frame(aom_codec_ctx_t *ctx, aom_codec_iter_t *iter)
Decoded frames iterator.
@ AOM_CICP_CP_BT_470_M
Definition: aom_image.h:63
Encoder output packet.
Definition: aom_encoder.h:131
@ AV1D_GET_FRAME_SIZE
Codec control function to get the dimensions that the current frame is decoded at,...
Definition: aomdx.h:132
@ AOM_CICP_MC_CHROMAT_CL
Definition: aom_image.h:120
@ AV1E_SET_ENABLE_ORDER_HINT
Codec control function to turn on / off frame order hint (int parameter). Affects: joint compound mod...
Definition: aomcx.h:813
size_t size
Definition: aom_frame_buffer.h:42
unsigned int d_w
Definition: aom_image.h:186
#define AOM_EFLAG_NO_UPD_ARF
Don't update the alternate reference frame.
Definition: aomcx.h:114
@ AV1E_SET_SVC_PARAMS
Codec control function to set SVC paramaeters, aom_svc_params_t* parameter.
Definition: aomcx.h:1219
const char * aom_codec_error(aom_codec_ctx_t *ctx)
Retrieve error synopsis for codec context.
@ AV1E_SET_TILE_COLUMNS
Codec control function to set number of tile columns. unsigned int parameter.
Definition: aomcx.h:343
@ AOM_CICP_MC_CHROMAT_NCL
Definition: aom_image.h:118
@ AOM_CICP_TC_SMPTE_2084
Definition: aom_image.h:97
#define AOM_PLANE_V
Definition: aom_image.h:201
@ AV1E_SET_SVC_REF_FRAME_CONFIG
Codec control function to set reference frame config: the ref_idx and the refresh flags for each buff...
Definition: aomcx.h:1225
@ AV1E_SET_ENABLE_QM
Codec control function to encode with quantisation matrices, unsigned int parameter.
Definition: aomcx.h:666
#define AOM_EFLAG_NO_REF_LAST2
Don't reference the last2 frame.
Definition: aomcx.h:57
@ AOM_CICP_TC_BT_470_M
Definition: aom_image.h:84
@ AOM_KF_AUTO
Definition: aom_encoder.h:201
@ AV1E_SET_ENABLE_INTERINTRA_COMP
Codec control function to turn on / off interintra compound for a sequence, int parameter.
Definition: aomcx.h:924
const void * aom_codec_iter_t
Iterator.
Definition: aom_codec.h:209
unsigned int rc_superres_mode
Frame super-resolution scaling mode.
Definition: aom_encoder.h:552
@ AOM_CODEC_STATS_PKT
Definition: aom_encoder.h:120
@ AOME_SET_SHARPNESS
Codec control function to set sharpness, unsigned int parameter.
Definition: aomcx.h:206
unsigned int g_h
Height of the frame.
Definition: aom_encoder.h:417
@ AV1E_SET_ENABLE_INTERINTRA_WEDGE
Codec control function to turn on / off interintra wedge compound, int parameter.
Definition: aomcx.h:956
@ AV1E_SET_DENOISE_BLOCK_SIZE
Sets the denoisers block size, unsigned int parameter.
Definition: aomcx.h:1119
@ AOM_CICP_TC_SRGB
Definition: aom_image.h:94
@ AV1_GET_NEW_FRAME_IMAGE
Definition: aom.h:59
int spatial_layer_id
Definition: aomcx.h:1356
Provides definitions for using AOM or AV1 within the aom Decoder interface.
@ AOM_CODEC_CX_FRAME_PKT
Definition: aom_encoder.h:119
unsigned int save_as_annexb
Bitstream syntax mode.
Definition: aom_encoder.h:824
@ AV1E_SET_DENOISE_NOISE_LEVEL
Sets the noise level, int parameter.
Definition: aomcx.h:1116
#define AOM_EFLAG_NO_REF_ARF2
Don't reference the alt2 reference frame.
Definition: aomcx.h:93
@ AV1E_SET_ENABLE_SMOOTH_INTERINTRA
Codec control function to turn on / off smooth inter-intra mode for a sequence, int parameter.
Definition: aomcx.h:932
@ AOM_CICP_MC_BT_709
Definition: aom_image.h:106
size_t sz
Definition: aom_image.h:204
#define aom_codec_enc_init(ctx, iface, cfg, flags)
Convenience macro for aom_codec_enc_init_ver()
Definition: aom_encoder.h:941
@ AOME_SET_CQ_LEVEL
Codec control function to set constrained / constant quality level, unsigned int parameter.
Definition: aomcx.h:255
double psnr[4]
Definition: aom_encoder.h:154
Structure to hold a tile's start address and size in the bitstream.
Definition: aomdx.h:83
Image Descriptor.
Definition: aom_image.h:171
@ AV1E_SET_ENABLE_KEYFRAME_FILTERING
Codec control function to enable temporal filtering on key frame, unsigned int parameter.
Definition: aomcx.h:377
int stride[3]
Definition: aom_image.h:203
@ AV1E_SET_LOSSLESS
Codec control function to set lossless encoding mode, unsigned int parameter.
Definition: aomcx.h:316
size_t sz
Definition: aom_encoder.h:78
@ AOM_CICP_TC_BT_601
Definition: aom_image.h:86
enum aom_codec_cx_pkt_kind kind
Definition: aom_encoder.h:132
struct aom_rational g_timebase
Stream timebase units.
Definition: aom_encoder.h:466
#define AOM_CODEC_USE_PSNR
Initialization-time Feature Enabling.
Definition: aom_encoder.h:68
@ AV1D_GET_TILE_SIZE
Codec control function to get the size of the tile, unsigned int parameter.
Definition: aomdx.h:153
unsigned int g_threads
Maximum number of threads to use.
Definition: aom_encoder.h:389
@ AV1E_SET_ENABLE_TPL_MODEL
Codec control function to enable RDO modulated by frame temporal dependency, unsigned int parameter.
Definition: aomcx.h:369
@ AOM_CICP_TC_BT_470_B_G
Definition: aom_image.h:85
@ AV1E_SET_ERROR_RESILIENT_MODE
Codec control function to enable error_resilient_mode, int parameter.
Definition: aomcx.h:402
@ AV1E_SET_ENABLE_RESTORATION
Codec control function to encode with Loop Restoration Filter, unsigned int parameter.
Definition: aomcx.h:630
Encoder Config Options.
Definition: aom_encoder.h:210
@ AV1E_SET_ENABLE_RECT_PARTITIONS
Codec control function to enable/disable rectangular partitions, int parameter.
Definition: aomcx.h:758
@ AV1E_SET_ENABLE_DUAL_FILTER
Codec control function to turn on / off dual interpolation filter for a sequence, int parameter.
Definition: aomcx.h:892
int aom_img_plane_height(const aom_image_t *img, int plane)
Get the height of a plane.
const char * aom_codec_error_detail(aom_codec_ctx_t *ctx)
Retrieve detailed error information for codec context.
@ AOME_SET_TUNING
Codec control function to set visual tuning, aom_tune_metric (int) parameter.
Definition: aomcx.h:245
@ AOM_CICP_CP_GENERIC_FILM
Definition: aom_image.h:67
aom_bit_depth_t g_bit_depth
Bit-depth of the codec.
Definition: aom_encoder.h:444
@ AV1E_SET_ENABLE_AB_PARTITIONS
Codec control function to enable/disable AB partitions, int parameter.
Definition: aomcx.h:766
#define AOM_FRAME_IS_KEY
Definition: aom_encoder.h:89
unsigned int max_partition_size
max partition size 8, 16, 32, 64, 128
Definition: aom_encoder.h:222
int ref_idx[7]
Definition: aomcx.h:1380
unsigned int rc_buf_optimal_sz
Decoder Buffer Optimal Size.
Definition: aom_encoder.h:707
@ AV1E_SET_GF_MAX_PYRAMID_HEIGHT
Control to select maximum height for the GF group pyramid structure, unsigned int parameter.
Definition: aomcx.h:1148
unsigned int kf_max_dist
Keyframe maximum interval.
Definition: aom_encoder.h:770
unsigned int large_scale_tile
Tile coding mode.
Definition: aom_encoder.h:800
#define AOM_IMG_FMT_HIGHBITDEPTH
Definition: aom_image.h:38
aom_codec_err_t aom_codec_control(aom_codec_ctx_t *ctx, int ctrl_id,...)
Algorithm Control.
@ AV1E_SET_ENABLE_ONESIDED_COMP
Codec control function to turn on / off one sided compound usage for a sequence, int parameter.
Definition: aomcx.h:916
void * buf
Definition: aom_encoder.h:77
@ AV1E_SET_CHROMA_SUBSAMPLING_Y
Sets the chroma subsampling y value, unsigned int parameter.
Definition: aomcx.h:1125
@ AV1E_SET_ENABLE_MASKED_COMP
Codec control function to turn on / off masked compound usage (wedge and diff-wtd compound modes) for...
Definition: aomcx.h:908
@ AV1E_SET_ENABLE_FILTER_INTRA
Codec control function to turn on / off filter intra usage at sequence level, int parameter.
Definition: aomcx.h:994
#define AOM_EFLAG_NO_REF_ARF
Don't reference the alternate reference frame.
Definition: aomcx.h:79
@ AOME_SET_NUMBER_SPATIAL_LAYERS
Codec control function to set number of spatial layers, int parameter.
Definition: aomcx.h:274
@ AV1E_SET_ENABLE_INTRA_EDGE_FILTER
Codec control function to turn on / off intra edge filter at sequence level, int parameter.
Definition: aomcx.h:804
int temporal_layer_id
Definition: aomcx.h:1357
unsigned int kf_min_dist
Keyframe minimum interval.
Definition: aom_encoder.h:761
@ AV1_SET_REFERENCE
Definition: aom.h:53
unsigned char * img_data
Definition: aom_image.h:217
@ AV1E_SET_REDUCED_TX_TYPE_SET
Control to use a reduced tx type set, int parameter.
Definition: aomcx.h:1128
int num
Definition: aom_encoder.h:172
@ AV1E_SET_CHROMA_SUBSAMPLING_X
Sets the chroma subsampling x value, unsigned int parameter.
Definition: aomcx.h:1122
@ AV1E_SET_MAX_REFERENCE_FRAMES
Control to select maximum reference frames allowed per frame, int parameter.
Definition: aomcx.h:1155
@ AV1E_SET_ENABLE_REF_FRAME_MVS
Codec control function to turn on / off ref frame mvs (mfmv) usage at sequence level,...
Definition: aomcx.h:873
@ AOM_CICP_CP_UNSPECIFIED
Definition: aom_image.h:61
unsigned int h
Definition: aom_decoder.h:73