]> granicus.if.org Git - libjpeg-turbo/commitdiff
More minor code formatting tweaks
authorDRC <information@libjpeg-turbo.org>
Fri, 19 Feb 2016 16:35:09 +0000 (10:35 -0600)
committerDRC <information@libjpeg-turbo.org>
Fri, 19 Feb 2016 16:35:09 +0000 (10:35 -0600)
cjpeg.c
djpeg.c
jcdctmgr.c
jcmaster.c
jdarith.c

diff --git a/cjpeg.c b/cjpeg.c
index 0d451930a847494d834f0168cec3ff021e0f24e0..713224ff41cf6dd0f49105386de9adbfc59978b3 100644 (file)
--- a/cjpeg.c
+++ b/cjpeg.c
@@ -140,7 +140,7 @@ select_file_type (j_compress_ptr cinfo, FILE *infile)
 
 static const char *progname;    /* program name for error messages */
 static char *outfilename;       /* for -outfile switch */
-boolean memdst;  /* for -memdst switch */
+boolean memdst;                 /* for -memdst switch */
 
 
 LOCAL(void)
diff --git a/djpeg.c b/djpeg.c
index 6de5d2c61426cc17c34c80820a86ca310634d818..ce83104ecfde13edc6830ab8b0a4c91f059e3289 100644 (file)
--- a/djpeg.c
+++ b/djpeg.c
@@ -90,7 +90,7 @@ static IMAGE_FORMATS requested_fmt;
 
 static const char *progname;    /* program name for error messages */
 static char *outfilename;       /* for -outfile switch */
-boolean memsrc;  /* for -memsrc switch */
+boolean memsrc;                 /* for -memsrc switch */
 boolean strip, skip;
 JDIMENSION startY, endY;
 #define INPUT_BUF_SIZE  4096
index f3919b9e0a9e135e98de3b09280190125e6b06b4..aef8517f9c5c292e713cfdb61e6cae55b2ee7223 100644 (file)
@@ -265,8 +265,8 @@ start_pass_fdctmgr (j_compress_ptr cinfo)
       dtbl = fdct->divisors[qtblno];
       for (i = 0; i < DCTSIZE2; i++) {
 #if BITS_IN_JSAMPLE == 8
-        if(!compute_reciprocal(qtbl->quantval[i] << 3, &dtbl[i])
-          && fdct->quantize == jsimd_quantize)
+        if (!compute_reciprocal(qtbl->quantval[i] << 3, &dtbl[i]) &&
+            fdct->quantize == jsimd_quantize)
           fdct->quantize = quantize;
 #else
         dtbl[i] = ((DCTELEM) qtbl->quantval[i]) << 3;
@@ -305,11 +305,11 @@ start_pass_fdctmgr (j_compress_ptr cinfo)
         dtbl = fdct->divisors[qtblno];
         for (i = 0; i < DCTSIZE2; i++) {
 #if BITS_IN_JSAMPLE == 8
-          if(!compute_reciprocal(
-            DESCALE(MULTIPLY16V16((JLONG) qtbl->quantval[i],
-                                  (JLONG) aanscales[i]),
-                    CONST_BITS-3), &dtbl[i])
-            && fdct->quantize == jsimd_quantize)
+          if (!compute_reciprocal(
+                DESCALE(MULTIPLY16V16((JLONG) qtbl->quantval[i],
+                                      (JLONG) aanscales[i]),
+                        CONST_BITS-3), &dtbl[i]) &&
+              fdct->quantize == jsimd_quantize)
             fdct->quantize = quantize;
 #else
            dtbl[i] = (DCTELEM)
index e715f0b71bb2ae6f8987f26884b4afb16fdbb134..d1e1ba7b691d8926e1ffb9fab00fc8cc0e144a74 100644 (file)
@@ -603,7 +603,7 @@ jinit_c_master_control (j_compress_ptr cinfo, boolean transcode_only)
     cinfo->num_scans = 1;
   }
 
-  if (cinfo->progressive_mode && !cinfo->arith_code)    /*  TEMPORARY HACK ??? */
+  if (cinfo->progressive_mode && !cinfo->arith_code)  /*  TEMPORARY HACK ??? */
     cinfo->optimize_coding = TRUE; /* assume default tables no good for progressive mode */
 
   /* Initialize my private state */
index 905412bb8ee76465fd771ae79c07ad0e4a5c1e90..98d5fad1525280611a50cee048961aec03537875 100644 (file)
--- a/jdarith.c
+++ b/jdarith.c
@@ -203,13 +203,13 @@ process_restart (j_decompress_ptr cinfo)
   /* Re-initialize statistics areas */
   for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
     compptr = cinfo->cur_comp_info[ci];
-    if (! cinfo->progressive_mode || (cinfo->Ss == 0 && cinfo->Ah == 0)) {
+    if (!cinfo->progressive_mode || (cinfo->Ss == 0 && cinfo->Ah == 0)) {
       MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS);
       /* Reset DC predictions to 0 */
       entropy->last_dc_val[ci] = 0;
       entropy->dc_context[ci] = 0;
     }
-    if (! cinfo->progressive_mode || cinfo->Ss) {
+    if (!cinfo->progressive_mode || cinfo->Ss) {
       MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS);
     }
   }
@@ -694,7 +694,7 @@ start_pass (j_decompress_ptr cinfo)
   /* Allocate & initialize requested statistics areas */
   for (ci = 0; ci < cinfo->comps_in_scan; ci++) {
     compptr = cinfo->cur_comp_info[ci];
-    if (! cinfo->progressive_mode || (cinfo->Ss == 0 && cinfo->Ah == 0)) {
+    if (!cinfo->progressive_mode || (cinfo->Ss == 0 && cinfo->Ah == 0)) {
       tbl = compptr->dc_tbl_no;
       if (tbl < 0 || tbl >= NUM_ARITH_TBLS)
         ERREXIT1(cinfo, JERR_NO_ARITH_TABLE, tbl);
@@ -706,7 +706,7 @@ start_pass (j_decompress_ptr cinfo)
       entropy->last_dc_val[ci] = 0;
       entropy->dc_context[ci] = 0;
     }
-    if (! cinfo->progressive_mode || cinfo->Ss) {
+    if (!cinfo->progressive_mode || cinfo->Ss) {
       tbl = compptr->ac_tbl_no;
       if (tbl < 0 || tbl >= NUM_ARITH_TBLS)
         ERREXIT1(cinfo, JERR_NO_ARITH_TABLE, tbl);