[FFmpeg-devel] [PATCH] ALS decoder

Michael Niedermayer michaelni
Fri Sep 11 21:57:28 CEST 2009


On Thu, Sep 10, 2009 at 09:52:34PM +0200, Thilo Borgmann wrote:
> Revision 18 attached.

[...]

> +    if (!sconf->bgmc && !sconf->sb_part)
> +        log2_sub_blocks = 0;
> +    else if (sconf->bgmc && sconf->sb_part)

{}

[...]
> +    // reconstruct all samples from residuals
> +    if (ra_block) {
> +        for (smp = 0; smp < block_length; smp++) {
> +            unsigned int dequant = smp < opt_order;
> +            unsigned int max     = dequant ? smp : opt_order;
> +
> +            y = 1 << 19;
> +
> +            for (sb = 0; sb < max; sb++)
> +                y += MUL64(lpc_cof[sb],raw_samples[smp - (sb + 1)]);
> +
> +            raw_samples[smp] -= y >> 20;
> +            if (dequant)
> +                parcor_to_lpc(smp, quant_cof, lpc_cof);
> +        }

this loop can be split into
smp < opt_order
and
opt_order <= smp < block_length

the second onecan be merged with the loop in the else below


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

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090911/dfca2f4d/attachment.pgp>



More information about the ffmpeg-devel mailing list