uint8_t * data[8]
buffer data for each plane/channel
uint8_t ** extended_data
pointers to the data planes/channels.
void * av_malloc(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
This structure describes decoded (raw) audio or video data.
int nb_samples
number of audio samples
AVFilterBufferRefAudioProps * audio
audio buffer specific properties
AVFilterBufferRefVideoProps * video
video buffer specific properties
int linesize[8]
number of bytes per line
enum AVMediaType type
media type of buffer data
Audio specific properties in a reference to an AVFilterBuffer.
A reference-counted buffer data type used by the filter system.
int avfilter_copy_buf_props(AVFrame *dst, const AVFilterBufferRef *src)
Copy the frame properties and data pointers of src to dst, without copying the actual data...
void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
Copy properties of src to dst, without copying the actual data.
void av_freep(void *arg)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
void avfilter_unref_bufferp(AVFilterBufferRef **ref)
Remove a reference to a buffer and set the pointer to NULL.
int top_field_first
field order
int64_t pts
presentation timestamp in time_base units (time when frame should be shown to user) If AV_NOPTS_VALUE...
int key_frame
1 -> keyframe, 0-> not
int interlaced_frame
The content of the picture is interlaced.
AVRational pixel_aspect
pixel aspect ratio
int64_t pts
presentation timestamp.
int width
width and height of the video frame
void av_free(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc(). ...
AVFilterBuffer * buf
the buffer that this is a reference to
int av_get_channel_layout_nb_channels(uint64_t channel_layout)
Return the number of channels in the channel layout.
Video specific properties in a reference to an AVFilterBuffer.
uint64_t channel_layout
Channel layout of the audio data.
void ff_avfilter_default_free_buffer(AVFilterBuffer *ptr)
default handler for freeing audio/video buffer when there are no references left
audio channel layout utility functions
enum AVPictureType pict_type
Picture type of the frame, see ?_TYPE below.
unsigned refcount
number of references to this buffer
AVFilterBufferRef * avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
Add a new reference to a buffer.
void(* free)(struct AVFilterBuffer *buf)
A pointer to the function to deallocate this buffer if the default function is not sufficient...
int format
format of the frame, -1 if unknown or unset Values correspond to enum AVPixelFormat for video frames...
A reference to an AVFilterBuffer.
int linesize[AV_NUM_DATA_POINTERS]
Size, in bytes, of the data for each picture/channel plane.
int perms
permissions, see the AV_PERM_* flags
int sample_rate
audio buffer sample rate
AVRational sample_aspect_ratio
sample aspect ratio for the video frame, 0/1 if unknown/unspecified
enum AVPictureType pict_type
picture type of the frame
int sample_rate
Sample rate of the audio data.
#define FF_ARRAY_ELEMS(a)
int av_sample_fmt_is_planar(enum AVSampleFormat sample_fmt)
Check if the sample format is planar.
uint8_t ** extended_data
pointers to the data planes/channels.
uint64_t channel_layout
channel layout of audio buffer
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int interlaced
is frame interlaced
common internal and external API header
int64_t pos
byte position in stream, -1 if unknown
int top_field_first
If the content is interlaced, is top field displayed first.
uint8_t * data[8]
picture/audio data for each plane
int key_frame
1 -> keyframe, 0-> not
void avfilter_unref_buffer(AVFilterBufferRef *ref)
Remove a reference to a buffer.
uint8_t ** extended_data
pointers to the data planes/channels.
int nb_samples
number of audio samples (per channel) described by this frame
void * av_mallocz(size_t size)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src)
Copy the frame properties of src to dst, without copying the actual image data.