Squashed 'rtengine/libraw/' changes from 1ef70158d..12b0e5d60

12b0e5d60 Snapshot 202403
a4c9b1981 loop parameters in remove_trailing_spaces
e231b01a4 CR3-Qstep table: avoid wrong 64-bit code generation
21368133a 0.21.2 release
a6f212a4a tag type => tag size mapping fixed
41506ef73 cubic_spline: better handling of non-integer data
17294b5fd extra metadata check in arq_load_raw
47d9dd8e2 Better incorrect data handling in cubic_spline
3baa51068 skip invalid pattern in xtrans_interpolate
eaf63bf5f Check HL recovery coeffs before processing
a14574080 limit wavelet denoise minimum size
4e597e4e9 Merge pull request #594 from pinotree/path_max
086dcb9a6 raw-identify: use fallback if PATH_MAX not available
0e105f9f8 additional check against corrupted ljpeg layout
0c8b68e9f Disable color conversion for Canon 16-bit thumbnails
cd1abd695 docs/changelog: explained the case when no thumbnail is found in specific file
6fffd414b rename swapXX to libraw_swapXX to avoid name conflict
af78ae48a Check against corrupted LJPEG header in Canon sRAW decoder
ba780e600 Limit embedded color profile allocation/read size
122bf7c5b Wrong alloc result check for 16-bit bitmap thumbnail
e6dd2709e check pana_data/buffer offset before use
ae2dc5884 Check P1 quadrant linearization coeff[15] against zero
f2998bacc avoid integer overflow in buffer space check
443b7fb51 prevent buffer overrun in buffer_datastream::scanf_one
35a6d3615 ensure correct T.tlength for 16b bitmap thumbnails(2)
b69ea8be5 ensure correct T.tlength for 16b bitmap thumbnails
2b6eca897 Do not run sraw decoder on (crafted) bayer files
68808b57f better striped thumbnails handling
9ab70f6dc do not set shrink flag for 3/4 component images
32425dd96 allow more decoders for fuji-rotated RAWs
REVERT: 1ef70158d 0.21.2 release
REVERT: 62f042366 tag type => tag size mapping fixed
REVERT: ee087e3fe cubic_spline: better handling of non-integer data
REVERT: af755b991 extra metadata check in arq_load_raw
REVERT: 0fadd8819 Better incorrect data handling in cubic_spline
REVERT: d7fb66053 skip invalid pattern in xtrans_interpolate
REVERT: d059ed280 Check HL recovery coeffs before processing
REVERT: 104730519 limit wavelet denoise minimum size
REVERT: cae09838e raw-identify: use fallback if PATH_MAX not available
REVERT: d6c677608 additional check against corrupted ljpeg layout
REVERT: 1001a6ac1 Disable color conversion for Canon 16-bit thumbnails
REVERT: a5130b01b docs/changelog: explained the case when no thumbnail is found in specific file
REVERT: 600c0c63d rename swapXX to libraw_swapXX to avoid name conflict
REVERT: 299c8a11b Check against corrupted LJPEG header in Canon sRAW decoder
REVERT: ec8671ad9 Limit embedded color profile allocation/read size
REVERT: 5229d5942 Wrong alloc result check for 16-bit bitmap thumbnail
REVERT: b278b775f check pana_data/buffer offset before use
REVERT: 7f4b8d3af Check P1 quadrant linearization coeff[15] against zero
REVERT: e942a7db6 avoid integer overflow in buffer space check
REVERT: f6a57cfb8 prevent buffer overrun in buffer_datastream::scanf_one
REVERT: 3e62ed304 ensure correct T.tlength for 16b bitmap thumbnails(2)
REVERT: 8e52d81cd ensure correct T.tlength for 16b bitmap thumbnails
REVERT: 8e1af15e2 Do not run sraw decoder on (crafted) bayer files
REVERT: 0ace959c2 better striped thumbnails handling
REVERT: 477e0719f do not set shrink flag for 3/4 component images
REVERT: c8efae6c5 allow more decoders for fuji-rotated RAWs

git-subtree-dir: rtengine/libraw
git-subtree-split: 12b0e5d60c57bb795382fda8494fc45f683550b8
This commit is contained in:
Lawrence Lee
2024-04-13 22:44:59 -07:00
parent de5f929378
commit 4c61b7d3c3
133 changed files with 4307 additions and 1939 deletions

