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 
46  /* TODO(https://crbug.com/aomedia/2671): The encoder overlaps the range of
47  * these values for its control ids, see the NOTEs in aom/aomcx.h. These
48  * should be migrated to something like the AOM_DECODER_CTRL_ID_START range
49  * next time we're ready to break the ABI.
50  */
51  AV1_GET_REFERENCE = 128,
53  AV1_SET_REFERENCE = 129,
55  AV1_COPY_REFERENCE = 130,
57  AOM_COMMON_CTRL_ID_MAX,
58 
60  192,
64  AOM_DECODER_CTRL_ID_START = 256
65 };
66 
71 typedef struct av1_ref_frame {
72  int idx;
76 
88 #define AOM_CTRL_AV1_GET_REFERENCE
89 
91 #define AOM_CTRL_AV1_SET_REFERENCE
92 
94 #define AOM_CTRL_AV1_COPY_REFERENCE
95 
97 #define AOM_CTRL_AV1_GET_NEW_FRAME_IMAGE
98 
100 #define AOM_CTRL_AV1_COPY_NEW_FRAME_IMAGE
101 
105 #ifdef __cplusplus
106 } // extern "C"
107 #endif
108 
109 #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
@ AV1_GET_NEW_FRAME_IMAGE
Definition: aom.h:59
@ AV1_GET_REFERENCE
Definition: aom.h:51
@ AV1_SET_REFERENCE
Definition: aom.h:53
@ AV1_COPY_NEW_FRAME_IMAGE
Definition: aom.h:61
@ AV1_COPY_REFERENCE
Definition: aom.h:55
#define AOM_CTRL_USE_TYPE(id, typ)
Creates typechecking mechanisms for aom_codec_control.
Definition: aom_codec.h:436
Image Descriptor.
Definition: aom_image.h:171
AV1 specific reference frame data struct.
Definition: aom.h:71
int use_external_ref
Definition: aom.h:73
aom_image_t img
Definition: aom.h:74
int idx
Definition: aom.h:72