changeset 28852:1f9343ea37df

Get rid of pointless debugging code
author reimar
date Sun, 08 Mar 2009 13:21:00 +0000
parents 66ef9fc02b90
children e3f3a991ba81
files libmpcodecs/native/rtjpegn.c
diffstat 1 files changed, 0 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/native/rtjpegn.c	Sun Mar 08 13:17:18 2009 +0000
+++ b/libmpcodecs/native/rtjpegn.c	Sun Mar 08 13:21:00 2009 +0000
@@ -92,7 +92,6 @@
 static __u16 RTjpeg_lmask;
 static __u16 RTjpeg_cmask;
 #endif
-static int RTjpeg_mtest=0;
 
 static const unsigned char RTjpeg_lum_quant_tbl[64] = {
     16,  11,  10,  16,  24,  40,  51,  61,
@@ -150,11 +149,6 @@
 
 #endif
 
-// *strm++ = 0x10;
-// *strm   = 0x00;
-//
-// return 2;
-
  // first byte allways written
  ((__u8*)strm)[0]=
       (__u8)(data[RTjpeg_ZZ[0]]>254) ? 254:((data[RTjpeg_ZZ[0]]<0)?0:data[RTjpeg_ZZ[0]]);
@@ -2849,8 +2843,6 @@
  RTjpeg_cb8--;
 
  RTjpeg_idct_init();
-
-// RTjpeg_color_init();
 }
 
 int RTjpeg_compressYUV420(__s8 *sp, unsigned char *bp)
@@ -3035,11 +3027,8 @@
  
  if(result.q)
  {
-//  if(!RTjpeg_mtest)
-//   for(i=0; i<16; i++)((__u64 *)old)[i]=((__u64 *)RTjpeg_block)[i];
   return 0;
  }
-// printf(".");
  return 1;
 }
 
@@ -3051,7 +3040,6 @@
  for(i=0; i<64; i++)
   if(abs(old[i]-RTjpeg_block[i])>*mask)
   {
-   if(!RTjpeg_mtest)
     for(i=0; i<16; i++)((__u64 *)old)[i]=((__u64 *)RTjpeg_block)[i];
    return 0;
   }
@@ -3059,15 +3047,9 @@
 }
 #endif
 
-static void RTjpeg_set_test(int i)
-{
- RTjpeg_mtest=i;
-}
-
 int RTjpeg_mcompressYUV420(__s8 *sp, unsigned char *bp, __u16 lmask, __u16 cmask)
 {
  __s8 * sb;
-//rh __s16 *block;
  register __s8 * bp1 = bp + (RTjpeg_width<<3);
  register __s8 * bp2 = bp + RTjpeg_Ysize;
  register __s8 * bp3 = bp2 + (RTjpeg_Csize>>1);