00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef AVFILTER_AUDIO_H
00023 #define AVFILTER_AUDIO_H
00024
00025 #include "avfilter.h"
00026 #include "internal.h"
00027
00028 static const enum AVSampleFormat ff_packed_sample_fmts_array[] = {
00029 AV_SAMPLE_FMT_U8,
00030 AV_SAMPLE_FMT_S16,
00031 AV_SAMPLE_FMT_S32,
00032 AV_SAMPLE_FMT_FLT,
00033 AV_SAMPLE_FMT_DBL,
00034 AV_SAMPLE_FMT_NONE
00035 };
00036
00037 static const enum AVSampleFormat ff_planar_sample_fmts_array[] = {
00038 AV_SAMPLE_FMT_U8P,
00039 AV_SAMPLE_FMT_S16P,
00040 AV_SAMPLE_FMT_S32P,
00041 AV_SAMPLE_FMT_FLTP,
00042 AV_SAMPLE_FMT_DBLP,
00043 AV_SAMPLE_FMT_NONE
00044 };
00045
00047 AVFilterBufferRef *ff_default_get_audio_buffer(AVFilterLink *link, int perms,
00048 int nb_samples);
00049
00051 AVFilterBufferRef *ff_null_get_audio_buffer(AVFilterLink *link, int perms,
00052 int nb_samples);
00053
00064 AVFilterBufferRef *ff_get_audio_buffer(AVFilterLink *link, int perms,
00065 int nb_samples);
00066
00078 int ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref);
00079
00084 int ff_filter_samples_framed(AVFilterLink *link,
00085 AVFilterBufferRef *samplesref);
00086
00087 #endif