Commit Graph

5239 Commits

Author SHA1 Message Date
Simone Gotti
b570c70f5b Add Fujifilm metadata lens correction 2024-07-10 10:39:17 +02:00
Simone Gotti
27dc084e81 Add Sony metadata lens correction 2024-07-10 10:39:17 +02:00
Simone Gotti
f64ad13363 lensmetadata: add abstract center radius helper class
Add a CenterRadiusMetadataLensCorrection helper class that will be
implemented by vendor specific corrections based on center radius.
2024-07-10 10:39:17 +02:00
Simone Gotti
2b97de233f Add initial metadata lens correction handling 2024-07-08 10:30:51 +02:00
Simone Gotti
5159de89cb imagedata: report if file is DNG 2024-07-08 10:29:43 +02:00
Simone Gotti
b98fa42857 lens profile: report availability of distortion and vignetting
Beside CA, report also distortion and vignetting availability. Rename
is${CORRECTION}Available methods to has${CORRECTION}.
2024-07-08 10:29:43 +02:00
Simone Gotti
dc0e23c82c iptransform: apply distortion and CA correction in a single pass
Some lens profile methods provides a way to correct distortion and CA in
a single step.

When available, applying distortion and CA correction when both enabled
in a single pass is more precise (see lensfun
ApplySubpixelGeometryDistortion doc) since it's usually how the profile
is done. Instead applying the CA correction in a step after distortion
correction could lead to a bit different (also if not always visible)
correction.

This is also required for future lens correction methods (like DNG
WarpRectilinear or corrections based on vendor metadata) that provides
only merged distortion and CA correction in a single pass.
2024-07-08 09:40:36 +02:00
Simone Gotti
55fd4b975e iptransform: move profile based CA with and after distortion
Doing profile based CA as the really first correction in a separate steps is
probably not useful.

Additionally many lens profile (lensfun) and future one provide
functions to do them in a single step with better precision while other
just provide a single step that does both (i.e. DNG WarpRectilinear).

