libavfilter/asrc_anullsrc.c File Reference

null audio source More...

#include "libavutil/audioconvert.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  ANullContext

Defines

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

Functions

static const char * anullsrc_get_name (void *ctx)
static int init (AVFilterContext *ctx, const char *args, void *opaque)
static int config_props (AVFilterLink *outlink)
static int request_frame (AVFilterLink *outlink)

Variables

static const AVOption anullsrc_options []
static const AVClass anullsrc_class
AVFilter avfilter_asrc_anullsrc


Detailed Description

null audio source

Definition in file asrc_anullsrc.c.


Define Documentation

#define OFFSET (  )     offsetof(ANullContext, x)

Definition at line 40 of file asrc_anullsrc.c.


Function Documentation

static const char* anullsrc_get_name ( void *  ctx  )  [static]

Definition at line 52 of file asrc_anullsrc.c.

static int config_props ( AVFilterLink outlink  )  [static]

Definition at line 87 of file asrc_anullsrc.c.

static int init ( AVFilterContext ctx,
const char *  args,
void *  opaque 
) [static]

Definition at line 63 of file asrc_anullsrc.c.

static int request_frame ( AVFilterLink outlink  )  [static]

Definition at line 105 of file asrc_anullsrc.c.


Variable Documentation

const AVClass anullsrc_class [static]

Initial value:

 {
    "ANullSrcContext",
    anullsrc_get_name,
    anullsrc_options
}

Definition at line 57 of file asrc_anullsrc.c.

const AVOption anullsrc_options[] [static]

Initial value:

 {
    { "channel_layout", "set channel_layout", OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, {.str = "stereo"}, 0, 0 },
    { "cl",             "set channel_layout", OFFSET(channel_layout_str), AV_OPT_TYPE_STRING, {.str = "stereo"}, 0, 0 },
    { "sample_rate",    "set sample rate",    OFFSET(sample_rate_str)   , AV_OPT_TYPE_STRING, {.str = "44100"}, 0, 0 },
    { "r",              "set sample rate",    OFFSET(sample_rate_str)   , AV_OPT_TYPE_STRING, {.str = "44100"}, 0, 0 },
    { "nb_samples",     "set the number of samples per requested frame", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.dbl = 1024}, 0, INT_MAX },
    { "n",              "set the number of samples per requested frame", OFFSET(nb_samples), AV_OPT_TYPE_INT, {.dbl = 1024}, 0, INT_MAX },
    { NULL },
}

Definition at line 42 of file asrc_anullsrc.c.

Initial value:

 {
    .name        = "anullsrc",
    .description = NULL_IF_CONFIG_SMALL("Null audio source, return empty audio frames."),

    .init        = init,
    .priv_size   = sizeof(ANullContext),

    .inputs      = (const AVFilterPad[]) {{ .name = NULL}},

    .outputs     = (const AVFilterPad[]) {{ .name = "default",
                                      .type = AVMEDIA_TYPE_AUDIO,
                                      .config_props = config_props,
                                      .request_frame = request_frame, },
                                    { .name = NULL}},
}

Definition at line 124 of file asrc_anullsrc.c.


Generated on Fri Oct 26 02:43:50 2012 for FFmpeg by  doxygen 1.5.8