aom_frame_buffer.h
Go to the documentation of this file.
/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved.
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at www.aomedia.org/license/software. If the Alliance for Open
* Media Patent License 1.0 was not distributed with this source code in the
* PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/
#ifndef AOM_AOM_AOM_FRAME_BUFFER_H_
#define AOM_AOM_AOM_FRAME_BUFFER_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "aom/aom_integer.h"
#define AOM_MAXIMUM_WORK_BUFFERS 8
#define AOM_MAXIMUM_REF_BUFFERS 8
typedef struct aom_codec_frame_buffer {
uint8_t *data;
size_t size;
void *priv;
} aom_codec_frame_buffer_t;
typedef int (*aom_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size,
aom_codec_frame_buffer_t *fb);
typedef int (*aom_release_frame_buffer_cb_fn_t)(void *priv,
aom_codec_frame_buffer_t *fb);
#ifdef __cplusplus
} // extern "C"
#endif
#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