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...
 
static FF_DISABLE_DEPRECATION_WARNINGS void compat_free_buffer (AVFilterBuffer *buf)
 
static int compat_read (AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples)
 
int attribute_align_arg av_buffersink_read (AVFilterContext *ctx, AVFilterBufferRef **buf)
 
int attribute_align_arg av_buffersink_read_samples (AVFilterContext *ctx, AVFilterBufferRef **buf, int nb_samples)
 

Variables

static FF_ENABLE_DEPRECATION_WARNINGS 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().

§ compat_free_buffer()

static FF_DISABLE_DEPRECATION_WARNINGS void compat_free_buffer ( AVFilterBuffer *  buf)
static

Definition at line 142 of file buffersink.c.

Referenced by compat_read().

§ compat_read()

static int compat_read ( AVFilterContext ctx,
AVFilterBufferRef **  pbuf,
int  nb_samples 
)
static

Definition at line 149 of file buffersink.c.

Referenced by av_buffersink_read(), and av_buffersink_read_samples().

§ av_buffersink_read()

int attribute_align_arg av_buffersink_read ( AVFilterContext ctx,
AVFilterBufferRef **  buf 
)

Definition at line 201 of file buffersink.c.

§ av_buffersink_read_samples()

int attribute_align_arg av_buffersink_read_samples ( AVFilterContext ctx,
AVFilterBufferRef **  buf,
int  nb_samples 
)

Definition at line 206 of file buffersink.c.

Variable Documentation

§ avfilter_vsink_buffer_inputs

FF_ENABLE_DEPRECATION_WARNINGS 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 214 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 FF_ENABLE_DEPRECATION_WARNINGS const AVFilterPad avfilter_vsink_buffer_inputs[]
Definition: buffersink.c:214
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:232
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:145
NULL
Definition: eval.c:55
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:221

Definition at line 224 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 234 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:232
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:145
static const AVFilterPad avfilter_asink_abuffer_inputs[]
Definition: buffersink.c:234
NULL
Definition: eval.c:55
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:221

Definition at line 244 of file buffersink.c.