Displaying 3 results from an estimated 3 matches for "coupling_steps".
2010 Nov 04
4
Fwd: Merging jorbis upstream and the cortado jorbis fork back into one
...craft/jorbis/Mapping0.java
--- jorbis-0.0.17/com/jcraft/jorbis/Mapping0.java~ 2008-05-07 10:06:50.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...
2004 Feb 23
2
About lossless and point stereo
...ng the source code to understand it. But there are some
things which 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{...
2001 Oct 16
4
Possible channel coupling bug in encoder
...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.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org'
cont...