Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomFormat/DicomImageInformation.h @ 4312:6d49e3b6ff77
fix abi of DicomImageInformation
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 09 Nov 2020 15:22:43 +0100 |
parents | ab4d015af660 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4311:cb9aef006229 | 4312:6d49e3b6ff77 |
---|---|
27 #include <stdint.h> | 27 #include <stdint.h> |
28 | 28 |
29 namespace Orthanc | 29 namespace Orthanc |
30 { | 30 { |
31 class ORTHANC_PUBLIC DicomImageInformation | 31 class ORTHANC_PUBLIC DicomImageInformation |
32 { | 32 { |
33 public: | |
34 /** | |
35 * This constant gives a bound on the maximum tag length that is | |
36 * useful to class "DicomImageInformation", in order to avoid | |
37 * using too much memory when copying DICOM tags from "DcmDataset" | |
38 * to "DicomMap" using "ExtractDicomSummary()". The value 256 | |
39 * corresponds to ORTHANC_MAXIMUM_TAG_LENGTH that was implicitly | |
40 * used in Orthanc <= 1.7.2. | |
41 **/ | |
42 static const unsigned int USEFUL_TAG_LENGTH = 256; | |
43 | |
44 private: | 33 private: |
45 unsigned int width_; | 34 unsigned int width_; |
46 unsigned int height_; | 35 unsigned int height_; |
47 unsigned int samplesPerPixel_; | 36 unsigned int samplesPerPixel_; |
48 uint32_t numberOfFrames_; | 37 uint32_t numberOfFrames_; |
93 | 82 |
94 bool ExtractPixelFormat(PixelFormat& format, | 83 bool ExtractPixelFormat(PixelFormat& format, |
95 bool ignorePhotometricInterpretation) const; | 84 bool ignorePhotometricInterpretation) const; |
96 | 85 |
97 size_t GetFrameSize() const; | 86 size_t GetFrameSize() const; |
87 | |
88 /** | |
89 * This constant gives a bound on the maximum tag length that is | |
90 * useful to class "DicomImageInformation", in order to avoid | |
91 * using too much memory when copying DICOM tags from "DcmDataset" | |
92 * to "DicomMap" using "ExtractDicomSummary()". It answers the | |
93 * value 256, which corresponds to ORTHANC_MAXIMUM_TAG_LENGTH that | |
94 * was implicitly used in Orthanc <= 1.7.2. | |
95 **/ | |
96 static unsigned int GetUsefulTagLength(); | |
98 }; | 97 }; |
99 } | 98 } |