FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
af_asetnsamples.c File Reference

Filter that changes number of samples on single output operation. More...

#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "filters.h"
#include "internal.h"
#include "formats.h"

Go to the source code of this file.

Data Structures

struct  ASNSContext
 

Macros

#define OFFSET(x)   offsetof(ASNSContext, x)
 
#define FLAGS   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (asetnsamples)
 
static int activate (AVFilterContext *ctx)
 

Variables

static const AVOption asetnsamples_options []
 
static const AVFilterPad asetnsamples_inputs []
 
static const AVFilterPad asetnsamples_outputs []
 
AVFilter ff_af_asetnsamples
 

Detailed Description

Filter that changes number of samples on single output operation.

Definition in file af_asetnsamples.c.

Macro Definition Documentation

#define OFFSET (   x)    offsetof(ASNSContext, x)

Definition at line 42 of file af_asetnsamples.c.

Definition at line 43 of file af_asetnsamples.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( asetnsamples  )
static int activate ( AVFilterContext ctx)
static

Definition at line 55 of file af_asetnsamples.c.

Variable Documentation

const AVOption asetnsamples_options[]
static
Initial value:
= {
{ "nb_out_samples", "set the number of per-frame output samples", OFFSET(nb_out_samples), AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX, FLAGS },
{ "n", "set the number of per-frame output samples", OFFSET(nb_out_samples), AV_OPT_TYPE_INT, {.i64=1024}, 1, INT_MAX, FLAGS },
{ "pad", "pad last frame with zeros", OFFSET(pad), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
{ "p", "pad last frame with zeros", OFFSET(pad), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, FLAGS },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
#define FLAGS

Definition at line 45 of file af_asetnsamples.c.

const AVFilterPad asetnsamples_inputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32

Definition at line 94 of file af_asetnsamples.c.

const AVFilterPad asetnsamples_outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}
#define NULL
Definition: coverity.c:32

Definition at line 102 of file af_asetnsamples.c.

AVFilter ff_af_asetnsamples
Initial value:
= {
.name = "asetnsamples",
.description = NULL_IF_CONFIG_SMALL("Set the number of samples for each output audio frames."),
.priv_size = sizeof(ASNSContext),
.priv_class = &asetnsamples_class,
}
static const AVFilterPad asetnsamples_outputs[]
static const AVFilterPad asetnsamples_inputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int activate(AVFilterContext *ctx)
static const AVFilterPad inputs[]
Definition: af_acontrast.c:193
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203

Definition at line 110 of file af_asetnsamples.c.