vpx_frame_buffer.h
Go to the documentation of this file.
/*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef VPX_VPX_VPX_FRAME_BUFFER_H_
#define VPX_VPX_VPX_FRAME_BUFFER_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "./vpx_integer.h"
#define VPX_MAXIMUM_WORK_BUFFERS 8
#define VP9_MAXIMUM_REF_BUFFERS 8
typedef struct vpx_codec_frame_buffer {
uint8_t *data;
size_t size;
void *priv;
} vpx_codec_frame_buffer_t;
typedef int (*vpx_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size,
vpx_codec_frame_buffer_t *fb);
typedef int (*vpx_release_frame_buffer_cb_fn_t)(void *priv,
vpx_codec_frame_buffer_t *fb);
#ifdef __cplusplus
} // extern "C"
#endif
#endif // VPX_VPX_VPX_FRAME_BUFFER_H_
vpx_codec_frame_buffer
External frame buffer.
Definition vpx_frame_buffer.h:39
vpx_codec_frame_buffer::priv
void * priv
Definition vpx_frame_buffer.h:42
vpx_codec_frame_buffer::size
size_t size
Definition vpx_frame_buffer.h:41
vpx_codec_frame_buffer::data
uint8_t * data
Definition vpx_frame_buffer.h:40
vpx_get_frame_buffer_cb_fn_t
int(* vpx_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size, vpx_codec_frame_buffer_t *fb)
get frame buffer callback prototype
Definition vpx_frame_buffer.h:63
vpx_release_frame_buffer_cb_fn_t
int(* vpx_release_frame_buffer_cb_fn_t)(void *priv, vpx_codec_frame_buffer_t *fb)
release frame buffer callback prototype
Definition vpx_frame_buffer.h:76
vpx_codec_frame_buffer_t
struct vpx_codec_frame_buffer vpx_codec_frame_buffer_t
External frame buffer.