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
38 extern "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 
96 typedef struct aom_postproc_cfg {
103 
108 typedef 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_
AOM_SET_DBG_DISPLAY_MV
@ AOM_SET_DBG_DISPLAY_MV
Definition: aom.h:53
AOM_SET_DBG_COLOR_B_MODES
@ AOM_SET_DBG_COLOR_B_MODES
Definition: aom.h:52
AV1_COPY_REFERENCE
@ AV1_COPY_REFERENCE
Definition: aom.h:61
AOM_DEBUG_TXT_MBLK_MODES
@ AOM_DEBUG_TXT_MBLK_MODES
Definition: aom.h:82
av1_ref_frame::use_external_ref
int use_external_ref
Definition: aom.h:110
aom_postproc_cfg::noise_level
int noise_level
Definition: aom.h:101
av1_ref_frame
AV1 specific reference frame data struct.
Definition: aom.h:108
aom_postproc_cfg
post process flags
Definition: aom.h:96
aom_postproc_cfg::deblocking_level
int deblocking_level
Definition: aom.h:100
aom_codec.h
Describes the codec algorithm interface to applications.
AOM_CTRL_USE_TYPE
#define AOM_CTRL_USE_TYPE(id, typ)
aom_codec_control type definition macro
Definition: aom_codec.h:429
AOM_SET_DBG_COLOR_REF_FRAME
@ AOM_SET_DBG_COLOR_REF_FRAME
Definition: aom.h:49
AOM_DEBUG_TXT_FRAME_INFO
@ AOM_DEBUG_TXT_FRAME_INFO
Definition: aom.h:81
av1_ref_frame::img
aom_image_t img
Definition: aom.h:111
AV1_GET_REFERENCE
@ AV1_GET_REFERENCE
Definition: aom.h:59
AV1_COPY_NEW_FRAME_IMAGE
@ AV1_COPY_NEW_FRAME_IMAGE
Definition: aom.h:66
AOM_DEBUG_TXT_DC_DIFF
@ AOM_DEBUG_TXT_DC_DIFF
Definition: aom.h:84
aom_com_control_id
aom_com_control_id
Control functions.
Definition: aom.h:45
aom_postproc_cfg_t
struct aom_postproc_cfg aom_postproc_cfg_t
post process flags
aom_postproc_cfg::post_proc_flag
int post_proc_flag
the types of post processing to be done, should be combination of "aom_postproc_level"
Definition: aom.h:99
av1_ref_frame::idx
int idx
Definition: aom.h:109
AOM_DEBUG_TXT_RATE_INFO
@ AOM_DEBUG_TXT_RATE_INFO
Definition: aom.h:85
AOM_SET_POSTPROC
@ AOM_SET_POSTPROC
pass in an external frame into decoder to be used as reference frame
Definition: aom.h:48
aom_image.h
Describes the aom image descriptor and associated operations.
AV1_GET_NEW_FRAME_IMAGE
@ AV1_GET_NEW_FRAME_IMAGE
Definition: aom.h:65
aom_image
Image Descriptor.
Definition: aom_image.h:141
av1_ref_frame_t
struct av1_ref_frame av1_ref_frame_t
AV1 specific reference frame data struct.
aom_postproc_level
aom_postproc_level
post process flags
Definition: aom.h:76
AV1_SET_REFERENCE
@ AV1_SET_REFERENCE
Definition: aom.h:60
AOM_SET_DBG_COLOR_MB_MODES
@ AOM_SET_DBG_COLOR_MB_MODES
Definition: aom.h:51