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. More...
 
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. More...
 

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

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 44 of file buffersink.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink link,
AVFrame frame 
)
static

Definition at line 52 of file buffersink.c.

◆ read_from_fifo()

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

◆ avfilter_vsink_buffer_inputs

const AVFilterPad avfilter_vsink_buffer_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.needs_fifo = 1
},
{ NULL }
}
NULL
Definition: eval.c:55
static int filter_frame(AVFilterLink *link, AVFrame *frame)
Definition: buffersink.c:52

Definition at line 140 of file buffersink.c.

◆ ff_vsink_buffer

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),
}
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:259
static av_cold void uninit(AVFilterContext *ctx)
Definition: buffersink.c:44
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:148
NULL
Definition: eval.c:55
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:248
static const AVFilterPad avfilter_vsink_buffer_inputs[]
Definition: buffersink.c:140

Definition at line 150 of file buffersink.c.

◆ avfilter_asink_abuffer_inputs

const AVFilterPad avfilter_asink_abuffer_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.needs_fifo = 1
},
{ NULL }
}
NULL
Definition: eval.c:55
static int filter_frame(AVFilterLink *link, AVFrame *frame)
Definition: buffersink.c:52

Definition at line 160 of file buffersink.c.

◆ ff_asink_abuffer

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),
}
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:259
static av_cold void uninit(AVFilterContext *ctx)
Definition: buffersink.c:44
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:148
static const AVFilterPad avfilter_asink_abuffer_inputs[]
Definition: buffersink.c:160
NULL
Definition: eval.c:55
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:248

Definition at line 170 of file buffersink.c.