From 33cc53ba511843ac9857470e74e043013d3620fe Mon Sep 17 00:00:00 2001 From: David Bremner Date: Tue, 25 Dec 2018 22:44:44 +0900 Subject: Importing darktable_2.6.0.orig.tar.xz --- .../decompressors/AbstractLJpegDecompressor.h | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/external/rawspeed/src/librawspeed/decompressors/AbstractLJpegDecompressor.h') diff --git a/src/external/rawspeed/src/librawspeed/decompressors/AbstractLJpegDecompressor.h b/src/external/rawspeed/src/librawspeed/decompressors/AbstractLJpegDecompressor.h index 74a7941af..53a6d8d46 100644 --- a/src/external/rawspeed/src/librawspeed/decompressors/AbstractLJpegDecompressor.h +++ b/src/external/rawspeed/src/librawspeed/decompressors/AbstractLJpegDecompressor.h @@ -26,13 +26,10 @@ #include "decoders/RawDecoderException.h" // for ThrowRDE #include "decompressors/AbstractDecompressor.h" // for AbstractDecompressor #include "decompressors/HuffmanTable.h" // for HuffmanTable -#include "io/Buffer.h" // for Buffer, Buffer::size_type #include "io/ByteStream.h" // for ByteStream -#include "io/Endianness.h" // for getHostEndianness, Endiannes... -#include // for array -#include // for unique_ptr -#include // for move -#include // for vector +#include // for array +#include // for unique_ptr +#include // for vector /* * The following enum and two structs are stolen from the IJG JPEG library @@ -118,20 +115,20 @@ struct JpegComponentInfo { * These values are fixed over the whole image. * They are read from the SOF marker. */ - uint32 componentId = -1; /* identifier for this component (0..255) */ + uint32 componentId = ~0U; /* identifier for this component (0..255) */ /* * Huffman table selector (0..3). The value may vary * between scans. It is read from the SOS marker. */ - uint32 dcTblNo = -1; - uint32 superH = -1; // Horizontal Supersampling - uint32 superV = -1; // Vertical Supersampling + uint32 dcTblNo = ~0U; + uint32 superH = ~0U; // Horizontal Supersampling + uint32 superV = ~0U; // Vertical Supersampling }; class SOFInfo { public: - JpegComponentInfo compInfo[4]; + std::array compInfo; uint32 w = 0; // Width uint32 h = 0; // Height uint32 cps = 0; // Components -- cgit v1.2.3