00001 /* 00002 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. 00003 * 00004 * Use of this source code is governed by a BSD-style license 00005 * that can be found in the LICENSE file in the root of the source 00006 * tree. An additional intellectual property rights grant can be found 00007 * in the file PATENTS. All contributing project authors may 00008 * be found in the AUTHORS file in the root of the source tree. 00009 */ 00010 00011 #ifndef VPX_VPX_FRAME_BUFFER_H_ 00012 #define VPX_VPX_FRAME_BUFFER_H_ 00013 00018 #ifdef __cplusplus 00019 extern "C" { 00020 #endif 00021 00022 #include "./vpx_integer.h" 00023 00029 #define VPX_MAXIMUM_WORK_BUFFERS 8 00030 00033 #define VP9_MAXIMUM_REF_BUFFERS 8 00034 00039 typedef struct vpx_codec_frame_buffer { 00040 uint8_t *data; 00041 size_t size; 00042 void *priv; 00043 } vpx_codec_frame_buffer_t; 00044 00063 typedef int (*vpx_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size, 00064 vpx_codec_frame_buffer_t *fb); 00065 00076 typedef int (*vpx_release_frame_buffer_cb_fn_t)(void *priv, 00077 vpx_codec_frame_buffer_t *fb); 00078 00079 #ifdef __cplusplus 00080 } // extern "C" 00081 #endif 00082 00083 #endif // VPX_VPX_FRAME_BUFFER_H_