X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmPixelWriteConvert.h;h=8764adf0c2dc1f43c686c9bcf807b3ce4b1168d9;hb=bd7bec4c367d671a9da358584e98a8ec29bb641e;hp=01c20c2ae68a241bdbccb0103c26b76f932ac1d0;hpb=906464b1c71b1b623f8202a693e75a358a5bd965;p=gdcm.git diff --git a/src/gdcmPixelWriteConvert.h b/src/gdcmPixelWriteConvert.h index 01c20c2a..8764adf0 100644 --- a/src/gdcmPixelWriteConvert.h +++ b/src/gdcmPixelWriteConvert.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelWriteConvert.h,v $ Language: C++ - Date: $Date: 2006/02/16 20:06:15 $ - Version: $Revision: 1.8 $ + Date: $Date: 2007/08/22 16:14:04 $ + Version: $Revision: 1.11 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -17,13 +17,13 @@ =========================================================================*/ -#ifndef GDCMPIXELWRITECONVERT_H -#define GDCMPIXELWRITECONVERT_H +#ifndef _GDCMPIXELWRITECONVERT_H_ +#define _GDCMPIXELWRITECONVERT_H_ #include "gdcmCommon.h" #include "gdcmBase.h" -namespace gdcm +namespace GDCM_NAME_SPACE { /** * \brief Utility container for gathering the various forms the pixel data @@ -31,6 +31,7 @@ namespace gdcm * \warning None of the methods may be called by end user (they have no * meaning outside the class FileHelper) */ +class File; class GDCM_EXPORT PixelWriteConvert : public Base { friend class FileHelper; @@ -57,6 +58,9 @@ private: uint8_t *GetData(); size_t GetDataSize(); + void SetCompressJPEG2000UserData(uint8_t *data, size_t size, File *image); + void SetCompressJPEGUserData(uint8_t *data, size_t size, File *image); + // Variables /// Pixel data represented as RGB after LUT color interpretation. uint8_t *ReadData; @@ -67,6 +71,9 @@ private: uint8_t *UserData; /// Size of User image. size_t UserDataSize; + + /// Whether we want to write compressed or not + bool Compressed; }; } // end namespace gdcm