AOMedia Codec SDK
aom.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
31#ifndef AOM_AOM_AOM_H_
32#define AOM_AOM_AOM_H_
33
34#include "aom/aom_codec.h"
35#include "aom/aom_image.h"
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
50 4,
55 /* TODO(jkoleszar): The encoder incorrectly reuses some of these values (5+)
56 * for its control ids. These should be migrated to something like the
57 * AOM_DECODER_CTRL_ID_START range next time we're ready to break the ABI.
58 */
62 130,
63 AOM_COMMON_CTRL_ID_MAX,
64
67 193,
69 AOM_DECODER_CTRL_ID_START = 256
70};
71
77 AOM_NOFILTERING = 0,
78 AOM_DEBLOCK = 1 << 0,
79 AOM_DEMACROBLOCK = 1 << 1,
80 AOM_ADDNOISE = 1 << 2,
83 1 << 4,
86 AOM_MFQE = 1 << 10
87};
88
96typedef struct aom_postproc_cfg {
103
108typedef struct av1_ref_frame {
109 int idx;
113
120#define AOM_CTRL_AOM_SET_POSTPROC
122#define AOM_CTRL_AOM_SET_DBG_COLOR_REF_FRAME
124#define AOM_CTRL_AOM_SET_DBG_COLOR_MB_MODES
126#define AOM_CTRL_AOM_SET_DBG_COLOR_B_MODES
128#define AOM_CTRL_AOM_SET_DBG_DISPLAY_MV
130#define AOM_CTRL_AV1_GET_REFERENCE
132#define AOM_CTRL_AV1_SET_REFERENCE
134#define AOM_CTRL_AV1_COPY_REFERENCE
136#define AOM_CTRL_AV1_GET_NEW_FRAME_IMAGE
138#define AOM_CTRL_AV1_COPY_NEW_FRAME_IMAGE
139
143#ifdef __cplusplus
144} // extern "C"
145#endif
146
147#endif // AOM_AOM_AOM_H_
Describes the codec algorithm interface to applications.
Describes the aom image descriptor and associated operations.
struct av1_ref_frame av1_ref_frame_t
AV1 specific reference frame data struct.
aom_com_control_id
Control functions.
Definition: aom.h:45
aom_postproc_level
post process flags
Definition: aom.h:76
struct aom_postproc_cfg aom_postproc_cfg_t
post process flags
@ AOM_SET_POSTPROC
pass in an external frame into decoder to be used as reference frame
Definition: aom.h:48
@ AV1_GET_NEW_FRAME_IMAGE
Definition: aom.h:65
@ AV1_GET_REFERENCE
Definition: aom.h:59
@ AV1_SET_REFERENCE
Definition: aom.h:60
@ AOM_SET_DBG_COLOR_REF_FRAME
Definition: aom.h:49
@ AOM_SET_DBG_COLOR_B_MODES
Definition: aom.h:52
@ AV1_COPY_NEW_FRAME_IMAGE
Definition: aom.h:66
@ AOM_SET_DBG_COLOR_MB_MODES
Definition: aom.h:51
@ AV1_COPY_REFERENCE
Definition: aom.h:61
@ AOM_SET_DBG_DISPLAY_MV
Definition: aom.h:53
@ AOM_DEBUG_TXT_RATE_INFO
Definition: aom.h:85
@ AOM_DEBUG_TXT_DC_DIFF
Definition: aom.h:84
@ AOM_DEBUG_TXT_MBLK_MODES
Definition: aom.h:82
@ AOM_DEBUG_TXT_FRAME_INFO
Definition: aom.h:81
#define AOM_CTRL_USE_TYPE(id, typ)
aom_codec_control type definition macro
Definition: aom_codec.h:429
Image Descriptor.
Definition: aom_image.h:141
post process flags
Definition: aom.h:96
int post_proc_flag
the types of post processing to be done, should be combination of "aom_postproc_level"
Definition: aom.h:99
int noise_level
Definition: aom.h:101
int deblocking_level
Definition: aom.h:100
AV1 specific reference frame data struct.
Definition: aom.h:108
int use_external_ref
Definition: aom.h:110
aom_image_t img
Definition: aom.h:111
int idx
Definition: aom.h:109