For the above reasons this patch removes the additional pass for CA correction.
This will also improve the perfomance due to less work.
2024-07-08 09:39:23 +02:00
Simone Gotti
363f3cc2a6 iptransform: correct profile based distortion/CA before rotation
Like perspective correction also rotation correction should be applied
after distortion/CA correction.
2024-07-08 09:32:35 +02:00
Lawrence Lee
6da48b933a Handle masked area black level with LibRaw
Copied from ART commit 9a24f2567a452f0ca788f51e88b92b479002b149.
2024-07-05 22:21:46 -07:00
Desmis
89c90774af Selective Editing - compatibility 5.10 - Feather - Log encoding (#7120)
* Fixed pp3 from 5.10 feather and ciecam log encoding

* Fixed 2 wrong typo feather in procparams.cc

* Fixed 2 wrong typo feather in procparams.cc

* Remove unused line in procparams
2024-07-01 09:35:33 +02:00
Lawrence37
cf4be0225a Merge pull request #6483 from Calandracas606/better_ARQ_support
Better ARQ Support
2024-06-30 18:03:44 -07:00
Desmis
819b65af7f Keep values scope from 5.10 Selective Editing - for color & light - shadow/highlight - vibrance #7102 (#7107)
* ppversion 351 and keep valus scope for color and light shadow-highligt vibrance

* Change comment in ppversion.h

* Change procparams for colorscope pp<351

* Remove not used isset
2024-06-30 07:47:55 +02:00
Daniel Martinez
b673154531 Support more ARQ files, 4 and 16 Shot ARQ from ILCE-1 2024-06-26 15:37:36 -04:00
Lawrence37
0bee94e4aa Merge pull request #6997 from Entropy512/fix_demosaiced_dng
Fix regression with demosaiced DNGs caused by 831a9bbd
2024-06-23 16:06:29 -07:00
Lawrence Lee
51277dc7d2 Move function into anonymous namespace 2024-06-23 12:40:51 -07:00
Lawrence37
f7af66a757 Merge pull request #7106 from Lawrence37/nikon-z-f-camconst
Nikon Z f color matrix
2024-06-22 19:03:30 -07:00
Lawrence37
e54e34da6c Merge branch 'dev' into fujifilm-x-h2s-camconst 2024-06-22 19:01:48 -07:00
Lawrence37
c41b6c3f31 Merge pull request #7098 from Lawrence37/adobe-coeff-from-libraw
adobe_coeff constants from LibRaw
2024-06-22 19:00:21 -07:00
Lawrence37
4c52d970bb Merge pull request #7065 from Lawrence37/lensfun-lens-crop-factor
Lensfun lens selection using camera crop factor
2024-06-22 18:59:31 -07:00
Lawrence Lee
021b7dfff0 Fix Foveon row alignment regression 2024-06-22 18:55:01 -07:00
Lawrence Lee
89de979248 Add Nikon Z f color matrix 2024-06-16 16:41:55 -07:00
Lawrence37
13a07a58e2 Merge pull request #7093 from Lawrence37/fix-unclosed-jpg-file
Always close JPEG after reading
2024-06-16 15:27:21 -07:00
Desmis
a1c6ce5dd2 Selective editing - adds the feather slider for each Graduated Filter (#7079)
* Feather GF color and vibrance

* Feather exposure

* Graduated filer feather wavelet

* Graduated filter feather log

* Graduated filter Cam16 feather

* Change history msg

* GF shadows highlight feather

* GF mask common feather

* Move feather settings in settings mask

* Change history msg

* Change label feather

* Change 2 labels
2024-06-16 07:35:50 +02:00
Lawrence Lee
abbaddbabd Merge branch 'dev' into libraw-copylib 2024-06-15 22:32:12 -07:00
Lawrence Lee
3b2990dd78 Add/update dcraw constants from LibRaw
Add or update adobe_coeff constants from LibRaw public snapshot 202403.
2024-06-15 21:43:12 -07:00
Lawrence37
59e8832dfb Merge pull request #6367 from xiota/jxl-import
Add ability to import JXL images
2024-06-08 17:12:13 -07:00
Lawrence Lee
2c1c124d8f Merge branch 'dev' into libraw-copylib 2024-06-02 18:15:43 -07:00
Lawrence Lee
5d75c44287 Add Fujifilm X-H2S color matrix and raw crop 2024-06-02 17:38:36 -07:00
Lawrence Lee
324f488f5b Fix jpg file not writable after save
Use a unique_ptr to automatically close the jpg file after.
2024-06-01 19:11:41 -07:00
Simone Gotti
3b4642fd07 dcraw: add Panasonic DC-S5M2 and DC-S5M2X to adobe_coeffs 2024-06-01 22:23:33 +02:00
Simone Gotti
0d9bafdc88 dcraw: add panasonic v8 decoder.
Port panasonic v8 decoder from libraw.

* Extract data required for the decoder from the panasonic custom exif
  tags
* Add panasonic v8 decoder
2024-06-01 22:23:31 +02:00
Lawrence37
5a7b0e40bb Merge pull request #7020 from sgotti/panasonic_dcgh6
dcraw: add Panasonic DC-GH6
2024-06-01 12:02:55 -07:00
Lawrence37
45f321d0b4 Merge pull request #7019 from sgotti/panasonic_dcg9m2
dcraw: add Panasonic DC-G9M2
2024-06-01 12:02:13 -07:00
Lawrence37
dd2312d192 Merge pull request #7005 from sgotti/fuji_lossy_compression
dcraw: handle Fujifilm lossy compression
2024-06-01 11:58:02 -07:00
Lawrence37
ad36b219bc Merge pull request #7073 from sgotti/panasonic_dcgh5m2
Add support for Panasonic DC-GH5M2
2024-06-01 11:30:58 -07:00
Lawrence37
832bfe6795 Merge pull request #7022 from Lawrence37/lensfun-space-around-dash
Improve Lensfun automatic lens matching with extra spaces in the name
2024-06-01 11:17:42 -07:00
Alexander Brock
397c699271 Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into defish 2024-06-01 14:22:58 +02:00
Lawrence37
5999d494d5 Merge pull request #7076 from sgotti/sony_ILCE-6700
dcraw/camconst: add Sony ILCE-6700
2024-05-27 17:46:52 -07:00
Lawrence37
f2c613c8f8 Merge pull request #7046 from blitzgneisserin/patch-5
Add correct DateTime (editing date) to Exif data
2024-05-27 11:13:54 -07:00
Lawrence37
71f452aa12 Fix crash when trying to load DCP (#7039)
Stream a C-string of the file name instead of the Glib::ustring. The
ustring can throw an exception with certain locale settings and file
name character combinations, such as with LANG=es_ES and the character
"ä".
Only print the message if verbose is true.
2024-05-27 11:13:09 -07:00
Simone Gotti
1b19ac1621 dcraw/camconst: add Sony ILCE-6700
* Add dcraw adobe_coeffs entry for Sony ILCE-6700
* Add camconst raw crop for Sony ILCE-6700
2024-05-27 12:23:42 +02:00
xiota
a5954ad4c2 Switch g_printerr to std::cerr 2024-05-26 11:11:07 +00:00
xiota
106ade3d8d Fix version for libjxl API change 2024-05-25 06:49:09 +00:00
Flössie
c74bcad19e jdatasrc.cc: remove now unused functions 2024-05-24 09:35:48 +02:00
Simone Gotti
6b14cf114b dcraw: add Panasonic DC-GH5M2 to adobe_coeffs 2024-05-22 10:30:47 +02:00
Simone Gotti
eb3b49eff7 dcraw: add 12 bit raw handling to panasonic v6 decoder.
Port panasonic v6 decoder handling of 12 bit raw from libraw.
2024-05-22 10:28:05 +02:00
Simone Gotti
0d60258a96 dcraw: add Panasonic DC-GH6 to adobe_coeffs 2024-05-22 10:18:10 +02:00
Simone Gotti
b57679ac15 dcraw: add Panasonic DC-G9M2 to adobe_coeffs 2024-05-22 09:44:14 +02:00
Richard E Barber
7789a8574b removes redundant jpeg error message
Co-authored-by: Lawrence37 <45837045+Lawrence37@users.noreply.github.com>
2024-05-19 16:39:28 -07:00