#include "libavutil/audioconvert.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "avfilter.h"
#include "formats.h"
#include "audio.h"
#include "video.h"
#include "internal.h"
Go to the source code of this file.
Data Structures | |
struct | ShowWavesContext |
Defines | |
#define | OFFSET(x) offsetof(ShowWavesContext, x) |
#define | FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
#define | MAX_INT16 ((1<<15) -1) |
Functions | |
AVFILTER_DEFINE_CLASS (showwaves) | |
static av_cold int | init (AVFilterContext *ctx, const char *args) |
static av_cold void | uninit (AVFilterContext *ctx) |
static int | query_formats (AVFilterContext *ctx) |
static int | config_output (AVFilterLink *outlink) |
static void | push_frame (AVFilterLink *outlink) |
static int | request_frame (AVFilterLink *outlink) |
static int | filter_samples (AVFilterLink *inlink, AVFilterBufferRef *insamples) |
Variables | |
static const AVOption | showwaves_options [] |
AVFilter | avfilter_avf_showwaves |
Definition in file avf_showwaves.c.
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM |
Definition at line 48 of file avf_showwaves.c.
#define MAX_INT16 ((1<<15) -1) |
#define OFFSET | ( | x | ) | offsetof(ShowWavesContext, x) |
Definition at line 47 of file avf_showwaves.c.
AVFILTER_DEFINE_CLASS | ( | showwaves | ) |
static int config_output | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 118 of file avf_showwaves.c.
static int filter_samples | ( | AVFilterLink * | inlink, | |
AVFilterBufferRef * | insamples | |||
) | [static] |
Definition at line 182 of file avf_showwaves.c.
static av_cold int init | ( | AVFilterContext * | ctx, | |
const char * | args | |||
) | [static] |
Definition at line 61 of file avf_showwaves.c.
static void push_frame | ( | AVFilterLink * | outlink | ) | [inline, static] |
Definition at line 152 of file avf_showwaves.c.
static int query_formats | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 84 of file avf_showwaves.c.
static int request_frame | ( | AVFilterLink * | outlink | ) | [static] |
Definition at line 164 of file avf_showwaves.c.
static av_cold void uninit | ( | AVFilterContext * | ctx | ) | [static] |
Definition at line 76 of file avf_showwaves.c.
Initial value:
{ .name = "showwaves", .description = NULL_IF_CONFIG_SMALL("Convert input audio to a video output."), .init = init, .uninit = uninit, .query_formats = query_formats, .priv_size = sizeof(ShowWavesContext), .inputs = (const AVFilterPad[]) { { .name = "default", .type = AVMEDIA_TYPE_AUDIO, .filter_samples = filter_samples, .min_perms = AV_PERM_READ, }, { .name = NULL } }, .outputs = (const AVFilterPad[]) { { .name = "default", .type = AVMEDIA_TYPE_VIDEO, .config_props = config_output, .request_frame = request_frame, }, { .name = NULL } }, .priv_class = &showwaves_class, }
Definition at line 229 of file avf_showwaves.c.
const AVOption showwaves_options[] [static] |
Initial value:
{ { "rate", "set video rate", OFFSET(rate_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS }, { "r", "set video rate", OFFSET(rate_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS }, { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "600x240"}, 0, 0, FLAGS }, { "s", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "600x240"}, 0, 0, FLAGS }, { "n", "set how many samples to show in the same point", OFFSET(n), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, FLAGS }, { NULL }, }
Definition at line 50 of file avf_showwaves.c.