11 #ifndef AOM_AOM_DECODER_H_
12 #define AOM_AOM_DECODER_H_
44 #define AOM_DECODER_ABI_VERSION \
45 (3 + AOM_CODEC_ABI_VERSION)
55 #define AOM_CODEC_CAP_PUT_SLICE 0x10000
56 #define AOM_CODEC_CAP_PUT_FRAME 0x20000
57 #define AOM_CODEC_CAP_POSTPROC 0x40000
59 #define AOM_CODEC_CAP_INPUT_FRAGMENTS 0x100000
69 #define AOM_CODEC_CAP_FRAME_THREADING 0x200000
71 #define AOM_CODEC_CAP_EXTERNAL_FRAME_BUFFER 0x400000
73 #define AOM_CODEC_USE_POSTPROC 0x10000
76 #define AOM_CODEC_USE_INPUT_FRAGMENTS 0x40000
142 #define aom_codec_dec_init(ctx, iface, cfg, flags) \
143 aom_codec_dec_init_ver(ctx, iface, cfg, flags, AOM_DECODER_ABI_VERSION)
167 const uint8_t *data,
size_t data_sz,
216 size_t data_sz,
void *user_priv);
364 #endif // AOM_AOM_DECODER_H_
Describes the decoder external frame buffer interface.
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_codec_err_t aom_codec_get_stream_info(aom_codec_ctx_t *ctx, aom_codec_stream_info_t *si)
Return information about the current stream.
aom_image_t * aom_codec_get_frame(aom_codec_ctx_t *ctx, aom_codec_iter_t *iter)
Decoded frames iterator.
unsigned int is_annexb
Definition: aom_decoder.h:89
Codec context structure.
Definition: aom_codec.h:204
Image Descriptor.
Definition: aom_image.h:141
Representation of a rectangle on a surface.
Definition: aom_image.h:196
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.
const struct aom_codec_iface aom_codec_iface_t
Codec interface structure.
Definition: aom_codec.h:181
struct aom_codec_stream_info aom_codec_stream_info_t
Stream properties.
Config Options.
Definition: aom_codec.h:542
unsigned int is_kf
Definition: aom_decoder.h:86
aom_codec_err_t aom_codec_register_put_slice_cb(aom_codec_ctx_t *ctx, aom_codec_put_slice_cb_fn_t cb, void *user_priv)
Register for notification of slice completion.
Describes the codec algorithm interface to applications.
unsigned int h
Definition: aom_decoder.h:85
aom_codec_err_t aom_codec_dec_init_ver(aom_codec_ctx_t *ctx, aom_codec_iface_t *iface, const aom_codec_dec_cfg_t *cfg, aom_codec_flags_t flags, int ver)
Initialize a decoder instance.
Initialization Configurations.
Definition: aom_decoder.h:103
aom_codec_err_t aom_codec_register_put_frame_cb(aom_codec_ctx_t *ctx, aom_codec_put_frame_cb_fn_t cb, void *user_priv)
Register for notification of frame completion.
Stream properties.
Definition: aom_decoder.h:83
unsigned int w
Definition: aom_decoder.h:84
unsigned int number_spatial_layers
Definition: aom_decoder.h:87
void(* aom_codec_put_frame_cb_fn_t)(void *user_priv, const aom_image_t *img)
put frame callback prototype
Definition: aom_decoder.h:251
struct aom_codec_dec_cfg aom_codec_dec_cfg_t
Initialization Configurations.
int(* aom_release_frame_buffer_cb_fn_t)(void *priv, aom_codec_frame_buffer_t *fb)
release frame buffer callback prototype
Definition: aom_frame_buffer.h:77
int(* aom_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size, aom_codec_frame_buffer_t *fb)
get frame buffer callback prototype
Definition: aom_frame_buffer.h:64
const void * aom_codec_iter_t
Iterator.
Definition: aom_codec.h:194
cfg_options_t cfg
Definition: aom_decoder.h:108
unsigned int h
Definition: aom_decoder.h:106
long aom_codec_flags_t
Initialization-time Feature Enabling.
Definition: aom_codec.h:174
void(* aom_codec_put_slice_cb_fn_t)(void *user_priv, const aom_image_t *img, const aom_image_rect_t *valid, const aom_image_rect_t *update)
put slice callback prototype
Definition: aom_decoder.h:290
unsigned int allow_lowbitdepth
Definition: aom_decoder.h:107
aom_codec_err_t
Algorithm return codes.
Definition: aom_codec.h:101
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.
unsigned int w
Definition: aom_decoder.h:105
unsigned int threads
Definition: aom_decoder.h:104
unsigned int number_temporal_layers
Definition: aom_decoder.h:88