AVFilterBuffer Struct Reference

A reference-counted buffer data type used by the filter system. More...

#include <avfilter.h>

Data Fields

uint8_t * data [8]
 buffer data for each plane/channel
int linesize [8]
 number of bytes per line
unsigned refcount
 number of references to this buffer
voidpriv
 private data to be used by a custom free function
void(* free )(struct AVFilterBuffer *buf)
 A pointer to the function to deallocate this buffer if the default function is not sufficient.
int format
 media format
int w
int h
 width and height of the allocated buffer

Detailed Description

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.

Definition at line 61 of file avfilter.h.

Field Documentation

uint8_t* AVFilterBuffer::data[8]

buffer data for each plane/channel

Definition at line 62 of file avfilter.h.

Referenced by avfilter_default_get_audio_buffer(), avfilter_get_video_buffer_ref_from_arrays(), does_clip(), and ff_avfilter_default_free_buffer().

int AVFilterBuffer::format

media format

Definition at line 77 of file avfilter.h.

Referenced by avfilter_get_video_buffer_ref_from_arrays(), and start_frame().

void(* AVFilterBuffer::free)(struct AVFilterBuffer *buf)

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.

Definition at line 75 of file avfilter.h.

Referenced by avfilter_default_get_audio_buffer(), avfilter_get_video_buffer_ref_from_arrays(), avfilter_unref_buffer(), and transcode_video().

int AVFilterBuffer::h

width and height of the allocated buffer

Definition at line 78 of file avfilter.h.

Referenced by avfilter_get_video_buffer_ref_from_arrays(), does_clip(), and start_frame().

int AVFilterBuffer::linesize[8]

number of bytes per line

Definition at line 63 of file avfilter.h.

Referenced by avfilter_default_get_audio_buffer(), avfilter_get_video_buffer_ref_from_arrays(), and does_clip().

void* AVFilterBuffer::priv

private data to be used by a custom free function

Definition at line 68 of file avfilter.h.

Referenced by filter_release_buffer(), and transcode_video().

unsigned AVFilterBuffer::refcount
int AVFilterBuffer::w

Definition at line 78 of file avfilter.h.

Referenced by avfilter_get_video_buffer_ref_from_arrays(), does_clip(), and start_frame().


The documentation for this struct was generated from the following file: