Commit Graph

12414 Commits

Author SHA1 Message Date
Lawrence37
73fb89147c Merge pull request #7002 from sgotti/dcraw_fujifilm_gfx_100ii
dcraw: add support for Fujifilm GFX 100 II
2024-04-14 12:18:31 -07:00
Lawrence Lee
8d4c12b00d Publish LibRaw pre-dev builds 2024-04-14 12:03:50 -07:00
xiota
1ad5ec3e9e Remove makedeb installer script 2024-04-14 08:02:20 +00:00
xiota
bde73f5ce1 Use makedeb to build libjxl from source 2024-04-14 07:08:05 +00:00
Lawrence Lee
fe2247cca5 Add README for upgrading the internal LibRaw 2024-04-13 23:23:06 -07:00
Lawrence Lee
ef0655a84d Merge commit '4c61b7d3c3eb8d474ab54a2221eeb1a059dcd67d' into libraw-copylib
Upgrade LibRaw to snapshot 202403.
2024-04-13 23:05:55 -07:00
Lawrence Lee
4c61b7d3c3 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
2024-04-13 22:44:59 -07:00
xiota
775f7cbd03 Add missing dep to codeql workflow 2024-04-14 05:22:24 +00:00
xiota
aff8de59ea Add libjxl to codeql workflow 2024-04-14 03:13:03 +00:00
xiota
9cd5ebbf37 Add libjxl to appimage workflow 2024-04-14 02:08:02 +00:00
Lawrence37
9e42a67f58 Merge pull request #7015 from sgotti/imageio_fix_png_with_transparency
imageio: fix issues/crash on png with transparency
2024-04-13 16:51:59 -07:00
Lawrence Lee
eaabf66e9c Register icons folder for Windows installer 2024-04-12 22:36:08 -07:00
xiota
79450113b4 Add libjxl to workflow depends lists 2024-04-12 22:02:37 +00:00
Desmis
84134e9aa2 Change tweakParams spot.cc - hand-open-hicontrast toolbar.cc (#7029) 2024-04-12 07:52:20 +02:00
xiota
fe68e913be Conditional compilation for old/new API
Debian/Ubuntu package libjxl 0.7.0,
but Arch/MSYS2 package 0.10.2
2024-04-11 15:44:55 +00:00
xiota
01f925d8d7 Revise cmake tristate option 2024-04-11 05:31:03 +00:00
xiota
c514fbb939 Fix tristate auto behavior 2024-04-10 18:51:13 +00:00
xiota
4a16bdd624 Change WITH_JXL option to tristate (AUTO/ON/OFF) 2024-04-10 18:18:55 +00:00
xiota
b2550abd83 Add cmake option WITH_JXL
ON = Force required
OFF = Optional
2024-04-10 14:01:12 +00:00
xiota
7715d15615 Update to current libjxl API 2024-04-10 12:58:01 +00:00
xiota
8c4ab0277a change , to ; in rtdata/options/options.* 2024-04-10 11:47:30 +00:00
xiota
135bb7d2e9 alphabetize extensions in rtdata/options/options.* 2024-04-10 11:47:30 +00:00
xiota
320859bf92 Remove unnecessary thumbnail loading code 2024-04-10 11:47:28 +00:00
xiota
dd01cc110b Add error code to returns
Fix conditional libjxl compilation
2024-04-10 11:32:42 +00:00
xiota
dfc82c403c Add ability to import JXL images 2024-04-10 10:17:42 +00:00
Simone Gotti
1098966a8b Add optional image rank/color load/save from/to xmp sidecar
Add optional ability to load/save image rank property from/to xmp
sidecar "xmp.Rating" and color property from xmp "xmp.Label" ignoring
the ones provided in the processing params file.

This behavior is disabled by default and an option under settings ->
file browser has been added to enable it.

When enabled:

* On load:
  * rank and color are not read from processing params.
  * rank is mapped from xmp sidecar file rating entry.
  * color is mapped from xmp sidecar file label entry.

* On save:
  * rank and color are saved to the xmp sidecar
  * rank and color are also saved to the processing param (pp3) files to
    keep them in sync

Rating mapping:

Since rating can be also -1 but rank only goes from 0 to 5, the -1 value
is ignored like already done when importing from embedded xmp data.

Color mapping:

XMP has no color concept, usually programs like digikam uses the label
field to write a color name ("Red", "Orange"). The problem is that this
isn't standardized and label can be any string. Additionally Rawtherapee
has 5 specific colors while other programs can have different colors
with different name so they won't be shown if they don't map to the 5
color names supported by rawtherapee. On save only the 5 color supported
by rawtherapee wil be saved.

Trash is kept only in the profile files for multiple reasons:

* There's no trash concept in xmp, there's the rejected concept assigned
  to a rating == -1.
* We could map rejected to trash but in rawtherapee rank and trash are two different values and
  an image can have both rank >= 0 and trashed set to true.
  Using an unique value like rating for rank and trash (when -1) will
  require changing the current rawtherapee logic.
* Also digikam only handles ratings from 0 to 5 (no -1) and handles
  trash in its own internal way without reflecting it in the xmp
  sidecar.
2024-04-03 20:06:14 +02:00
Lawrence Lee
4e57202bf6 Improve Lensfun auto lens matching
Handle lens names with spaces surrounding dashes.
2024-03-31 17:43:04 -07:00
Alexander Brock
ebb0f8ebdd Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish 2024-03-30 17:07:31 +01:00
Simone Gotti
68fd35d881 thumbnail: decouple proc params rank/color/trash
Add a Properties type that contains values for rank, color and trashed
Each value will also contain an edited flag.

The properties variable is used to store rank, color and trashed. They
are fetched from the proc params and will update the proc params when
needed.

This is the base for future implementations where some properties (like
rank) will be also retrieved from other sources like xmp sidecar files.
2024-03-30 09:46:02 +01:00
Simone Gotti
dcc983331d thumbnail: rename get/setStage to get/setTrashed
Also return a bool in getTrashed since it's already used as a bool in
setTrash and in all the checks.
2024-03-30 09:46:02 +01:00
Simone Gotti
52e88e8954 imageio: fix issues/crash on png with transparency
If a png has a transparency chunk (tRNS), after converting the
transparency to alpha we should also strip alpha (color_type is not
updated with PNG_COLOR_MASK_ALPHA flag set) or the row parsing will
return also the alpha channel causing a memory overflow.
2024-03-29 15:16:55 +01:00
Simone Gotti
65c68364a9 dcraw: add support for Fujifilm GFX 100 II 2024-03-29 10:05:51 +01:00
Lawrence37
11240bc97d Merge pull request #7009 from sgotti/fix_options_BrowseRecursiveFollowLinks_reading
options: fix BrowseRecursiveFollowLinks reading
2024-03-28 21:30:41 -07:00
Simone Gotti
13eddbdd94 dcraw: handle fujifilm lossy compression
port from libraw handling of fujifilm lossy compression.
2024-03-25 11:13:04 +01:00
Simone Gotti
c2a57359fe options: fix BrowseRecursiveFollowLinks reading
PR #6769 added the boolean BrowseRecursiveFollowLinks options, but while
it's saved as a boolean, it's read as an integer causing this error:

```
Options::readFromFile / Error code 5 while reading values from "/home/sgotti/.config/RawTherapee/options":
Key file contains key “BrowseRecursiveFollowLinks” in group “File Browser” which has a value that cannot be interpreted.
```
2024-03-25 11:02:03 +01:00
Lawrence37
61019d0dc6 Merge pull request #7006 from hfiguiere/iplab2rgb-leak
iplab2rgb: Fix memory leak
2024-03-24 12:20:33 -07:00
Lawrence37
3bab4657d7 Merge pull request #6962 from sgotti/read_raw_embedded_dcp
Read embedded dcp profile from raw files
2024-03-24 12:19:04 -07:00
Lawrence37
0fa0e42ed0 Merge pull request #7003 from Lawrence37/om-digital-solutions-tg-7
Initial support for OM TG-7
2024-03-24 12:18:21 -07:00
Lawrence37
8b783d8008 Merge pull request #6991 from sgotti/flat_field_different_black_levels
Handle flat field images with different black levels than raw image
2024-03-24 12:04:35 -07:00
Lawrence37
bf8f385eb5 Merge pull request #6769 from Lawrence37/browse-subfolder
Recursive image browsing
2024-03-24 12:02:21 -07:00
Lawrence37
dc0796fca9 Merge pull request #6974 from Lawrence37/italian-translation
Italian translation
2024-03-24 11:58:33 -07:00
Lawrence Lee
6b1afe07cd Remove Adwaita cursors from Windows build 2024-03-24 11:55:36 -07:00
Hubert Figuière
b46c22dee6 iplab2rgb: Fix memory leak
Signed-off-by: Hubert Figuière <hub@figuiere.net>
2024-03-23 16:58:45 -04:00
Lawrence Lee
c5967cb4e4 Add initial support for OM TG-7
Read CFA pattern for OM Digital Solutions cameras.
Use Olympus TG-6 camconst for the TG-7, since the dcraw matrix and raw
crop are the same.
2024-03-21 21:45:35 -07:00
Andy Dodd
91dc97eafb Fix regression with demosaiced DNGs caused by 831a9bbd
Uses a new function checkRawDataDimensions as suggested/written by @Lawrence37 to verify that image dimensions are correct.

Fixes #6996
2024-03-18 09:09:07 -04:00
Simone Gotti
2aea26b5f3 Handle flat field images with different black levels than raw image
For bayer images handle flat field images with different black levels
than the raw image.
2024-03-17 21:56:56 +01:00
Lawrence37
7751019b6e Merge pull request #6992 from Pandagrapher/patch_linux
Fix 'Hicolor' icon theme conflict when installing on Linux
2024-03-16 17:44:16 -07:00
Pandagrapher
026e9e2a38 Do not install 'index.theme' file for linux build with 'BUILD_BUNDLE=OFF' 2024-03-16 16:13:47 +01:00
Lawrence37
e8ed39206c Merge pull request #6983 from Lawrence37/canon-cam-wb-fix
Read camera white balance for Canon EOS R6m2, R7, and more
2024-03-11 19:20:26 -07:00
Alexander Brock
28a5d36e9a Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish 2024-03-10 17:22:19 +01:00