[FFmpeg-devel] [PATCH] Channels correlation

Michael Niedermayer michaelni
Fri Oct 30 09:07:18 CET 2009


On Fri, Oct 30, 2009 at 01:42:29AM +0100, Michael Niedermayer wrote:
> On Thu, Oct 29, 2009 at 08:02:55PM +0100, Nicolas George wrote:
[...]
> > +        for (j = 0; j < c; j++) {
> > +            if (j == i)
> > +                continue;
> > +            coef = m[i * c + j];
> > +            for (k = 0; k < l; k++)
> > +                m[k * c + j] -= coef * m[k * c + i];
> 
> k can start with a value > 0 as the first few columns should already be 0
> except the main diagonal elements

i meant j not k, btw a if(coeff) would achive the same



> 
> btw, isnt libavutil/lls.c/h useable?

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

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- 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/20091030/d9c87112/attachment.pgp>



More information about the ffmpeg-devel mailing list