AVFilterBuffer

A reference-counted buffer data type used by the filter system. Filters should not store pointers to this structure directly, but instead use the AVFilterBufferRef structure below.

Members

Variables

data
uint8_t*[8] data;

< buffer data for each plane/channel

extended_data
uint8_t** extended_data;

pointers to the data planes/channels.

format
int format;

< media format

free
void function(AVFilterBuffer* buf) free;

A pointer to the function to deallocate this buffer if the default function is not sufficient. This could, for example, add the memory back into a memory pool to be reused later without the overhead of reallocating it from scratch.

h
int h;

< width and height of the allocated buffer

linesize
int[8] linesize;

< number of bytes per line

priv
void* priv;

private data to be used by a custom free function

refcount
uint refcount;

< number of references to this buffer

w
int w;
Undocumented in source.

Meta