yading@10: /* yading@10: * This file is part of FFmpeg. yading@10: * yading@10: * FFmpeg is free software; you can redistribute it and/or yading@10: * modify it under the terms of the GNU Lesser General Public yading@10: * License as published by the Free Software Foundation; either yading@10: * version 2.1 of the License, or (at your option) any later version. yading@10: * yading@10: * FFmpeg is distributed in the hope that it will be useful, yading@10: * but WITHOUT ANY WARRANTY; without even the implied warranty of yading@10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU yading@10: * Lesser General Public License for more details. yading@10: * yading@10: * You should have received a copy of the GNU Lesser General Public yading@10: * License along with FFmpeg; if not, write to the Free Software yading@10: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA yading@10: */ yading@10: yading@10: #ifndef AVFILTER_ASRC_ABUFFER_H yading@10: #define AVFILTER_ASRC_ABUFFER_H yading@10: yading@10: #include "avfilter.h" yading@10: yading@10: /** yading@10: * @file yading@10: * memory buffer source for audio yading@10: * yading@10: * @deprecated use buffersrc.h instead. yading@10: */ yading@10: yading@10: /** yading@10: * Queue an audio buffer to the audio buffer source. yading@10: * yading@10: * @param abuffersrc audio source buffer context yading@10: * @param data pointers to the samples planes yading@10: * @param linesize linesizes of each audio buffer plane yading@10: * @param nb_samples number of samples per channel yading@10: * @param sample_fmt sample format of the audio data yading@10: * @param ch_layout channel layout of the audio data yading@10: * @param planar flag to indicate if audio data is planar or packed yading@10: * @param pts presentation timestamp of the audio buffer yading@10: * @param flags unused yading@10: * yading@10: * @deprecated use av_buffersrc_add_ref() instead. yading@10: */ yading@10: attribute_deprecated yading@10: int av_asrc_buffer_add_samples(AVFilterContext *abuffersrc, yading@10: uint8_t *data[8], int linesize[8], yading@10: int nb_samples, int sample_rate, yading@10: int sample_fmt, int64_t ch_layout, int planar, yading@10: int64_t pts, int av_unused flags); yading@10: yading@10: /** yading@10: * Queue an audio buffer to the audio buffer source. yading@10: * yading@10: * This is similar to av_asrc_buffer_add_samples(), but the samples yading@10: * are stored in a buffer with known size. yading@10: * yading@10: * @param abuffersrc audio source buffer context yading@10: * @param buf pointer to the samples data, packed is assumed yading@10: * @param size the size in bytes of the buffer, it must contain an yading@10: * integer number of samples yading@10: * @param sample_fmt sample format of the audio data yading@10: * @param ch_layout channel layout of the audio data yading@10: * @param pts presentation timestamp of the audio buffer yading@10: * @param flags unused yading@10: * yading@10: * @deprecated use av_buffersrc_add_ref() instead. yading@10: */ yading@10: attribute_deprecated yading@10: int av_asrc_buffer_add_buffer(AVFilterContext *abuffersrc, yading@10: uint8_t *buf, int buf_size, yading@10: int sample_rate, yading@10: int sample_fmt, int64_t ch_layout, int planar, yading@10: int64_t pts, int av_unused flags); yading@10: yading@10: /** yading@10: * Queue an audio buffer to the audio buffer source. yading@10: * yading@10: * @param abuffersrc audio source buffer context yading@10: * @param samplesref buffer ref to queue yading@10: * @param flags unused yading@10: * yading@10: * @deprecated use av_buffersrc_add_ref() instead. yading@10: */ yading@10: attribute_deprecated yading@10: int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *abuffersrc, yading@10: AVFilterBufferRef *samplesref, yading@10: int av_unused flags); yading@10: yading@10: #endif /* AVFILTER_ASRC_ABUFFER_H */