World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
buffer.h
См. документацию.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
25 #ifndef AVUTIL_BUFFER_H
26 #define AVUTIL_BUFFER_H
27 
28 #include <stdint.h>
29 
73 typedef struct AVBuffer AVBuffer;
74 
81 typedef struct AVBufferRef {
83 
93  int size;
94 } AVBufferRef;
95 
102 
108 
113 #define AV_BUFFER_FLAG_READONLY (1 << 0)
114 
131  void (*free)(void *opaque, uint8_t *data),
132  void *opaque, int flags);
133 
139 void av_buffer_default_free(void *opaque, uint8_t *data);
140 
148 
156 
164 
168 void *av_buffer_get_opaque(const AVBufferRef *buf);
169 
171 
182 
199 
238 typedef struct AVBufferPool AVBufferPool;
239 
250 
265 AVBufferPool *av_buffer_pool_init2(int size, void *opaque,
266  AVBufferRef* (*alloc)(void *opaque, int size),
267  void (*pool_free)(void *opaque));
268 
278 
286 
291 #endif /* AVUTIL_BUFFER_H */
av_buffer_alloc
AVBufferRef * av_buffer_alloc(int size)
av_buffer_realloc
int av_buffer_realloc(AVBufferRef **buf, int size)
AVBuffer
struct AVBuffer AVBuffer
Definition: buffer.h:73
AVBufferRef::data
uint8_t * data
Definition: buffer.h:89
av_buffer_allocz
AVBufferRef * av_buffer_allocz(int size)
av_buffer_create
AVBufferRef * av_buffer_create(uint8_t *data, int size, void(*free)(void *opaque, uint8_t *data), void *opaque, int flags)
AVBufferRef
struct AVBufferRef AVBufferRef
av_buffer_pool_init
AVBufferPool * av_buffer_pool_init(int size, AVBufferRef *(*alloc)(int size))
av_buffer_pool_get
AVBufferRef * av_buffer_pool_get(AVBufferPool *pool)
av_buffer_default_free
void av_buffer_default_free(void *opaque, uint8_t *data)
buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: SDL_opengl_glext.h:2483
AVBufferPool
struct AVBufferPool AVBufferPool
Definition: buffer.h:238
av_buffer_unref
void av_buffer_unref(AVBufferRef **buf)
av_buffer_pool_uninit
void av_buffer_pool_uninit(AVBufferPool **pool)
AVBufferRef::buffer
AVBuffer * buffer
Definition: buffer.h:82
AVBufferRef
Definition: buffer.h:81
av_buffer_make_writable
int av_buffer_make_writable(AVBufferRef **buf)
av_buffer_get_ref_count
int av_buffer_get_ref_count(const AVBufferRef *buf)
uint8_t
unsigned __int8 uint8_t
Definition: SDL_config.h:35
AVBufferRef::size
int size
Definition: buffer.h:93
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
av_buffer_pool_init2
AVBufferPool * av_buffer_pool_init2(int size, void *opaque, AVBufferRef *(*alloc)(void *opaque, int size), void(*pool_free)(void *opaque))
av_buffer_is_writable
int av_buffer_is_writable(const AVBufferRef *buf)
flags
EGLSyncKHR EGLint flags
Definition: SDL_egl.h:898
av_buffer_ref
AVBufferRef * av_buffer_ref(AVBufferRef *buf)
av_buffer_get_opaque
void * av_buffer_get_opaque(const AVBufferRef *buf)
size
GLsizeiptr size
Definition: SDL_opengl_glext.h:540