annotate ffmpeg/libavfilter/asrc_abuffer.h @ 13:844d341cf643 tip

Back up before ISMIR
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Thu, 31 Oct 2013 13:17:06 +0000
parents 6840f77b83aa
children
rev   line source
yading@10 1 /*
yading@10 2 * This file is part of FFmpeg.
yading@10 3 *
yading@10 4 * FFmpeg is free software; you can redistribute it and/or
yading@10 5 * modify it under the terms of the GNU Lesser General Public
yading@10 6 * License as published by the Free Software Foundation; either
yading@10 7 * version 2.1 of the License, or (at your option) any later version.
yading@10 8 *
yading@10 9 * FFmpeg is distributed in the hope that it will be useful,
yading@10 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
yading@10 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
yading@10 12 * Lesser General Public License for more details.
yading@10 13 *
yading@10 14 * You should have received a copy of the GNU Lesser General Public
yading@10 15 * License along with FFmpeg; if not, write to the Free Software
yading@10 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
yading@10 17 */
yading@10 18
yading@10 19 #ifndef AVFILTER_ASRC_ABUFFER_H
yading@10 20 #define AVFILTER_ASRC_ABUFFER_H
yading@10 21
yading@10 22 #include "avfilter.h"
yading@10 23
yading@10 24 /**
yading@10 25 * @file
yading@10 26 * memory buffer source for audio
yading@10 27 *
yading@10 28 * @deprecated use buffersrc.h instead.
yading@10 29 */
yading@10 30
yading@10 31 /**
yading@10 32 * Queue an audio buffer to the audio buffer source.
yading@10 33 *
yading@10 34 * @param abuffersrc audio source buffer context
yading@10 35 * @param data pointers to the samples planes
yading@10 36 * @param linesize linesizes of each audio buffer plane
yading@10 37 * @param nb_samples number of samples per channel
yading@10 38 * @param sample_fmt sample format of the audio data
yading@10 39 * @param ch_layout channel layout of the audio data
yading@10 40 * @param planar flag to indicate if audio data is planar or packed
yading@10 41 * @param pts presentation timestamp of the audio buffer
yading@10 42 * @param flags unused
yading@10 43 *
yading@10 44 * @deprecated use av_buffersrc_add_ref() instead.
yading@10 45 */
yading@10 46 attribute_deprecated
yading@10 47 int av_asrc_buffer_add_samples(AVFilterContext *abuffersrc,
yading@10 48 uint8_t *data[8], int linesize[8],
yading@10 49 int nb_samples, int sample_rate,
yading@10 50 int sample_fmt, int64_t ch_layout, int planar,
yading@10 51 int64_t pts, int av_unused flags);
yading@10 52
yading@10 53 /**
yading@10 54 * Queue an audio buffer to the audio buffer source.
yading@10 55 *
yading@10 56 * This is similar to av_asrc_buffer_add_samples(), but the samples
yading@10 57 * are stored in a buffer with known size.
yading@10 58 *
yading@10 59 * @param abuffersrc audio source buffer context
yading@10 60 * @param buf pointer to the samples data, packed is assumed
yading@10 61 * @param size the size in bytes of the buffer, it must contain an
yading@10 62 * integer number of samples
yading@10 63 * @param sample_fmt sample format of the audio data
yading@10 64 * @param ch_layout channel layout of the audio data
yading@10 65 * @param pts presentation timestamp of the audio buffer
yading@10 66 * @param flags unused
yading@10 67 *
yading@10 68 * @deprecated use av_buffersrc_add_ref() instead.
yading@10 69 */
yading@10 70 attribute_deprecated
yading@10 71 int av_asrc_buffer_add_buffer(AVFilterContext *abuffersrc,
yading@10 72 uint8_t *buf, int buf_size,
yading@10 73 int sample_rate,
yading@10 74 int sample_fmt, int64_t ch_layout, int planar,
yading@10 75 int64_t pts, int av_unused flags);
yading@10 76
yading@10 77 /**
yading@10 78 * Queue an audio buffer to the audio buffer source.
yading@10 79 *
yading@10 80 * @param abuffersrc audio source buffer context
yading@10 81 * @param samplesref buffer ref to queue
yading@10 82 * @param flags unused
yading@10 83 *
yading@10 84 * @deprecated use av_buffersrc_add_ref() instead.
yading@10 85 */
yading@10 86 attribute_deprecated
yading@10 87 int av_asrc_buffer_add_audio_buffer_ref(AVFilterContext *abuffersrc,
yading@10 88 AVFilterBufferRef *samplesref,
yading@10 89 int av_unused flags);
yading@10 90
yading@10 91 #endif /* AVFILTER_ASRC_ABUFFER_H */