Program: gdcm
Module: $RCSfile: gdcmPixelConvert.h,v $
Language: C++
- Date: $Date: 2004/10/18 12:49:23 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2004/10/22 03:05:42 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//// Predicates:
bool IsDecompressedRGB();
+ void Print( std::string indent = "", std::ostream &os = std::cout );
+
// In progress
void GrabInformationsFromHeader( Header* header );
- bool ReadAndDecompressPixelData( FILE* fp );
+ bool ReadAndDecompressPixelData( std::ifstream* fp );
void Squeeze();
- bool BuildRGBImage( FILE* fp );
+ bool BuildRGBImage();
private:
// Use the fp:
uint8_t* subDecompressed,
long fragmentSize,
long decompressedSegmentSize,
- FILE* fp );
- void ReadAndDecompress12BitsTo16Bits( FILE* fp ) throw ( FormatError );
- bool ReadAndDecompressRLEFile( FILE* fp );
- bool ReadAndDecompressJPEGFile( FILE* fp );
- void BuildLUTRGBA( FILE* fp );
+ std::ifstream* fp );
+ void ReadAndDecompress12BitsTo16Bits( std::ifstream* fp ) throw ( FormatError );
+ bool ReadAndDecompressRLEFile( std::ifstream* fp );
+ bool ReadAndDecompressJPEGFile( std::ifstream* fp );
+ void BuildLUTRGBA( std::ifstream* fp );
// In place (within Decompressed and with no fp access) decompression
// or convertion:
+ void BuildLUTRGBA();
bool DecompressRLE16BitsFromRLE8Bits( int NumberOfFrames );
void ConvertSwapZone();
void ConvertReorderEndianity();