WebM VP8 Codec SDK
vpx_frame_buffer.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 The WebM project authors. All Rights Reserved.
3  *
4  * Use of this source code is governed by a BSD-style license
5  * that can be found in the LICENSE file in the root of the source
6  * tree. An additional intellectual property rights grant can be found
7  * in the file PATENTS. All contributing project authors may
8  * be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef VPX_VPX_FRAME_BUFFER_H_
12 #define VPX_VPX_FRAME_BUFFER_H_
13 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #include "./vpx_integer.h"
23 
26 #define VPX_MAXIMUM_WORK_BUFFERS 1
27 
30 #define VP9_MAXIMUM_REF_BUFFERS 8
31 
36 typedef struct vpx_codec_frame_buffer {
37  uint8_t *data;
38  size_t size;
39  void *priv;
41 
61  void *priv, size_t min_size, vpx_codec_frame_buffer_t *fb);
62 
74  void *priv, vpx_codec_frame_buffer_t *fb);
75 
76 #ifdef __cplusplus
77 } // extern "C"
78 #endif
79 
80 #endif // VPX_VPX_FRAME_BUFFER_H_
struct vpx_codec_frame_buffer vpx_codec_frame_buffer_t
External frame buffer.
uint8_t * data
Definition: vpx_frame_buffer.h:37
size_t size
Definition: vpx_frame_buffer.h:38
void * priv
Definition: vpx_frame_buffer.h:39
External frame buffer.
Definition: vpx_frame_buffer.h:36
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:73
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:60