[FFmpeg-devel] [PATCH] Move audioconvert API from libavcodec to libavcore.

Michael Niedermayer michaelni
Tue Jan 11 00:55:46 CET 2011


On Tue, Jan 11, 2011 at 12:20:39AM +0100, Stefano Sabatini wrote:
> On date Sunday 2011-01-09 19:52:26 +0100, Michael Niedermayer encoded:
[...]
> +int av_audio_convert2(AVAudioConvertContext *ctx,
> +                           void * const out[8], const int out_stride[8],
> +                     const void * const  in[8], const int  in_stride[8], int len)
> +{
> +    int ch;
> +
> +    //FIXME optimize common cases
> +
> +    for (ch = 0; ch < ctx->out_channels; ch++) {
> +        const int is =  in_stride[ch];
> +        const int os = out_stride[ch];
> +        const uint8_t *pi=  in[ch];
> +        uint8_t *po  = out[ch];
> +        uint8_t *end = po + os*len;
> +        if (!out[ch])
> +            continue;

does git blame pick up this reformated code and associate it correctly to the
original commits ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110111/2bc3d6e6/attachment.pgp>



More information about the ffmpeg-devel mailing list