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

libavfilter API usage example. More...

#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "libavutil/channel_layout.h"
#include "libavutil/md5.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/buffersink.h"
#include "libavfilter/buffersrc.h"

Go to the source code of this file.

Macros

#define INPUT_SAMPLERATE   48000
 
#define INPUT_FORMAT   AV_SAMPLE_FMT_FLTP
 
#define INPUT_CHANNEL_LAYOUT   AV_CH_LAYOUT_5POINT0
 
#define VOLUME_VAL   0.90
 
#define FRAME_SIZE   1024
 

Functions

static int init_filter_graph (AVFilterGraph **graph, AVFilterContext **src, AVFilterContext **sink)
 
static int process_output (struct AVMD5 *md5, AVFrame *frame)
 
static int get_input (AVFrame *frame, int frame_num)
 
int main (int argc, char *argv[])
 

Detailed Description

libavfilter API usage example.

Definition in file filter_audio.c.

Macro Definition Documentation

#define INPUT_SAMPLERATE   48000
Examples:
filter_audio.c.

Definition at line 56 of file filter_audio.c.

Referenced by get_input(), init_filter_graph(), and main().

#define INPUT_FORMAT   AV_SAMPLE_FMT_FLTP
Examples:
filter_audio.c.

Definition at line 57 of file filter_audio.c.

Referenced by get_input(), and init_filter_graph().

#define INPUT_CHANNEL_LAYOUT   AV_CH_LAYOUT_5POINT0
Examples:
filter_audio.c.

Definition at line 58 of file filter_audio.c.

Referenced by get_input(), and init_filter_graph().

#define VOLUME_VAL   0.90
Examples:
filter_audio.c.

Definition at line 60 of file filter_audio.c.

Referenced by init_filter_graph().

#define FRAME_SIZE   1024

Function Documentation

static int init_filter_graph ( AVFilterGraph **  graph,
AVFilterContext **  src,
AVFilterContext **  sink 
)
static
Examples:
filter_audio.c.

Definition at line 62 of file filter_audio.c.

Referenced by main().

static int process_output ( struct AVMD5 md5,
AVFrame frame 
)
static
Examples:
filter_audio.c.

Definition at line 215 of file filter_audio.c.

Referenced by main().

static int get_input ( AVFrame frame,
int  frame_num 
)
static
Examples:
filter_audio.c.

Definition at line 242 of file filter_audio.c.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Definition at line 270 of file filter_audio.c.