From e621dfc508e8093852f2294b7e421116ffed1d77 Mon Sep 17 00:00:00 2001 From: DRC Date: Fri, 19 Feb 2016 10:35:09 -0600 Subject: [PATCH] More minor code formatting tweaks --- cjpeg.c | 2 +- djpeg.c | 2 +- jcdctmgr.c | 14 +++++++------- jcmaster.c | 2 +- jdarith.c | 8 ++++---- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cjpeg.c b/cjpeg.c index 0d45193..713224f 100644 --- 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 6de5d2c..ce83104 100644 --- 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 diff --git a/jcdctmgr.c b/jcdctmgr.c index f3919b9..aef8517 100644 --- a/jcdctmgr.c +++ b/jcdctmgr.c @@ -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) diff --git a/jcmaster.c b/jcmaster.c index e715f0b..d1e1ba7 100644 --- a/jcmaster.c +++ b/jcmaster.c @@ -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 */ diff --git a/jdarith.c b/jdarith.c index 905412b..98d5fad 100644 --- 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); -- 2.40.0