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
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
40typedef struct aom_codec_frame_buffer {
41 uint8_t *data;
42 size_t size;
43 void *priv;
45
64typedef int (*aom_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size,
66
77typedef int (*aom_release_frame_buffer_cb_fn_t)(void *priv,
79
80#ifdef __cplusplus
81} // extern "C"
82#endif
83
84#endif // AOM_AOM_AOM_FRAME_BUFFER_H_
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
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
struct aom_codec_frame_buffer aom_codec_frame_buffer_t
External frame buffer.
External frame buffer.
Definition aom_frame_buffer.h:40
uint8_t * data
Definition aom_frame_buffer.h:41
size_t size
Definition aom_frame_buffer.h:42
void * priv
Definition aom_frame_buffer.h:43