AOMedia AV1 Codec: aom/aom_frame_buffer.h Source File

| AOMedia AV1 Codec

aom_frame_buffer.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
12#ifndef AOM_AOM_AOM_FRAME_BUFFER_H_
13#define AOM_AOM_AOM_FRAME_BUFFER_H_
14
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#include "aom/aom_integer.h"
24
30#define AOM_MAXIMUM_WORK_BUFFERS 8
31
34#define AOM_MAXIMUM_REF_BUFFERS 8
35
40 typedef struct aom_codec_frame_buffer {
41 uint8_t *data;
42 size_t size;
43 void *priv;
44} aom_codec_frame_buffer_t;
45
64 typedef int (*aom_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size,
65 aom_codec_frame_buffer_t *fb);
66
77 typedef int (*aom_release_frame_buffer_cb_fn_t)(void *priv,
78 aom_codec_frame_buffer_t *fb);
79
80#ifdef __cplusplus
81} // extern "C"
82#endif
83
84#endif // AOM_AOM_AOM_FRAME_BUFFER_H_
aom_get_frame_buffer_cb_fn_t
int(* aom_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size, aom_codec_frame_buffer_t *fb)
get frame buffer callback prototype
Definition aom_frame_buffer.h:64
aom_release_frame_buffer_cb_fn_t
int(* aom_release_frame_buffer_cb_fn_t)(void *priv, aom_codec_frame_buffer_t *fb)
release frame buffer callback prototype
Definition aom_frame_buffer.h:77
aom_codec_frame_buffer_t
struct aom_codec_frame_buffer aom_codec_frame_buffer_t
External frame buffer.
aom_codec_frame_buffer
External frame buffer.
Definition aom_frame_buffer.h:40
aom_codec_frame_buffer::data
uint8_t * data
Definition aom_frame_buffer.h:41
aom_codec_frame_buffer::size
size_t size
Definition aom_frame_buffer.h:42
aom_codec_frame_buffer::priv
void * priv
Definition aom_frame_buffer.h:43