FFmpeg
|
af_apad.c File Reference
audio pad filter. More...
#include "libavutil/avstring.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "libavutil/avassert.h"
#include "avfilter.h"
#include "audio.h"
#include "internal.h"
Include dependency graph for af_apad.c:
Go to the source code of this file.
Data Structures | |
struct | APadContext |
Macros | |
#define | OFFSET(x) offsetof(APadContext, x) |
#define | A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Functions | |
AVFILTER_DEFINE_CLASS (apad) | |
static av_cold int | init (AVFilterContext *ctx) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
static int | request_frame (AVFilterLink *outlink) |
Variables | |
static const AVOption | apad_options [] |
static const AVFilterPad | apad_inputs [] |
static const AVFilterPad | apad_outputs [] |
AVFilter | avfilter_af_apad |
Detailed Description
Macro Definition Documentation
#define OFFSET | ( | x | ) | offsetof(APadContext, x) |
Function Documentation
AVFILTER_DEFINE_CLASS | ( | apad | ) |
|
static |
|
static |
|
static |
Variable Documentation
|
static |
Initial value:
= {
{
.name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.filter_frame = filter_frame,
},
{ NULL },
}
Definition: avutil.h:144
|
static |
Initial value:
= {
{ "packet_size", "set silence packet size", OFFSET(packet_size), AV_OPT_TYPE_INT, { .i64 = 4096 }, 0, INT_MAX, A },
{ "pad_len", "number of samples of silence to add", OFFSET(pad_len), AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, INT64_MAX, A },
{ "whole_len", "target number of samples in the audio stream", OFFSET(whole_len), AV_OPT_TYPE_INT64, { .i64 = 0 }, 0, INT64_MAX, A },
{ NULL },
}
Definition: opt.h:223
Definition: opt.h:222
|
static |
Initial value:
= {
{
.name = "default",
.request_frame = request_frame,
.type = AVMEDIA_TYPE_AUDIO,
},
{ NULL },
}
Definition: avutil.h:144
AVFilter avfilter_af_apad |
Initial value:
= {
.name = "apad",
.description = NULL_IF_CONFIG_SMALL("Pad audio with silence."),
.init = init,
.priv_size = sizeof(APadContext),
.inputs = apad_inputs,
.outputs = apad_outputs,
.priv_class = &apad_class,
}
Definition: af_apad.c:38
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: libavutil/internal.h:123
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
Definition: filter_design.txt:216
Generated on Fri Dec 20 2024 06:56:10 for FFmpeg by 1.8.11