WebM Codec SDK: vpx/vpx_frame_buffer.h Source File

WebM 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_VPX_FRAME_BUFFER_H_
12#define VPX_VPX_VPX_FRAME_BUFFER_H_
13
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include "./vpx_integer.h"
23
29#define VPX_MAXIMUM_WORK_BUFFERS 8
30
33#define VP9_MAXIMUM_REF_BUFFERS 8
34
39 typedef struct vpx_codec_frame_buffer {
40 uint8_t *data;
41 size_t size;
42 void *priv;
43} vpx_codec_frame_buffer_t;
44
63 typedef int (*vpx_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size,
64 vpx_codec_frame_buffer_t *fb);
65
76 typedef int (*vpx_release_frame_buffer_cb_fn_t)(void *priv,
77 vpx_codec_frame_buffer_t *fb);
78
79#ifdef __cplusplus
80} // extern "C"
81#endif
82
83#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.