libavfilter/asrc_abuffer.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of FFmpeg.
00003  *
00004  * FFmpeg is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * FFmpeg is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with FFmpeg; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00017  */
00018 
00019 #ifndef AVFILTER_ASRC_ABUFFER_H
00020 #define AVFILTER_ASRC_ABUFFER_H
00021 
00022 #include "avfilter.h"
00023 
00042 int av_asrc_buffer_add_samples(AVFilterContext *abuffersrc,
00043                                uint8_t *data[8], int linesize[8],
00044                                int nb_samples, int sample_rate,
00045                                int sample_fmt, int64_t ch_layout, int planar,
00046                                int64_t pts, int av_unused flags);
00047 
00063 int av_asrc_buffer_add_buffer(AVFilterContext *abuffersrc,
00064                               uint8_t *buf, int buf_size,
00065                               int sample_rate,
00066                               int sample_fmt, int64_t ch_layout, int planar,
00067                               int64_t pts, int av_unused flags);
00068 
00076 int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *abuffersrc,
00077                                         AVFilterBufferRef *samplesref,
00078                                         int av_unused flags);
00079 
00080 #endif /* AVFILTER_ASRC_ABUFFER_H */