"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/external/rawspeed/src/librawspeed/decompressors/AbstractLJpegDecompressor.cpp" between
darktable-3.2.1.tar.xz and darktable-3.4.0.tar.xz

About: darktable is an open source photography workflow application and RAW developer. A virtual lighttable and darkroom for photographers.

AbstractLJpegDecompressor.cpp  (darktable-3.2.1.tar.xz):AbstractLJpegDecompressor.cpp  (darktable-3.4.0.tar.xz)
skipping to change at line 160 skipping to change at line 160
ThrowRDE("Horizontal sampling factor is invalid."); ThrowRDE("Horizontal sampling factor is invalid.");
if (frame.compInfo[i].superH < 1 || frame.compInfo[i].superH > 4) if (frame.compInfo[i].superH < 1 || frame.compInfo[i].superH > 4)
ThrowRDE("Horizontal sampling factor is invalid."); ThrowRDE("Horizontal sampling factor is invalid.");
uint32_t Tq = sofInput.getByte(); uint32_t Tq = sofInput.getByte();
if (Tq != 0) if (Tq != 0)
ThrowRDE("Quantized components not supported."); ThrowRDE("Quantized components not supported.");
} }
sof->initialized = true; if (static_cast<int>(sof->compInfo[0].superH) !=
mRaw->metadata.subsampling.x ||
static_cast<int>(sof->compInfo[0].superV) != mRaw->metadata.subsampling.y)
ThrowRDE("LJpeg's subsampling does not match image's subsampling.");
mRaw->metadata.subsampling.x = sof->compInfo[0].superH; sof->initialized = true;
mRaw->metadata.subsampling.y = sof->compInfo[0].superV;
} }
void AbstractLJpegDecompressor::parseSOS(ByteStream sos) { void AbstractLJpegDecompressor::parseSOS(ByteStream sos) {
assert(frame.initialized); assert(frame.initialized);
if (sos.getRemainSize() != 1 + 2 * frame.cps + 3) if (sos.getRemainSize() != 1 + 2 * frame.cps + 3)
ThrowRDE("Invalid SOS header length."); ThrowRDE("Invalid SOS header length.");
uint32_t soscps = sos.getByte(); uint32_t soscps = sos.getByte();
if (frame.cps != soscps) if (frame.cps != soscps)
 End of changes. 2 change blocks. 
3 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)