View File

@@ -1,5 +1,5 @@
/* -*- C++ -*-
* Copyright 2019-2021 LibRaw LLC (info@libraw.org)
* Copyright 2019-2024 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify

View File

@@ -1,5 +1,5 @@
/* -*- C++ -*-
* Copyright 2019-2021 LibRaw LLC (info@libraw.org)
* Copyright 2019-2024 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify

View File

@@ -1,5 +1,5 @@
/*
Copyright 2008-2021 LibRaw LLC (info@libraw.org)
Copyright 2008-2024 LibRaw LLC (info@libraw.org)
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
@@ -23,9 +23,7 @@ it under the terms of the one of two licenses as you choose:
#ifndef USE_JPEG
#define NO_JPEG
#endif
#ifndef USE_JASPER
#define NO_JASPER
#endif
#define DCRAW_VERSION "9.26"
#ifndef _GNU_SOURCE
@@ -65,13 +63,9 @@ typedef unsigned long long UINT64;
#endif
#ifdef NODEPS
#define NO_JASPER
#define NO_JPEG
#define NO_LCMS
#endif
#ifndef NO_JASPER
#include <jasper/jasper.h> /* Decode Red camera movies */
#endif
#ifndef NO_JPEG
#include <jpeglib.h> /* Decode compressed Kodak DC120 photos */
#endif /* and Adobe Lossy DNGs */

View File

