[FFmpeg-devel] [PATCH] Implement av_samples_fill_arrays().
Stefano Sabatini
stefano.sabatini-lala
Wed Feb 2 01:26:16 CET 2011
On date Tuesday 2011-02-01 23:26:20 +0100, Michael Niedermayer encoded:
> On Tue, Feb 01, 2011 at 04:59:08PM +0100, Stefano Sabatini wrote:
[...]
> > Note that we never defined the semantics of linesizes[] in the
> > AVFilterBuffer for audio samples, the most natural approach is to
> > assume the same semantics used by av_samples_*.
> >
> > At this point some change is required (in the aconvert) because
> > av_audio_convert() assumes a different semantics for in/out_stride:
> >
> > * Convert between audio sample formats
> > * @param[in] out array of output buffers for each channel. set to NULL to ignore processing of the given channel.
> > * @param[in] out_stride distance between consecutive output samples (measured in bytes)
> > * @param[in] in array of input buffers for each channel
> > * @param[in] in_stride distance between consecutive input samples (measured in bytes)
> > * @param len length of audio frame size (measured in samples)
> > */
> > int av_audio_convert(AVAudioConvert *ctx,
> > void * const out[6], const int out_stride[6],
> > const void * const in[6], const int in_stride[6], int len);
> >
> > Solutions:
> > * create a wrapper in aconvert for converting samplesref->linesize to
> > in/out_stride semantics.
> > * create an av_audio_convert2() supporting the new semantics
>
> av_audio_convert() could just use linesize[0] and the API updated accordingly
> i think
More information about the ffmpeg-devel
mailing list