]> granicus.if.org Git - libjpeg-turbo/commitdiff
Code formatting tweaks
authorDRC <information@libjpeg-turbo.org>
Sat, 18 Nov 2017 00:15:42 +0000 (18:15 -0600)
committerDRC <information@libjpeg-turbo.org>
Sat, 18 Nov 2017 00:39:53 +0000 (18:39 -0600)
jcdctmgr.c
jcstest.c
jdatadst-tj.c
jdcolor.c
jdmerge.c
wrbmp.c

index aef8517f9c5c292e713cfdb61e6cae55b2ee7223..6e3b19bcb37330dffe716abd226f729742de6d7b 100644 (file)
@@ -216,7 +216,7 @@ compute_reciprocal (UINT16 divisor, DCTELEM *dtbl)
 #endif
   dtbl[DCTSIZE2 * 3] = (DCTELEM) r - sizeof(DCTELEM)*8; /* shift */
 
-  if(r <= 16) return 0;
+  if (r <= 16) return 0;
   else return 1;
 }
 
index 358ed251596bb10751b1a9d82af48fbc6484df04..11883b594b208c5f053293c3c83887b8a24b8276 100644 (file)
--- a/jcstest.c
+++ b/jcstest.c
@@ -77,7 +77,7 @@ int main(void)
   jerr.pub.error_exit = my_error_exit;
   jerr.pub.output_message = my_output_message;
 
-  if(setjmp(jerr.jb)) {
+  if (setjmp(jerr.jb)) {
     /* this will execute if libjpeg has an error */
     jcs_valid = 0;
     goto done;
@@ -104,7 +104,7 @@ int main(void)
   printf("  Not present at compile time\n");
   #endif
 
-  if(setjmp(jerr.jb)) {
+  if (setjmp(jerr.jb)) {
     /* this will execute if libjpeg has an error */
     jcs_alpha_valid = 0;
     goto done2;
index c6144ecb2d779fa24bb4c6bc78a00dc1352cdb02..a2219dff7cf96433c523aeb9d409bd98e38da00e 100644 (file)
@@ -130,7 +130,7 @@ term_mem_destination (j_compress_ptr cinfo)
 {
   my_mem_dest_ptr dest = (my_mem_dest_ptr) cinfo->dest;
 
-  if(dest->alloc) *dest->outbuffer = dest->buffer;
+  if (dest->alloc) *dest->outbuffer = dest->buffer;
   *dest->outsize = (unsigned long)(dest->bufsize - dest->pub.free_in_buffer);
 }
 
index ab8fa24925e70f330e7394e43833ff7e07f72672..05cbf4df1fa8a296169289feaf1db820ea1ed067 100644 (file)
--- a/jdcolor.c
+++ b/jdcolor.c
@@ -616,7 +616,7 @@ static const JLONG dither_matrix[4] = {
 static INLINE boolean is_big_endian(void)
 {
   int test_value = 1;
-  if(*(char *)&test_value != 1)
+  if (*(char *)&test_value != 1)
     return TRUE;
   return FALSE;
 }
index 6276dd0950fc1183f4e9bc4a8a08893385933907..ca6f16c252501891be4283556f0a0d1634cadcb0 100644 (file)
--- a/jdmerge.c
+++ b/jdmerge.c
@@ -503,7 +503,7 @@ static const JLONG dither_matrix[4] = {
 static INLINE boolean is_big_endian(void)
 {
   int test_value = 1;
-  if(*(char *)&test_value != 1)
+  if (*(char *)&test_value != 1)
     return TRUE;
   return FALSE;
 }
diff --git a/wrbmp.c b/wrbmp.c
index 94f52cacedca0d9eef0e5597169750afb0e87641..728bbadd751b886632902ef170a3d61592a634aa 100644 (file)
--- a/wrbmp.c
+++ b/wrbmp.c
@@ -70,7 +70,7 @@ LOCAL(void) write_colormap
 static INLINE boolean is_big_endian(void)
 {
   int test_value = 1;
-  if(*(char *)&test_value != 1)
+  if (*(char *)&test_value != 1)
     return TRUE;
   return FALSE;
 }
@@ -104,7 +104,7 @@ put_pixel_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo,
   inptr = dest->pub.buffer[0];
   outptr = image_ptr[0];
 
-  if(cinfo->out_color_space == JCS_RGB565) {
+  if (cinfo->out_color_space == JCS_RGB565) {
     boolean big_endian = is_big_endian();
     unsigned short *inptr2 = (unsigned short *)inptr;
     for (col = cinfo->output_width; col > 0; col--) {
@@ -447,7 +447,7 @@ jinit_write_bmp (j_decompress_ptr cinfo, boolean is_os2)
       dest->pub.put_pixel_rows = put_gray_rows;
     else
       dest->pub.put_pixel_rows = put_pixel_rows;
-  } else if(cinfo->out_color_space == JCS_RGB565 ) {
+  } else if (cinfo->out_color_space == JCS_RGB565) {
       dest->pub.put_pixel_rows = put_pixel_rows;
   } else {
     ERREXIT(cinfo, JERR_BMP_COLORSPACE);