Mercurial > hg > orthanc
comparison OrthancServer/Internals/DicomImageDecoder.h @ 847:03ea55da7429 jpeg
fully functional JPEG-LS conversion
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Jun 2014 18:14:16 +0200 |
parents | 715ab7674993 |
children | 5944b8b80842 |
comparison
equal
deleted
inserted
replaced
846:715ab7674993 | 847:03ea55da7429 |
---|---|
40 { | 40 { |
41 class DicomImageDecoder | 41 class DicomImageDecoder |
42 { | 42 { |
43 public: // TODO SWITCH TO PRIVATE | 43 public: // TODO SWITCH TO PRIVATE |
44 //private: | 44 //private: |
45 static void DecodeUncompressedImageInternal(ImageBuffer& target, | |
46 DcmDataset& dataset, | |
47 unsigned int frame); | |
48 | |
45 static bool IsPsmctRle1(DcmDataset& dataset); | 49 static bool IsPsmctRle1(DcmDataset& dataset); |
46 | 50 |
47 static void SetupImageBuffer(ImageBuffer& target, | 51 static void SetupImageBuffer(ImageBuffer& target, |
48 DcmDataset& dataset); | 52 DcmDataset& dataset); |
49 | 53 |
50 static bool DecodePsmctRle1(std::string& output, | 54 static bool DecodePsmctRle1(std::string& output, |
51 DcmDataset& dataset); | 55 DcmDataset& dataset); |
52 | 56 |
53 public: | 57 public: |
58 static bool IsUncompressedImage(const DcmDataset& dataset); | |
59 | |
54 static bool IsJpegLossless(const DcmDataset& dataset); | 60 static bool IsJpegLossless(const DcmDataset& dataset); |
61 | |
62 static void DecodeUncompressedImage(ImageBuffer& target, | |
63 DcmDataset& dataset, | |
64 unsigned int frame); | |
55 | 65 |
56 #if ORTHANC_JPEG_LOSSLESS_ENABLED == 1 | 66 #if ORTHANC_JPEG_LOSSLESS_ENABLED == 1 |
57 static void DecodeJpegLossless(ImageBuffer& target, | 67 static void DecodeJpegLossless(ImageBuffer& target, |
58 DcmDataset& dataset); | 68 DcmDataset& dataset, |
69 unsigned int frame); | |
59 #endif | 70 #endif |
60 | 71 |
72 static bool Decode(ImageBuffer& target, | |
73 DcmDataset& dataset, | |
74 unsigned int frame); | |
61 }; | 75 }; |
62 } | 76 } |