]> Creatis software - gdcm.git/blobdiff - src/jpeg/libijg/jdatadst.c
ENH: ok making too many mistakes time to go to bed
[gdcm.git] / src / jpeg / libijg / jdatadst.c
index a8f6fb0e025364eccfcb033dcf576560fc7c0fb3..88d859d210238daa04e630429f2c918513743854 100644 (file)
 typedef struct {
   struct jpeg_destination_mgr pub; /* public fields */
 
-  FILE * outfile;              /* target stream */
-  JOCTET * buffer;             /* start of buffer */
+  FILE * outfile;    /* target stream */
+  JOCTET * buffer;    /* start of buffer */
 } my_destination_mgr;
 
 typedef my_destination_mgr * my_dest_ptr;
 
-#define OUTPUT_BUF_SIZE  4096  /* choose an efficiently fwrite'able size */
+#define OUTPUT_BUF_SIZE  4096  /* choose an efficiently fwrite'able size */
 
 
 /*
@@ -47,7 +47,7 @@ init_destination (j_compress_ptr cinfo)
   /* Allocate the output buffer --- it will be released when done with image */
   dest->buffer = (JOCTET *)
       (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
-                                 OUTPUT_BUF_SIZE * SIZEOF(JOCTET));
+          OUTPUT_BUF_SIZE * SIZEOF(JOCTET));
 
   dest->pub.next_output_byte = dest->buffer;
   dest->pub.free_in_buffer = OUTPUT_BUF_SIZE;
@@ -137,10 +137,10 @@ jpeg_stdio_dest (j_compress_ptr cinfo, FILE * outfile)
    * manager serially with the same JPEG object, because their private object
    * sizes may be different.  Caveat programmer.
    */
-  if (cinfo->dest == NULL) {   /* first time for this JPEG object? */
+  if (cinfo->dest == NULL) {  /* first time for this JPEG object? */
     cinfo->dest = (struct jpeg_destination_mgr *)
       (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_PERMANENT,
-                                 SIZEOF(my_destination_mgr));
+          SIZEOF(my_destination_mgr));
   }
 
   dest = (my_dest_ptr) cinfo->dest;