search for: coupling_ang

Displaying 3 results from an estimated 3 matches for "coupling_ang".

2010 Nov 04
4
Fwd: Merging jorbis upstream and the cortado jorbis fork back into one
...010-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 Mapping0 extends FuncMapping{ info.coupling_steps=opb.read(8)...
2001 Oct 16
4
Possible channel coupling bug in encoder
...* * 0x00120754, float * * 0x00120758, int * 0x00120760, int 0) line 1021 + 35 bytes mapping0_forward(vorbis_block * 0x00121a20, void * 0x01e68d3c) line 496 + 41 bytes vorbis_analysis(vorbis_block * 0x00121a20, ogg_packet * 0x00121b30) line 65 + 30 bytes The error stems from: float *pcmA=pcm[vi->coupling_ang[i]]; where i is 0 vi->coupling_ang[i] is 1 pcm is only one channel so pcmA is 0xfdfdfdfd im not sure if the error is that info->coupling_steps is 1 but should be 0 for a mono stream Is it me that is doing something wrong or in this a bug... --- >8 ---- List archives: http://www.xip...
2004 Feb 23
2
About lossless and point stereo
...me 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>0){ pcmM[j]=mag; pcmA[j]=mag+ang; }e...