Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomIntegerPixelAccessor.cpp @ 319:760d0f32cb34
PMSCT_RLE1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 03 Jan 2013 13:19:51 +0100 |
parents | fe180eae201d |
children | 80011cd589e6 |
comparison
equal
deleted
inserted
replaced
318:b83d85a85d69 | 319:760d0f32cb34 |
---|---|
109 if (samplesPerPixel_ != 1) | 109 if (samplesPerPixel_ != 1) |
110 { | 110 { |
111 throw OrthancException(ErrorCode_NotImplemented); | 111 throw OrthancException(ErrorCode_NotImplemented); |
112 } | 112 } |
113 | 113 |
114 if (width_ * height_ * bitsAllocated / 8 * numberOfFrames_ != size) | 114 if (width_ * height_ * bitsAllocated / 8 * numberOfFrames_ > size) |
115 { | 115 { |
116 throw OrthancException(ErrorCode_NotImplemented); | 116 throw OrthancException(ErrorCode_BadFileFormat); |
117 } | 117 } |
118 | 118 |
119 /*printf("%d %d %d %d %d %d %d %d\n", width_, height_, samplesPerPixel_, bitsAllocated, | 119 /*printf("%d %d %d %d %d %d %d %d\n", width_, height_, samplesPerPixel_, bitsAllocated, |
120 bitsStored, highBit, pixelRepresentation, numberOfFrames_);*/ | 120 bitsStored, highBit, pixelRepresentation, numberOfFrames_);*/ |
121 | 121 |