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_H_
32 #define 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_H_