@@ -1,5 +1,5 @@
/* -*- C++ -*-
* Copyright 2019-2021 LibRaw LLC (info@libraw.org)
* Copyright 2019-2024 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify

View File

@@ -1,6 +1,6 @@
/* -*- C++ -*-
* File: internal/libraw_cameraids.h
* Copyright 2008-2021 LibRaw LLC (info@libraw.org)
* Copyright 2008-2024 LibRaw LLC (info@libraw.org)
* Created: Sat Aug 17, 2020
LibRaw is free software; you can redistribute it and/or modify
@@ -91,6 +91,10 @@ it under the terms of the one of two licenses as you choose:
#define CanonID_EOS_R7 (0x80000000ULL + 0x464ULL)
#define CanonID_EOS_R10 (0x80000000ULL + 0x465ULL)
#define CanonID_EOS_M50_Mark_II (0x80000000ULL + 0x468ULL)
#define CanonID_EOS_R50 (0x80000000ULL + 0x480ULL)
#define CanonID_EOS_R6m2 (0x80000000ULL + 0x481ULL)
#define CanonID_EOS_R8 (0x80000000ULL + 0x487ULL)
#define CanonID_EOS_R100 (0x80000000ULL + 0x498ULL)
// CanonID_EOS_D2000C after Canon's TIFF2CR2 convertor:
#define CanonID_EOS_D2000C (0x80000000ULL + 0x520ULL)
@@ -160,6 +164,7 @@ it under the terms of the one of two licenses as you choose:
#define OlyID_E_M1_Mark_III OlyID_str2hex("S0092")
#define OlyID_E_P7 OlyID_str2hex("S0093")
#define OlyID_OM_1 OlyID_str2hex("S0095")
#define OlyID_OM_5 OlyID_str2hex("S0101")
#define OlyID_C_3030Z OlyID_str2hex("SX351")
#define OlyID_C_5050Z OlyID_str2hex("SX558")
#define OlyID_C_350Z OlyID_str2hex("SX751")
@@ -303,6 +308,7 @@ it under the terms of the one of two licenses as you choose:
#define SonyID_DSC_RX100M5A 0x171ULL
#define SonyID_ILCE_6400 0x173ULL
#define SonyID_DSC_RX0M2 0x174ULL
#define SonyID_DSC_HX95 0x175ULL
#define SonyID_DSC_RX100M7 0x176ULL
#define SonyID_ILCE_7RM4 0x177ULL
#define SonyID_ILCE_9M2 0x178ULL
@@ -317,4 +323,12 @@ it under the terms of the one of two licenses as you choose:
#define SonyID_ILCE_7RM3A 0x182ULL
#define SonyID_ILCE_7RM4A 0x183ULL
#define SonyID_ILCE_7M4 0x184ULL
// #define SonyID_ZV_1F 0x185ULL // Sony ZV-1F doesn't save raw
#define SonyID_ILCE_7RM5 0x186ULL
#define SonyID_ILME_FX30 0x187ULL
#define SonyID_ZV_E1 0x189ULL
#define SonyID_ILCE_6700 0x18aULL
#define SonyID_ZV_1M2 0x18bULL
#define SonyID_ILCE_7CR 0x18cULL
#define SonyID_ILCE_7CM2 0x18dULL
#endif

View File

@@ -0,0 +1,28 @@
#pragma once
#include <vector>
#include "../libraw/libraw_types.h"
class checked_buffer_t
{
public:
// create with internal storage
checked_buffer_t(short ord, int size);
checked_buffer_t(short ord, unsigned char *dd, int ss);
ushort sget2(int offset);
void checkoffset(int off);
unsigned char operator[](int idx);
unsigned sget4(int offset);
double sgetreal(int type, int offset);
unsigned char *data() { return _data; }
int tiff_sget(unsigned save, INT64 *tag_offset, unsigned *tag_id, unsigned *tag_type, INT64 *tag_dataoffset,
unsigned *tag_datalen, int *tag_dataunitlen);
protected:
short _order;
private:
unsigned char *_data;
int _len;
std::vector<unsigned char> storage;
};

View File

@@ -1,6 +1,6 @@
/* -*- C++ -*-
* File: internal/libraw_cxx_defs.h
* Copyright 2008-2021 LibRaw LLC (info@libraw.org)
* Copyright 2008-2024 LibRaw LLC (info@libraw.org)
* Created: Sat Aug 17, 2020
LibRaw is free software; you can redistribute it and/or modify
@@ -39,43 +39,25 @@ it under the terms of the one of two licenses as you choose:
#endif
#include <io.h>
#endif
#ifdef USE_RAWSPEED
#include <RawSpeed/StdAfx.h>
#include <RawSpeed/FileMap.h>
#include <RawSpeed/RawParser.h>
#include <RawSpeed/RawDecoder.h>
#include <RawSpeed/CameraMetaData.h>
#include <RawSpeed/ColorFilterArray.h>
extern const char *_rawspeed_data_xml[];
extern const int RAWSPEED_DATA_COUNT;
class CameraMetaDataLR : public RawSpeed::CameraMetaData
{
public:
CameraMetaDataLR() : CameraMetaData() {}
CameraMetaDataLR(char *filename) : RawSpeed::CameraMetaData(filename) {}
CameraMetaDataLR(char *data, int sz);
};
CameraMetaDataLR *make_camera_metadata();
void *make_camera_metadata();
void clear_camera_metadata(void*);
void clear_rawspeed_decoder(void*);
#endif
#ifdef USE_DNGSDK
#include "dng_host.h"
#include "dng_negative.h"
#include "dng_simple_image.h"
#include "dng_info.h"
#endif
#define P1 imgdata.idata
#define S imgdata.sizes
#ifndef LIBRAW_DNGSDK_CONFLICT
#define O imgdata.params
#define C imgdata.color
#define T imgdata.thumbnail
#define MN imgdata.makernotes
#ifndef LIBRAW_EXPAT_CONFLICT
#define IO libraw_internal_data.internal_output_params
#define ID libraw_internal_data.internal_data
#endif
#endif
#define makeIs(idx) (imgdata.idata.maker_index == idx)
#define mnCamID imgdata.lens.makernotes.CamID

View File

@@ -1,6 +1,6 @@
/* -*- C++ -*-
* File: libraw_internal_funcs.h
* Copyright 2008-2021 LibRaw LLC (info@libraw.org)
* Copyright 2008-2024 LibRaw LLC (info@libraw.org)
* Created: Sat Mar 14, 2008
LibRaw is free software; you can redistribute it and/or modify
@@ -88,9 +88,6 @@ it under the terms of the one of two licenses as you choose:
void parsePentaxMakernotes(int base, unsigned tag, unsigned type, unsigned len, unsigned dng_writer);
void parseRicohMakernotes(int base, unsigned tag, unsigned type, unsigned len, unsigned dng_writer);
void parseSamsungMakernotes(int base, unsigned tag, unsigned type, unsigned len, unsigned dng_writer);
#ifdef LIBRAW_OLD_VIDEO_SUPPORT
void fixupArri();
#endif
void setSonyBodyFeatures (unsigned long long id);
void parseSonyLensType2 (uchar a, uchar b);
void parseSonyLensFeatures (uchar a, uchar b);
@@ -204,11 +201,6 @@ it under the terms of the one of two licenses as you choose:
int guess_RAFDataGeneration (uchar *RAFData_start);
void parse_fuji (int offset);
void parse_fuji_thumbnail(int offset);
#ifdef LIBRAW_OLD_VIDEO_SUPPORT
// RedCine
void parse_redcine();
void redcine_load_raw();
#endif
// Rollei
void rollei_load_raw();
@@ -248,9 +240,6 @@ it under the terms of the one of two licenses as you choose:
void nokia_load_raw();
void android_loose_load_raw();
void android_tight_load_raw();
#ifdef LIBRAW_OLD_VIDEO_SUPPORT
void canon_rmf_load_raw();
#endif
unsigned pana_data (int nb, unsigned *bytes);
void panasonic_load_raw();
// void panasonic_16x10_load_raw();
@@ -286,6 +275,7 @@ it under the terms of the one of two licenses as you choose:
void kodak_rgb_load_thumb();
void kodak_ycbcr_load_thumb();
void vc5_dng_load_raw_placeholder();
void jxl_dng_load_raw_placeholder();
// It's a Sony (and K&M)
void sony_decrypt (unsigned *data, int len, int start, int key);
void sony_load_raw();
@@ -293,6 +283,7 @@ it under the terms of the one of two licenses as you choose:
void sony_arw2_load_raw();
void sony_arq_load_raw();
void sony_ljpeg_load_raw();
void sony_ycbcr_load_raw();
void samsung_load_raw();
void samsung2_load_raw();
void samsung3_load_raw();
@@ -318,6 +309,14 @@ it under the terms of the one of two licenses as you choose:
void parse_raspberrypi();
#endif
void kodak_thumb_loader();
void dng_ycbcr_thumb_loader();
#ifdef USE_X3FTOOLS
void x3f_thumb_loader();
INT64 x3f_thumb_size();
#endif
// CAM/RGB
void pseudoinverse (double (*in)[3], double (*out)[3], int size);
void simple_coeff (int index);
@@ -383,6 +382,7 @@ it under the terms of the one of two licenses as you choose:
int crxParseImageHeader(uchar *cmp1TagData, int nTrack, int size);
void panasonicC6_load_raw();
void panasonicC7_load_raw();
void panasonicC8_load_raw();
void nikon_14bit_load_raw();

292
internal/losslessjpeg.h Normal file
View File

@@ -0,0 +1,292 @@
/* -*- C++ -*-
* File: huffmandec.h
* Copyright (C) 2023-2024 Alex Tutubalin, LibRaw LLC
*
Lossless JPEG decoder
Code partially backported from DNGLab's rust code
DNGLab was originally created in 2021 by Daniel Vogelbacher.
LibRaw is free software; you can redistribute it and/or modify
it under the terms of the one of two licenses as you choose:
1. GNU LESSER GENERAL PUBLIC LICENSE version 2.1
(See file LICENSE.LGPL provided in LibRaw distribution archive for details).
2. COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
(See file LICENSE.CDDL provided in LibRaw distribution archive for details).
*/
#pragma once
#include <stdint.h>
#include <vector>
struct BitPump // generic bit source
{
virtual uint32_t peek(uint32_t num) = 0;
virtual void consume(uint32_t num) = 0;
uint32_t get(uint32_t num)
{
if(num == 0) { return 0u; }
uint32_t val = peek(num);
consume(num);
return val;
}
};
struct ByteStreamBE // Jpeg is always big endian
{
enum Exceptions
{
OK = 0,
EndOfBuffer = 1
};
uint8_t *buffer;
unsigned size, pos;
ByteStreamBE(uint8_t *b, unsigned s) : buffer(b), size(s), pos(0) {}
ByteStreamBE() : buffer(0),size(0),pos(0){}
bool skip_to_marker();
uint8_t get_u8()
{
if (pos >= size)
throw EndOfBuffer;
uint8_t ret = buffer[pos];
pos++;
return ret;
}
uint16_t get_u16()
{
if (pos + 2 > size)
throw EndOfBuffer;
uint8_t r1 = buffer[pos];
uint8_t r2 = buffer[pos + 1];
pos += 2;
return (r1 << 8) | r2;
}
};
struct BitPumpJpeg : public BitPump
{
uint8_t *buffer;
unsigned size, pos;
uint64_t bits;
uint32_t nbits;
bool finished;
void consume(uint32_t num)
{
if (num <= nbits)
{
nbits -= num;
bits &= (uint64_t(1) << nbits) - 1UL;
}
}
uint32_t peek(uint32_t num)
{
if (num > nbits && !finished)
{
if ((size >= 4) && pos < size && buffer[pos] != 0xff && buffer[pos + 1] != 0xff && buffer[pos + 2] != 0xff &&
buffer[pos + 3] != 0xff)
{
uint64_t inbits = (uint32_t(buffer[pos]) << 24) | (uint32_t(buffer[pos + 1]) << 16) |
(uint32_t(buffer[pos + 2]) << 8) | (uint32_t(buffer[pos + 3]));
bits = (bits << 32) | inbits;
pos += 4;
nbits += 32;
}
else
{
int read_bytes = 0;
while (read_bytes < 4 && !finished)
{
uint8_t byte = 0;
if (pos >= size)
finished = true;
else
{
uint8_t nextbyte = buffer[pos];
if (nextbyte != 0xff)
byte = nextbyte;
else if (buffer[pos + 1] == 0x00)
{
pos += 1;
byte = nextbyte;
}
else
finished = true;
};
bits = (bits << 8) | uint64_t(byte);
pos += 1;
nbits += 8;
read_bytes += 1;
}
}
}
if(num > nbits && finished)
{
bits <<= 32;
nbits += 32;
}
return uint32_t(bits >> (nbits - num));
}
BitPumpJpeg(ByteStreamBE& s): buffer(s.buffer+s.pos),size(s.size-s.pos),pos(0),bits(0),nbits(0),finished(false){}
};
const uint32_t LIBRAW_DECODE_CACHE_BITS = 13;
const uint64_t LIBRAW_CACHE_PRESENT_FLAG = 0x100000000L;
struct HuffTable
{
uint32_t bits[17];
uint32_t huffval[256];
uint32_t shiftval[256];
bool dng_bug;
bool disable_cache;
uint32_t nbits;
std::vector<uint32_t> hufftable; // len:8 << 16| huffval:8 << 8 | shift:8
std::vector<uint64_t> decodecache;
bool initialized;
HuffTable();
void initval(uint32_t bits[17], uint32_t huffval[256], bool dng_bug);
int32_t decode(BitPump& pump)
{
uint64_t cached = disable_cache ? 0 : decodecache[pump.peek(LIBRAW_DECODE_CACHE_BITS)];
if (cached & LIBRAW_CACHE_PRESENT_FLAG)
{
uint32_t bits = (cached >> 16) & 0xff;
int16_t val = int16_t(cached & 0xffff);
if (val == -32768 && dng_bug)
{
if (bits > 16)
pump.consume(bits - 16);
}
else
pump.consume(bits);
return val;
}
else
return decode_slow1(pump);
}
int32_t decode_slow1(BitPump &pump)
{
int32_t _diff = diff(pump, len(pump));
return _diff;
}
int32_t decode_slow2(BitPump & pump, uint32_t& outlen) // output: (len+shift):8, code:16
{
uint32_t _len = len(pump);
int32_t _diff = diff(pump, _len);
uint8_t bits8 = (_len >> 16) & 0xff;
uint8_t len8 = (_len >> 8) & 0xff;
outlen = bits8 + len8;
return _diff;
}
uint32_t len(BitPump & pump) //bits:8, len:8, shift:8
{
uint32_t code = pump.peek(nbits);
uint32_t huffdata = hufftable[code];
uint32_t bits = (huffdata >> 16) & 0xff;
pump.consume(bits);
return huffdata;
}
int32_t diff(BitPump & pump, uint32_t hentry) // input: bits:8, len:8, shift:8; output: diff:i32
{
uint32_t len = (hentry >> 8) & 0xff;
if (len == 0)
return 0;
if (len == 16)
{
if (dng_bug)
pump.get(16);
return -32768;
}
uint32_t shift = hentry & 0xff;
uint32_t fulllen = len + shift;
uint32_t bits = pump.get(len);
int32_t diff = ((bits << 1) + 1) << shift >> 1;
if ((diff & (1 << (fulllen - 1))) == 0)
{
diff -= int32_t((1 << fulllen) - ((shift == 0)));
}
return diff;
}
};
struct LibRaw_JpegComponentInfo
{
unsigned id;
unsigned index;
unsigned dc_tbl;
unsigned subsample_h, subsample_v;
LibRaw_JpegComponentInfo() : id(0), index(0), dc_tbl(0), subsample_h(0), subsample_v(0) {};
LibRaw_JpegComponentInfo(unsigned _id, unsigned _index, unsigned _dcn, unsigned _sh, unsigned _sv)
: id(_id), index(_index), dc_tbl(_dcn), subsample_h(_sh), subsample_v(_sv){};
LibRaw_JpegComponentInfo(const LibRaw_JpegComponentInfo& q): id(q.id), index(q.index), dc_tbl(q.dc_tbl),
subsample_h(q.subsample_h),subsample_v(q.subsample_v){}
};
struct LibRaw_SOFInfo
{
unsigned width, height;
unsigned cps, precision;
std::vector<LibRaw_JpegComponentInfo> components;
bool csfix;
LibRaw_SOFInfo(): width(0),height(0),cps(0),precision(0),csfix(false){}
bool parse_sof(ByteStreamBE&); // true => OK, false => not OK
uint32_t parse_sos(ByteStreamBE&); // returns (predictor << 8 | point transform); if above 0xffff => error
};
struct LibRaw_LjpegDecompressor
{
ByteStreamBE buffer;
LibRaw_SOFInfo sof;
uint32_t predictor, point_transform;
uint32_t datastart;
std::vector<HuffTable> dhts;
LibRaw_LjpegDecompressor(uint8_t *b, unsigned s);
LibRaw_LjpegDecompressor(uint8_t *b, unsigned bs, bool dngbug, bool csfix);
void initialize(bool dngbug, bool csfix);
uint8_t next_marker(bool allowskip);
bool parse_dht(bool init[4], uint32_t dht_bits[4][17], uint32_t dht_huffval[4][256]); // return true on OK;
bool decode_ljpeg_422(std::vector<uint16_t> &dest, int width, int height);
struct State {
enum States
{
OK = 0,
NotInited = 1,
NoSOI = 2,
IncorrectPrecision = 3,
EOIReached = 4,
InvalidDHT = 5,
InvalidSOF = 6,
InvalidSOS = 7,
DQTPresent = 8
};
};
struct Marker {
enum Markers {
Stuff = 0x00,
SOF3 = 0xc3, // lossless
DHT = 0xc4, // huffman tables
SOI = 0xd8, // start of image
EOI = 0xd9, // end of image
SOS = 0xda, // start of scan
DQT = 0xdb, // quantization tables
Fill = 0xff,
};
};
enum State::States state;
};

View File

@@ -1,6 +1,6 @@
/* -*- C++ -*-
* File: var_defines.h
* Copyright 2008-2021 LibRaw LLC (info@libraw.org)
* Copyright 2008-2024 LibRaw LLC (info@libraw.org)
* Created: Sat Mar 8, 2008
*
* LibRaw redefinitions of dcraw internal variables
@@ -184,6 +184,7 @@ it under the terms of the one of two licenses as you choose:
#define tile_length (libraw_internal_data.unpacker_data.tile_length)
#define load_flags (libraw_internal_data.unpacker_data.load_flags)
#define pana_encoding (libraw_internal_data.unpacker_data.pana_encoding)
#define pana8 (libraw_internal_data.unpacker_data.pana8)
#define pana_bpp (libraw_internal_data.unpacker_data.pana_bpp)
#define CM_found (libraw_internal_data.unpacker_data.CM_found)

View File

@@ -1,5 +1,5 @@
/* -*- C++ -*-
* Copyright 2019-2021 LibRaw LLC (info@libraw.org)
* Copyright 2019-2024 LibRaw LLC (info@libraw.org)
*
LibRaw is free software; you can redistribute it and/or modify