search for: coupling_mag

Displaying 2 results from an estimated 2 matches for "coupling_mag".

Did you mean: coupling_ang
2010 Nov 04
4
Fwd: Merging jorbis upstream and the cortado jorbis fork back into one
...000000000 +0200 +++ jorbis-0.0.17/com/jcraft/jorbis/Mapping0.java 2010-11-04 14:14:30.774014847 +0100 @@ -99,8 +99,8 @@ class Mapping0 extends FuncMapping{ opb.write(1, 1); opb.write(info.coupling_steps-1, 8); for(int i=0; i<info.coupling_steps; i++){ - opb.write(info.coupling_mag[i], Util.ilog2(vi.channels)); - opb.write(info.coupling_ang[i], Util.ilog2(vi.channels)); + opb.write(info.coupling_mag[i], Util.ilog2roundup(vi.channels)); + opb.write(info.coupling_ang[i], Util.ilog2roundup(vi.channels)); } } else{ @@ -136,8 +136,8 @@ class M...
2004 Feb 23
2
About lossless and point stereo
...ich I don't quite understand and hope I can get some guidance on. I understand the decoding/decoupling part as it is the same as the one described in the stereo docs: From mapping0.c: /* channel coupling */ for(i=info->coupling_steps-1;i>=0;i--){ float *pcmM=vb->pcm[info->coupling_mag[i]]; float *pcmA=vb->pcm[info->coupling_ang[i]]; for(j=0;j<n/2;j++){ float mag=pcmM[j]; float ang=pcmA[j]; if(mag>0) if(ang>0){ pcmM[j]=mag; pcmA[j]=mag-ang; }else{ pcmA[j]=mag; pcmM[j]=mag+ang; } else if(ang&g...