diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-31 00:07:41 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-05-09 17:51:13 +0200 |
commit | 1b8c9271bde8c502fe9829795f8ef96bceb7205e (patch) | |
tree | 3fee62e90fc3962e610b28804b881ad410114be3 /libavfilter/avfilter.h | |
parent | 9453c9e1dec6ba44a6bedbfc02b72433e89c03dd (diff) | |
download | ffmpeg-1b8c9271bde8c502fe9829795f8ef96bceb7205e.tar.gz |
lavfi: add avfilter_get_audio_buffer_ref_from_arrays().
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r-- | libavfilter/avfilter.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 8965094b19..6555744f12 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -701,6 +701,24 @@ AVFilterBufferRef *avfilter_get_audio_buffer(AVFilterLink *link, int perms, uint64_t channel_layout, int planar); /** + * Create an audio buffer reference wrapped around an already + * allocated samples buffer. + * + * @param data pointers to the samples plane buffers + * @param linesize linesize for the samples plane buffers + * @param perms the required access permissions + * @param nb_samples number of samples per channel + * @param sample_fmt the format of each sample in the buffer to allocate + * @param channel_layout the channel layout of the buffer + */ +AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_arrays(uint8_t **data, + int linesize, + int perms, + int nb_samples, + enum AVSampleFormat sample_fmt, + uint64_t channel_layout); + +/** * Request an input frame from the filter at the other end of the link. * * @param link the input link |