diff tremor/mapping0.c @ 29264:e83eef58b30a

Remove all kind of trailing whitespaces from all MPlayer's files. This affects all kind of spaces (' ',^I,^M,^L,...): actually [:space:] regex character set.
author bircoph
date Wed, 13 May 2009 15:22:13 +0000
parents 4940b8a98c78
children
line wrap: on
line diff
--- a/tremor/mapping0.c	Wed May 13 02:58:57 2009 +0000
+++ b/tremor/mapping0.c	Wed May 13 15:22:13 2009 +0000
@@ -50,7 +50,7 @@
   vorbis_func_residue **residue_func;
 
   int ch;
-  long lastframe; /* if a different mode is called, we need to 
+  long lastframe; /* if a different mode is called, we need to
 		     invalidate decay */
 } vorbis_look_mapping0;
 
@@ -89,14 +89,14 @@
   vorbis_look_mapping0 *look=(vorbis_look_mapping0 *)_ogg_calloc(1,sizeof(*look));
   vorbis_info_mapping0 *info=look->map=(vorbis_info_mapping0 *)m;
   look->mode=vm;
-  
+
   look->floor_look=(vorbis_look_floor **)_ogg_calloc(info->submaps,sizeof(*look->floor_look));
 
   look->residue_look=(vorbis_look_residue **)_ogg_calloc(info->submaps,sizeof(*look->residue_look));
 
   look->floor_func=(vorbis_func_floor **)_ogg_calloc(info->submaps,sizeof(*look->floor_func));
   look->residue_func=(vorbis_func_residue **)_ogg_calloc(info->submaps,sizeof(*look->residue_func));
-  
+
   for(i=0;i<info->submaps;i++){
     int floornum=info->floorsubmap[i];
     int resnum=info->residuesubmap[i];
@@ -107,7 +107,7 @@
     look->residue_func[i]=_residue_P[ci->residue_type[resnum]];
     look->residue_look[i]=look->residue_func[i]->
       look(vd,vm,ci->residue_param[resnum]);
-    
+
   }
 
   look->ch=vi->channels;
@@ -144,9 +144,9 @@
       int testM=info->coupling_mag[i]=oggpack_read(opb,ilog(vi->channels));
       int testA=info->coupling_ang[i]=oggpack_read(opb,ilog(vi->channels));
 
-      if(testM<0 || 
-	 testA<0 || 
-	 testM==testA || 
+      if(testM<0 ||
+	 testA<0 ||
+	 testM==testA ||
 	 testM>=vi->channels ||
 	 testA>=vi->channels) goto err_out;
     }
@@ -154,7 +154,7 @@
   }
 
   if(oggpack_read(opb,2)>0)goto err_out; /* 2,3:reserved */
-    
+
   if(info->submaps>1){
     for(i=0;i<vi->channels;i++){
       info->chmuxlist[i]=oggpack_read(opb,4);
@@ -191,10 +191,10 @@
 
   ogg_int32_t **pcmbundle=(ogg_int32_t **)alloca(sizeof(*pcmbundle)*vi->channels);
   int    *zerobundle=(int *)alloca(sizeof(*zerobundle)*vi->channels);
-  
+
   int   *nonzero  =(int *)alloca(sizeof(*nonzero)*vi->channels);
   void **floormemo=(void **)alloca(sizeof(*floormemo)*vi->channels);
-  
+
   /* time domain information decode (note that applying the
      information would have to happen later; we'll probably add a
      function entry to the harness for that later */
@@ -208,7 +208,7 @@
     if(floormemo[i])
       nonzero[i]=1;
     else
-      nonzero[i]=0;      
+      nonzero[i]=0;
     memset(vb->pcm[i],0,sizeof(*vb->pcm[i])*n/2);
   }
 
@@ -216,8 +216,8 @@
   for(i=0;i<info->coupling_steps;i++){
     if(nonzero[info->coupling_mag[i]] ||
        nonzero[info->coupling_ang[i]]){
-      nonzero[info->coupling_mag[i]]=1; 
-      nonzero[info->coupling_ang[i]]=1; 
+      nonzero[info->coupling_mag[i]]=1;
+      nonzero[info->coupling_ang[i]]=1;
     }
   }
 
@@ -233,7 +233,7 @@
 	pcmbundle[ch_in_bundle++]=vb->pcm[j];
       }
     }
-    
+
     look->residue_func[i]->inverse(vb,look->residue_look[i],
 				   pcmbundle,zerobundle,ch_in_bundle);
   }
@@ -246,11 +246,11 @@
   for(i=info->coupling_steps-1;i>=0;i--){
     ogg_int32_t *pcmM=vb->pcm[info->coupling_mag[i]];
     ogg_int32_t *pcmA=vb->pcm[info->coupling_ang[i]];
-    
+
     for(j=0;j<n/2;j++){
       ogg_int32_t mag=pcmM[j];
       ogg_int32_t ang=pcmA[j];
-      
+
       if(mag>0)
 	if(ang>0){
 	  pcmM[j]=mag;
@@ -302,7 +302,7 @@
     else
       for(j=0;j<n;j++)
 	pcm[j]=0;
-    
+
   }
 
   //for(j=0;j<vi->channels;j++)