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
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;
Filetype = Unknown;
return false;
}
- // Then the only info we have is the net2host one.
- //if (! net2host )
- // SwapCode = 1234;
- //else
- // SwapCode = 4321;
- //return;
}
}
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
// 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()
/**
* \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()
/* 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;
\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