]> Creatis software - gdcm.git/commitdiff
Enhence some comments
authorjpr <jpr>
Wed, 12 Jan 2005 11:33:39 +0000 (11:33 +0000)
committerjpr <jpr>
Wed, 12 Jan 2005 11:33:39 +0000 (11:33 +0000)
src/gdcmDocument.cxx
src/gdcmFile.cxx
src/gdcmjpeg/jdatadst.c
src/gdcmjpeg/jmemsrc.c

index c60284b6d51e09afadbd75d4239f6e89a27723e5..75defab8a4f50c6ff3338d2f7f2b42b7b382b664 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 23:16:47 $
-  Version:   $Revision: 1.181 $
+  Date:      $Date: 2005/01/12 11:33:39 $
+  Version:   $Revision: 1.182 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -1015,15 +1015,13 @@ uint32_t Document::SwapLong(uint32_t a)
       case 4321 :
          a=( ((a<<24) & 0xff000000) | ((a<<8)  & 0x00ff0000) | 
              ((a>>8)  & 0x0000ff00) | ((a>>24) & 0x000000ff) );
-         break;
-   
+         break;   
       case 3412 :
          a=( ((a<<16) & 0xffff0000) | ((a>>16) & 0x0000ffff) );
-         break;
-   
+         break;  
       case 2143 :
          a=( ((a<< 8) & 0xff00ff00) | ((a>>8) & 0x00ff00ff)  );
-         break;
+      break;
       default :
          gdcmErrorMacro( "Unset swap code:" << SwapCode );
          a = 0;
@@ -2257,12 +2255,6 @@ bool Document::CheckSwap()
                Filetype = Unknown;
                return false;
          }
-         // Then the only info we have is the net2host one.
-         //if (! net2host )
-         //   SwapCode = 1234;
-         //else
-         //  SwapCode = 4321;
-         //return;
    }
 }
 
index 11ec7fe6e6071545ed107b4987909d2549d382e9..5b43dc21a688f13cff19db848afc7cfe17a98ee5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/11 16:44:43 $
-  Version:   $Revision: 1.190 $
+  Date:      $Date: 2005/01/12 11:33:39 $
+  Version:   $Revision: 1.191 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -140,9 +140,10 @@ void File::Print(std::ostream &os)
 // Public
 /**
  * \brief   Get the size of the image data
- * 
  *          If the image can be RGB (with a lut or by default), the size 
  *          corresponds to the RGB image
+ *         (use GetImageDataRawSize if you want to be sure to get *only*
+ *          the size of the pixels)
  * @return  The image size
  */
 size_t File::GetImageDataSize()
@@ -157,9 +158,9 @@ size_t File::GetImageDataSize()
 
 /**
  * \brief   Get the size of the image data
- * 
- *          If the image can be RGB by transformation in a LUT, this
- *          transformation isn't considered
+ *          If the image could be converted to RGB using a LUT, 
+ *          this transformation is not taken into account by GetImageDataRawSize
+ *          (use GetImageDataSize if you wish)
  * @return  The raw image size
  */
 size_t File::GetImageDataRawSize()
index 88d859d210238daa04e630429f2c918513743854..623f9e0dea4c49a2c6c332d205ca4393333df5a6 100644 (file)
 
 /* Expanded data destination object for stdio output */
 
+/**
+ * \brief very low level C 'structure', used to decode jpeg file
+ * Should not appear in the Doxygen supplied documentation
+ */
 typedef struct {
   struct jpeg_destination_mgr pub; /* public fields */
-
   FILE * outfile;    /* target stream */
   JOCTET * buffer;    /* start of buffer */
 } my_destination_mgr;
index cb371bc5704313063f6809191247d5c3e4b9ad69..b208fbc5f333a5ee201a93477c64b2590a48841e 100644 (file)
 \r
 /* Expanded data source object for memory input */\r
 \r
+/**\r
+ * \brief very low level C 'structure', used to decode jpeg file\r
+ * Should not appear in the Doxygen supplied documentation\r
+ */\r
 typedef struct {\r
   struct jpeg_source_mgr pub; /* public fields */\r
-\r
   JOCTET eoi_buffer[2];       /* a place to put a dummy EOI */\r
 } my_source_mgr;\r
 \r