[FFmpeg-devel] [PATCH] ALAC Encoder

Michael Niedermayer michaelni
Mon Aug 18 20:12:40 CEST 2008


On Mon, Aug 18, 2008 at 10:54:53PM +0530, Jai Menon wrote:
> Hi,
> 
> On Monday 18 Aug 2008 10:54:23 pm Michael Niedermayer wrote:
> > On Mon, Aug 18, 2008 at 09:55:10PM +0530, Jai Menon wrote:
> > > Hi,
> > >
> > > On Monday 18 Aug 2008 3:46:23 am Michael Niedermayer wrote:
> > > > On Mon, Aug 18, 2008 at 02:38:24AM +0530, Jai Menon wrote:
> > > > > Hi,
> > > > >
> > > > > On Sunday 17 Aug 2008 5:17:52 pm Michael Niedermayer wrote:
> > > > > > On Sun, Aug 17, 2008 at 11:17:10AM +0530, Jai Menon wrote:
[..]
> > > > i think 1 mode is missing
> > >
> > > I left out the right-side mode because I really don't see how the decoder
> > > could support it without accidentally swapping channels. Or am I missing
> > > something?
> >
> > The decoder does:
> >             cl -= (cr * W) >> S;
> >             cr += cl;
> >
> >             l = cr;
> >             r = cl;
> > the encoder does:
> >             l -= r;
> >             r += (l * W) >> S;
> >
> >             cr = l;
> >             cl = r;
> >
> > These hold true for all values of W and S
> >
> > with W=0,S=1  you get l-r, r
> 
> W=0 will skip the decorrelation code on the decoder side :-)

Ive noticed it a moment after sending the mail ^^;

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

It is not what we do, but why we do it that matters.
-------------- 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/20080818/d6905950/attachment.pgp>



More information about the ffmpeg-devel mailing list