mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
015903294c
* qatar/master: (25 commits) rv40dsp x86: MMX/MMX2/3DNow/SSE2/SSSE3 implementations of MC ape: Use unsigned integer maths arm: dsputil: fix overreads in put/avg_pixels functions h264: K&R formatting cosmetics for header files (part II/II) h264: K&R formatting cosmetics for header files (part I/II) rtmp: Implement check bandwidth notification. rtmp: Support 'rtmp_swfurl', an option which specifies the URL of the SWF player. rtmp: Support 'rtmp_flashver', an option which overrides the version of the Flash plugin. rtmp: Support 'rtmp_tcurl', an option which overrides the URL of the target stream. cmdutils: Add fallback case to switch in check_stream_specifier(). sctp: be consistent with socket option level configure: Add _XOPEN_SOURCE=600 to Solaris preprocessor flags. vcr1enc: drop pointless empty encode_init() wrapper function vcr1: drop pointless write-only AVCodecContext member from VCR1Context vcr1: group encoder code together to save #ifdefs vcr1: cosmetics: K&R prettyprinting, typos, parentheses, dead code, comments mov: make one comment slightly more specific lavr: replace the SSE version of ff_conv_fltp_to_flt_6ch() with SSE4 and AVX lavfi: move audio-related functions to a separate file. lavfi: remove some audio-related function from public API. ... Conflicts: cmdutils.c libavcodec/h264.h libavcodec/h264_mvpred.h libavcodec/vcr1.c libavfilter/avfilter.c libavfilter/avfilter.h libavfilter/defaults.c libavfilter/internal.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
66 lines
2.7 KiB
C
66 lines
2.7 KiB
C
/*
|
|
* Copyright (c) Stefano Sabatini | stefasab at gmail.com
|
|
* Copyright (c) S.N. Hemanth Meenakshisundaram | smeenaks at ucsd.edu
|
|
*
|
|
* This file is part of FFmpeg.
|
|
*
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef AVFILTER_AUDIO_H
|
|
#define AVFILTER_AUDIO_H
|
|
|
|
#include "avfilter.h"
|
|
|
|
|
|
/** default handler for get_audio_buffer() for audio inputs */
|
|
AVFilterBufferRef *ff_default_get_audio_buffer(AVFilterLink *link, int perms,
|
|
int nb_samples);
|
|
|
|
/** get_audio_buffer() handler for filters which simply pass audio along */
|
|
AVFilterBufferRef *ff_null_get_audio_buffer(AVFilterLink *link, int perms,
|
|
int nb_samples);
|
|
|
|
/**
|
|
* Request an audio samples buffer with a specific set of permissions.
|
|
*
|
|
* @param link the output link to the filter from which the buffer will
|
|
* be requested
|
|
* @param perms the required access permissions
|
|
* @param nb_samples the number of samples per channel
|
|
* @return A reference to the samples. This must be unreferenced with
|
|
* avfilter_unref_buffer when you are finished with it.
|
|
*/
|
|
AVFilterBufferRef *ff_get_audio_buffer(AVFilterLink *link, int perms,
|
|
int nb_samples);
|
|
|
|
/** default handler for filter_samples() for audio inputs */
|
|
void ff_default_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref);
|
|
|
|
/** filter_samples() handler for filters which simply pass audio along */
|
|
void ff_null_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref);
|
|
|
|
/**
|
|
* Send a buffer of audio samples to the next filter.
|
|
*
|
|
* @param link the output link over which the audio samples are being sent
|
|
* @param samplesref a reference to the buffer of audio samples being sent. The
|
|
* receiving filter will free this reference when it no longer
|
|
* needs it or pass it on to the next filter.
|
|
*/
|
|
void ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref);
|
|
|
|
#endif /* AVFILTER_AUDIO_H */
|