Libav
Data Structures | Functions | Variables
buffersink.c File Reference

buffer sink More...

#include "libavutil/audio_fifo.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
#include "audio.h"
#include "avfilter.h"
#include "buffersink.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  BufferSinkContext

Functions

static av_cold void uninit (AVFilterContext *ctx)
static int filter_frame (AVFilterLink *link, AVFrame *frame)
int attribute_align_arg av_buffersink_get_frame (AVFilterContext *ctx, AVFrame *frame)
 Get a frame with filtered data from sink and put it in frame.
static int read_from_fifo (AVFilterContext *ctx, AVFrame *frame, int nb_samples)
int attribute_align_arg av_buffersink_get_samples (AVFilterContext *ctx, AVFrame *frame, int nb_samples)
 Same as av_buffersink_get_frame(), but with the ability to specify the number of samples read.

Variables

static const AVFilterPad avfilter_vsink_buffer_inputs []
AVFilter ff_vsink_buffer
static const AVFilterPad avfilter_asink_abuffer_inputs []
AVFilter ff_asink_abuffer

Detailed Description

buffer sink

Definition in file buffersink.c.

Function Documentation

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 44 of file buffersink.c.

static int filter_frame ( AVFilterLink link,
AVFrame frame 
)
static

Definition at line 52 of file buffersink.c.

static int read_from_fifo ( AVFilterContext ctx,
AVFrame frame,
int  nb_samples 
)
static

Definition at line 81 of file buffersink.c.

Referenced by av_buffersink_get_samples().

Variable Documentation

const AVFilterPad avfilter_vsink_buffer_inputs[]
static
Initial value:
{
{
.name = "default",
.filter_frame = filter_frame,
.needs_fifo = 1
},
{ NULL }
}

Definition at line 214 of file buffersink.c.

AVFilter ff_vsink_buffer
Initial value:
{
.name = "buffersink",
.description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."),
.priv_size = sizeof(BufferSinkContext),
}

Definition at line 224 of file buffersink.c.

const AVFilterPad avfilter_asink_abuffer_inputs[]
static
Initial value:
{
{
.name = "default",
.filter_frame = filter_frame,
.needs_fifo = 1
},
{ NULL }
}

Definition at line 234 of file buffersink.c.

AVFilter ff_asink_abuffer
Initial value:
{
.name = "abuffersink",
.description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."),
.priv_size = sizeof(BufferSinkContext),
}

Definition at line 244 of file buffersink.c.