X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFrame.h;h=c076cb57d283d22acba494140660acccd298f42b;hb=a585fafed1e72e092c6a1942c8692991c1688e7f;hp=f7dcf0d5575ed2f88d88faa9dc2f5bd25e9bc8e8;hpb=e28b183ba68aa3cc84a44a779a31f9d906a1ad2f;p=gdcm.git diff --git a/src/gdcmRLEFrame.h b/src/gdcmRLEFrame.h index f7dcf0d5..c076cb57 100644 --- a/src/gdcmRLEFrame.h +++ b/src/gdcmRLEFrame.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRLEFrame.h,v $ Language: C++ - Date: $Date: 2004/10/18 12:49:23 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/11/18 14:33:24 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -22,6 +22,9 @@ #include "gdcmCommon.h" +#include +#include + namespace gdcm { /** @@ -42,14 +45,29 @@ namespace gdcm */ class GDCM_EXPORT RLEFrame { -friend class Document; friend class File; -friend class PixelConvert; - int NumberFragments; - long Offset[15]; - long Length[15]; - RLEFrame() { NumberFragments = 0; } - +friend class RLEFramesInfo; +private: + RLEFrame() { NumberOfFragments = 0; } + void Print( std::ostream &os = std::cout, std::string indent = "" ); + + void SetNumberOfFragments(unsigned int number) + { NumberOfFragments = number; } + unsigned int GetNumberOfFragments() { return NumberOfFragments; } + void SetOffset(unsigned int id, long offset); + long GetOffset(unsigned int id); + void SetLength(unsigned int id, long length); + long GetLength(unsigned int id); + + uint8_t *ReadAndDecompressRLEFrame( uint8_t *subRaw,long rawSegmentSize, + std::ifstream *fp ); + bool ReadAndDecompressRLEFragment( uint8_t *subRaw, long fragmentSize, + long rawSegmentSize, std::ifstream *fp ); + +//private: + unsigned int NumberOfFragments; + long Offset[15]; + long Length[15]; }; } // end namespace gdcm //-----------------------------------------------------------------------------