FFmpeg
Data Structures | Macros | Functions
buffer.h File Reference
libavutil » Data Structures » AVBuffer
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct   AVBufferRef
  A reference to a data buffer. More...
 

Macros

#define  AV_BUFFER_FLAG_READONLY   (1 << 0)
  Always treat the buffer as read-only, even when it has only one reference. More...
 

Functions

  Allocate an AVBuffer of the given size using av_malloc(). More...
 
  Same as av_buffer_alloc(), except the returned buffer will be initialized to zero. More...
 
AVBufferRefav_buffer_create (uint8_t *data, size_t size, void(*free)(void *opaque, uint8_t *data), void *opaque, int flags)
  Create an AVBuffer from an existing array. More...
 
void  av_buffer_default_free (void *opaque, uint8_t *data)
  Default free callback, which calls av_free() on the buffer data. More...
 
  Create a new reference to an AVBuffer. More...
 
  Free a given reference and automatically free the buffer if there are no more references to it. More...
 
 
void *  av_buffer_get_opaque (const AVBufferRef *buf)
 
 
  Create a writable reference from a given buffer reference, avoiding data copy if possible. More...
 
int  av_buffer_realloc (AVBufferRef **buf, size_t size)
  Reallocate a given buffer. More...
 
  Ensure dst refers to the same data as src. More...
 
AVBufferPoolav_buffer_pool_init (size_t size, AVBufferRef *(*alloc)(size_t size))
  Allocate and initialize a buffer pool. More...
 
AVBufferPoolav_buffer_pool_init2 (size_t size, void *opaque, AVBufferRef *(*alloc)(void *opaque, size_t size), void(*pool_free)(void *opaque))
  Allocate and initialize a buffer pool with a more complex allocator. More...
 
  Mark the pool as being available for freeing. More...
 
  Allocate a new AVBuffer, reusing an old buffer from the pool when available. More...
 
  Query the original opaque parameter of an allocated buffer in the pool. More...
 

Detailed Description

refcounted data buffer API

Definition in file buffer.h.


Generated on Fri Aug 22 2025 14:00:13 for FFmpeg by   doxygen 1.8.17

AltStyle によって変換されたページ (->オリジナル) /