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

@@ -127,7 +127,8 @@
when raw2image() or dcraw_process() is called.</dd>
<dt><strong> libraw_output_params_t params; </strong></dt>
<dd>Data structure intended for management of image postprocessing (using
the dcraw emulator). Fields of this structure are described in detail <a
the dcraw emulator). Fields of this structure are described in detail <a
href="#libraw_iparams_t"> below </a> .</dd>
<dt>libraw_callbacks_t callbacks;</dt>
<dd><a href="#libraw_callbacks_t">user-settable callbacks</a> </dd>
@@ -427,12 +428,12 @@
</dl>
</dd>
</dl>
</dl>
<p>
Note: even if no thumbnails were found in TIFF/CR3 structure, the
thumbcount field will be initialized to 1 and thumblist[0] will be
initialized to thumbnail data from the thumbnail data, so
LibRaw::unpack_thumb_ex(0) will do the same as LibRaw::unpack_thumb().
<p>
Note: even if no thumbnails were found in TIFF/CR3 structure, the
thumbcount field will be initialized to 1 and thumblist[0] will be
initialized to thumbnail data from the thumbnail data, so
LibRaw::unpack_thumb_ex(0) will do the same as LibRaw::unpack_thumb().
</p>
<p><a name="libraw_lensinfo_t"></a></p>
<h3>Structure libraw_lensinfo_t: parsed lens data</h3>
<p>The following parameters are extracted from Makernotes and EXIF, to help
@@ -794,15 +795,19 @@
interpolation callback call.</dd>
<dt><strong> int no_interpolation; </strong></dt>
<dd>Disables call to demosaic code in LibRaw::dcraw_process()</dd>
<dt><strong> int use_p1_correction;</strong></dt>
<dd>If set to non-zero (default): PhaseOne compressed files will be corrected (linearization; defect mapping)
based on metadata contained in file.</dd>
</dl>
<p><a name="libraw_callbacks_t"></a></p>
<h3>Structure libraw_callbacks_t: user-settable callbacks</h3>
<dl>
<dt>data_callback data_cb</dt>
<dt>data_callback data_cb</dt>
<dd>Called on data error, settable via set_dataerror_handler. See <a href="API-CXX.html#callbacks">C++
API</a> for details.</dd>
<dt>progress_callback progress_cb</dt>
<dt>progress_callback progress_cb</dt>
<dd>Called on process callback, settable via set_progress_handler. See <a
href="API-CXX.html#callbacks">C++ API</a> for details.</dd>
<dt>exif_parser_callback exif_cb, params: (void *context, int tag, int
type, int len, unsigned int ord, void *ifp)</dt>
@@ -978,7 +983,8 @@
<dt><strong> LIBRAW_BAD_CROP </strong></dt>
<dd>The incorrect cropping coordinates are set via params.cropbox[]: the
left-top corner of cropping rectangle is outside the image. The
<dd>The incorrect cropping coordinates are set via params.cropbox[]: the
processing will be cancelled, all allocated resources will be freed, <a
<dt=""><strong> LIBRAW_TOO_BIG</strong> </a></dd>
<dd><a <dt="">Raw data size exceeds data limit.</a></dd>
<a <dt=""> </a>
@@ -1000,10 +1006,12 @@
file (only for formats supporting storage of several images in a
file).</dd>
<dt><strong> LIBRAW_OUT_OF_ORDER_CALL </strong></dt>
file (only for formats supporting storage of several images in a
</a><dd><a <dt="">API functions have been called in wrong order (e.g., </a><a
href="API-CXX.html#unpack"> unpack() </a> before <a href="API-CXX.html#open_file">
open_file() </a> ) or the previous stage has ended with an error
</a><dd><a <dt="">API functions have been called in wrong order (e.g., </a><a
(e.g., <a href="API-CXX.html#unpack"> unpack() </a> is called after <a
href="API-CXX.html#open_file"> open_file() </a> has returned an
error).</dd>
<dt><strong> LIBRAW_NO_THUMBNAIL </strong></dt>
@@ -1145,7 +1153,7 @@
triplet.</dd>
<dt><strong>LIBRAW_THUMBNAIL_BITMAP16</strong></dt>
<dd>The thumbnail buffer contains the gamma-adjusted 16-bit RGB bitmap. To
settings). <br>
get this format instead of <strong> LIBRAW_THUMBNAIL_BITMAP </strong>you
need to set <strong>LIBRAW_PROCESSING_USE_PPM16_THUMBS</strong> in
processing options.</dd>
<dt><strong> LIBRAW_THUMBNAIL_LAYER </strong></dt>
@@ -1157,7 +1165,10 @@
<dt><strong>LIBRAW_THUMBNAIL_H265</strong></dt>
<dd>The thumbnail buffer contains a H.265 data frame (read from RAW file
as is, no manipulations performed on it).</dd>
<dd>Data format is presently recognized upon opening of RAW file but not
<dt><strong>LIBRAW_THUMBNAIL_JPEGXL</strong></dt>
<dd>The thumbnail buffer contains a JPEG-XL data frame (read from RAW file
as is, no manipulations performed on it).</dd>
</dl>
<p><a name="warnings"></a></p>
<h3>Nonstandard Situations (Warnings) during RAW Data Processing</h3>
<p>Some suspicious situations emerging during image processing are not fatal
@@ -1210,6 +1221,10 @@
<dd>DNG Stage2 conversion was performed</dd>
<dt><strong> LIBRAW_DNG_STAGE3_APPLIED</strong></dt>
<dd>DNG Stage3 conversion was performed</dd>
<dt><strong>LIBRAW_WARN_VENDOR_CROP_SUGGESTED</strong></dt>
<dd> If set: unknown/untested RAW image frame size passed to LibRaw, cropping may be incorrect.
<p></p>It is suggested to use LibRaw::adjust_to_raw_inset_crop(1) for vendor specified crop.
</dd>
</dl>
<dl>
</dl>
@@ -1301,9 +1316,14 @@
plus data size is beyond filecontents. This flag enforces size+offset
checks for files from known vendors (this will result into correct but
smaller thumbnail selected).</li>
<li><strong>LIBRAW_RAWOPTIONS_CHECK_THUMBNAILS_KNOWN_VENDORS</strong> -
<li><strong>LIBRAW_RAWOPTIONS_CHECK_THUMBNAILS_ALL_VENDORS</strong> - same
is above, but check is performed regardless of vendor (Make tag).</li>
plus data size is beyond filecontents. This flag enforces size+offset
<li><strong>LIBRAW_RAWOPTIONS_ALLOW_JPEGXL_PREVIEWS</strong> -
if set, LibRaw will perceive such previews in the same way as JPEG onesgest preview is
selected by default, etc).<p>
tformat field for such preview is set to LIBRAW_THUMBNAIL_JPEGXL. Image metadata (width/height/channels count) is not parsed for JPEG-XL previews
</p></li>
</ul>
<ul>
</ul>
<p> <a name="LibRaw_rawspecial_t"></a></p>