Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GDCMJPEGLSCODEC_H
00016 #define GDCMJPEGLSCODEC_H
00017
00018 #include "gdcmImageCodec.h"
00019
00020 namespace gdcm
00021 {
00022
00023 class JPEGLSInternals;
00031 class GDCM_EXPORT JPEGLSCodec : public ImageCodec
00032 {
00033 public:
00034 JPEGLSCodec();
00035 ~JPEGLSCodec();
00036 bool CanDecode(TransferSyntax const &ts) const;
00037 bool CanCode(TransferSyntax const &ts) const;
00038
00039 unsigned long GetBufferLength() const { return BufferLength; }
00040 void SetBufferLength(unsigned long l) { BufferLength = l; }
00041
00042 bool Decode(DataElement const &is, DataElement &os);
00043 bool Code(DataElement const &in, DataElement &out);
00044
00045 bool GetHeaderInfo(std::istream &is, TransferSyntax &ts);
00046
00047 void SetLossless(bool l);
00048 bool GetLossless() const;
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00061 void SetLossyError(int error);
00062
00063 private:
00064 unsigned long BufferLength;
00065 bool Lossless;
00066 int LossyError;
00067 };
00068
00069 }
00070
00071 #endif //GDCMJPEGLSCODEC_H