AOMedia Codec SDK: aom/aomdx.h Source File

AOMedia Codec SDK

aomdx.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
21 #ifndef AOM_AOMDX_H_
22 #define AOM_AOMDX_H_
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /* Include controls common to both the encoder and decoder */
29 #include "aom/aom.h"
30
36 extern aom_codec_iface_t aom_codec_av1_dx_algo;
37 extern aom_codec_iface_t *aom_codec_av1_dx(void);
42 typedef struct Accounting Accounting;
43
44 #ifndef AOM_INSPECTION_H_
45
47 typedef void (*aom_inspect_cb)(void *decoder, void *ctx);
48 #endif
49
55 typedef struct aom_inspect_init {
57 aom_inspect_cb inspect_cb;
58
60 void *inspect_ctx;
61 } aom_inspect_init;
62
67 typedef struct aom_tile_data {
69 size_t coded_tile_data_size;
71 const void *coded_tile_data;
73 size_t extra_size;
74 } aom_tile_data;
75
80 typedef struct av1_ext_ref_frame {
82 aom_image_t *img;
84 int num;
85 } av1_ext_ref_frame_t;
86
95 enum aom_dec_control_id {
99 AOMD_GET_LAST_REF_UPDATES = AOM_DECODER_CTRL_ID_START,
100
102 AOMD_GET_FRAME_CORRUPTED,
103
107 AOMD_GET_LAST_REF_USED,
108
112 AV1D_GET_FRAME_SIZE,
113
117 AV1D_GET_DISPLAY_SIZE,
118
120 AV1D_GET_BIT_DEPTH,
121
123 AV1D_GET_IMG_FORMAT,
124
126 AV1D_GET_TILE_SIZE,
127
129 AV1D_GET_TILE_COUNT,
130
136 AV1_SET_BYTE_ALIGNMENT,
137
146 AV1_INVERT_TILE_DECODE_ORDER,
147
153 AV1_SET_SKIP_LOOP_FILTER,
154
161 AV1_GET_ACCOUNTING,
162
166 AOMD_GET_LAST_QUANTIZER,
167
174 AV1_SET_DECODE_TILE_ROW,
175 AV1_SET_DECODE_TILE_COL,
180 AV1_SET_TILE_MODE,
184 AV1D_GET_FRAME_HEADER_INFO,
188 AV1D_GET_TILE_DATA,
193 AV1D_SET_EXT_REF_PTR,
197 AV1D_EXT_TILE_DEBUG,
198
200 AV1D_SET_IS_ANNEXB,
201
208 AV1D_SET_OPERATING_POINT,
209
219 AV1D_SET_OUTPUT_ALL_LAYERS,
220
225 AV1_SET_INSPECTION_CALLBACK,
226
231 AV1D_SET_SKIP_FILM_GRAIN,
232
233 AOM_DECODER_CTRL_ID_MAX,
234 };
235
244 AOM_CTRL_USE_TYPE(AOMD_GET_LAST_REF_UPDATES, int *)
245 #define AOM_CTRL_AOMD_GET_LAST_REF_UPDATES
246 AOM_CTRL_USE_TYPE(AOMD_GET_FRAME_CORRUPTED, int *)
247 #define AOM_CTRL_AOMD_GET_FRAME_CORRUPTED
248 AOM_CTRL_USE_TYPE(AOMD_GET_LAST_REF_USED, int *)
249 #define AOM_CTRL_AOMD_GET_LAST_REF_USED
250 AOM_CTRL_USE_TYPE(AOMD_GET_LAST_QUANTIZER, int *)
251 #define AOM_CTRL_AOMD_GET_LAST_QUANTIZER
252 AOM_CTRL_USE_TYPE(AV1D_GET_DISPLAY_SIZE, int *)
253 #define AOM_CTRL_AV1D_GET_DISPLAY_SIZE
254 AOM_CTRL_USE_TYPE(AV1D_GET_BIT_DEPTH, unsigned int *)
255 #define AOM_CTRL_AV1D_GET_BIT_DEPTH
256 AOM_CTRL_USE_TYPE(AV1D_GET_IMG_FORMAT, aom_img_fmt_t *)
257 #define AOM_CTRL_AV1D_GET_IMG_FORMAT
258 AOM_CTRL_USE_TYPE(AV1D_GET_TILE_SIZE, unsigned int *)
259 #define AOM_CTRL_AV1D_GET_TILE_SIZE
260 AOM_CTRL_USE_TYPE(AV1D_GET_TILE_COUNT, unsigned int *)
261 #define AOM_CTRL_AV1D_GET_TILE_COUNT
262 AOM_CTRL_USE_TYPE(AV1D_GET_FRAME_SIZE, int *)
263 #define AOM_CTRL_AV1D_GET_FRAME_SIZE
264 AOM_CTRL_USE_TYPE(AV1_INVERT_TILE_DECODE_ORDER, int)
265 #define AOM_CTRL_AV1_INVERT_TILE_DECODE_ORDER
266 AOM_CTRL_USE_TYPE(AV1_GET_ACCOUNTING, Accounting **)
267 #define AOM_CTRL_AV1_GET_ACCOUNTING
268 AOM_CTRL_USE_TYPE(AV1_SET_DECODE_TILE_ROW, int)
269 #define AOM_CTRL_AV1_SET_DECODE_TILE_ROW
270 AOM_CTRL_USE_TYPE(AV1_SET_DECODE_TILE_COL, int)
271 #define AOM_CTRL_AV1_SET_DECODE_TILE_COL
272 AOM_CTRL_USE_TYPE(AV1_SET_TILE_MODE, unsigned int)
273 #define AOM_CTRL_AV1_SET_TILE_MODE
274 AOM_CTRL_USE_TYPE(AV1D_GET_FRAME_HEADER_INFO, aom_tile_data *)
275 #define AOM_CTRL_AV1D_GET_FRAME_HEADER_INFO
276 AOM_CTRL_USE_TYPE(AV1D_GET_TILE_DATA, aom_tile_data *)
277 #define AOM_CTRL_AV1D_GET_TILE_DATA
278 AOM_CTRL_USE_TYPE(AV1D_SET_EXT_REF_PTR, av1_ext_ref_frame_t *)
279 #define AOM_CTRL_AV1D_SET_EXT_REF_PTR
280 AOM_CTRL_USE_TYPE(AV1D_EXT_TILE_DEBUG, unsigned int)
281 #define AOM_CTRL_AV1D_EXT_TILE_DEBUG
282 AOM_CTRL_USE_TYPE(AV1D_SET_SKIP_FILM_GRAIN, int)
283 #define AOM_CTRL_AV1D_SET_SKIP_FILM_GRAIN
284 AOM_CTRL_USE_TYPE(AV1D_SET_IS_ANNEXB, unsigned int)
285 #define AOM_CTRL_AV1D_SET_IS_ANNEXB
286 AOM_CTRL_USE_TYPE(AV1D_SET_OPERATING_POINT, int)
287 #define AOM_CTRL_AV1D_SET_OPERATING_POINT
288 AOM_CTRL_USE_TYPE(AV1D_SET_OUTPUT_ALL_LAYERS, int)
289 #define AOM_CTRL_AV1D_SET_OUTPUT_ALL_LAYERS
290 AOM_CTRL_USE_TYPE(AV1_SET_INSPECTION_CALLBACK, aom_inspect_init *)
291 #define AOM_CTRL_AV1_SET_INSPECTION_CALLBACK
292
295 #ifdef __cplusplus
296 } // extern "C"
297 #endif
298
299 #endif // AOM_AOMDX_H_
AV1D_SET_SKIP_FILM_GRAIN
Definition: aomdx.h:231
aom_inspect_cb
void(* aom_inspect_cb)(void *decoder, void *ctx)
Definition: aomdx.h:47
aom_tile_data
struct aom_tile_data aom_tile_data
Structure to hold a tile's start address and size in the bitstream.
AV1D_GET_FRAME_HEADER_INFO
Definition: aomdx.h:184
AV1D_SET_OPERATING_POINT
Definition: aomdx.h:208
aom_inspect_init::inspect_cb
aom_inspect_cb inspect_cb
Definition: aomdx.h:57
AV1D_GET_TILE_COUNT
Definition: aomdx.h:129
aom_img_fmt_t
enum aom_img_fmt aom_img_fmt_t
List of supported image formats.
AV1D_SET_IS_ANNEXB
Definition: aomdx.h:200
AV1D_GET_TILE_DATA
Definition: aomdx.h:188
aom.h
Provides controls common to both the AOM encoder and decoder.
AV1D_GET_TILE_SIZE
Definition: aomdx.h:126
aom_inspect_init
struct aom_inspect_init aom_inspect_init
Structure to hold inspection callback and context.
AV1D_SET_EXT_REF_PTR
Definition: aomdx.h:193
AV1D_GET_FRAME_SIZE
Definition: aomdx.h:112
aom_image
Image Descriptor.
Definition: aom_image.h:141
aom_tile_data
Structure to hold a tile's start address and size in the bitstream.
Definition: aomdx.h:67
AOMD_GET_FRAME_CORRUPTED
Definition: aomdx.h:102
aom_codec_iface_t
const struct aom_codec_iface aom_codec_iface_t
Codec interface structure.
Definition: aom_codec.h:181
AV1_INVERT_TILE_DECODE_ORDER
Definition: aomdx.h:146
AOMD_GET_LAST_REF_UPDATES
Definition: aomdx.h:99
AOM_CTRL_USE_TYPE
#define AOM_CTRL_USE_TYPE(id, typ)
aom_codec_control type definition macro
Definition: aom_codec.h:438
AV1D_GET_IMG_FORMAT
Definition: aomdx.h:123
AV1D_EXT_TILE_DEBUG
Definition: aomdx.h:197
AV1_SET_INSPECTION_CALLBACK
Definition: aomdx.h:225
aom_tile_data::extra_size
size_t extra_size
Definition: aomdx.h:73
aom_inspect_init::inspect_ctx
void * inspect_ctx
Definition: aomdx.h:60
AOMD_GET_LAST_QUANTIZER
Definition: aomdx.h:166
AV1_SET_BYTE_ALIGNMENT
Definition: aomdx.h:136
aom_inspect_init
Structure to hold inspection callback and context.
Definition: aomdx.h:55
AV1_SET_DECODE_TILE_ROW
Definition: aomdx.h:174
aom_tile_data::coded_tile_data_size
size_t coded_tile_data_size
Definition: aomdx.h:69
AV1_SET_TILE_MODE
Definition: aomdx.h:180
av1_ext_ref_frame::img
aom_image_t * img
Definition: aomdx.h:82
aom_tile_data::coded_tile_data
const void * coded_tile_data
Definition: aomdx.h:71
AV1D_SET_OUTPUT_ALL_LAYERS
Definition: aomdx.h:219
AOMD_GET_LAST_REF_USED
Definition: aomdx.h:107
av1_ext_ref_frame::num
int num
Definition: aomdx.h:84
av1_ext_ref_frame
Structure to hold the external reference frame pointer.
Definition: aomdx.h:80
aom_dec_control_id
aom_dec_control_id
AOM decoder control functions.
Definition: aomdx.h:95
AV1D_GET_BIT_DEPTH
Definition: aomdx.h:120
AV1_SET_SKIP_LOOP_FILTER
Definition: aomdx.h:153
AV1D_GET_DISPLAY_SIZE
Definition: aomdx.h:117
av1_ext_ref_frame_t
struct av1_ext_ref_frame av1_ext_ref_frame_t
Structure to hold the external reference frame pointer.
Accounting
struct Accounting Accounting
Definition: aomdx.h:42
AV1_GET_ACCOUNTING
Definition: aomdx.h:161