in src/tiffFrame.cpp [252:267]
bool TiffFrame::canDecodeJpeg() {
if (done_) {
return true;
}
const TiffFrameJpgBytes jpegBytes(this);
const bool result = jpegUtil::canDecodeJpeg(jpegBytes.width(),
jpegBytes.height(),
jpegDecodeColorSpace(),
jpegBytes.compressedJpeg(),
jpegBytes.compressedJpegSize());
if (result) {
return true;
}
BOOST_LOG_TRIVIAL(error) << "Error occured decoding jpeg in TIFF file.";
return false;
}