AVFilterBufferRef

A reference to an AVFilterBuffer. Since filters can manipulate the origin of a buffer to, for example, crop image without any memcpy, the buffer origin and dimensions are per-reference properties. Linesize is also useful for image flipping, frame to field filters, etc, and so is also per-reference.

TODO: add anything necessary for frame reordering

Members

Variables

audio
AVFilterBufferRefAudioProps* audio;

< audio buffer specific properties

buf
AVFilterBuffer* buf;

< the buffer that this is a reference to

data
uint8_t*[8] data;

< picture/audio data for each plane

extended_data
uint8_t** extended_data;

pointers to the data planes/channels.

format
int format;

< media format

linesize
int[8] linesize;

< number of bytes per line

metadata
AVDictionary* metadata;

< dictionary containing metadata key=value tags

perms
int perms;

< permissions, see the AV_PERM_* flags

pos
int64_t pos;

< byte position in stream, -1 if unknown

pts
int64_t pts;

presentation timestamp. The time unit may change during filtering, as it is specified in the link and the filter code may need to rescale the PTS accordingly.

type
AVMediaType type;

< media type of buffer data

video
AVFilterBufferRefVideoProps* video;

< video buffer specific properties

Meta