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
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
39typedef struct vpx_codec_frame_buffer {
40 uint8_t *data;
41 size_t size;
42 void *priv;
44
63typedef int (*vpx_get_frame_buffer_cb_fn_t)(void *priv, size_t min_size,
65
76typedef int (*vpx_release_frame_buffer_cb_fn_t)(void *priv,
78
79#ifdef __cplusplus
80} // extern "C"
81#endif
82
83#endif // VPX_VPX_VPX_FRAME_BUFFER_H_
External frame buffer.
Definition: vpx_frame_buffer.h:39
void * priv
Definition: vpx_frame_buffer.h:42
size_t size
Definition: vpx_frame_buffer.h:41
uint8_t * data
Definition: vpx_frame_buffer.h:40
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
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
struct vpx_codec_frame_buffer vpx_codec_frame_buffer_t
External frame buffer.