67 Commits

Author SHA1 Message Date
Lawrence Lee
31076f0a62
Fix dcraw reading of black level for Sony
Don't set black level from tiff_bps if a black level is in the metadata.

Remove the Sony ILCE-7M3 black level from camconst.json. The black level
is in the metadata (512 for ISOs < 128000, 1024 for ISOs >= 128000).
2024-11-16 12:11:49 -08:00
Lawrence Lee
2c1c124d8f
Merge branch 'dev' into libraw-copylib 2024-06-02 18:15:43 -07: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
Simone Gotti
13eddbdd94 dcraw: handle fujifilm lossy compression
port from libraw handling of fujifilm lossy compression.
2024-03-25 11:13:04 +01:00
Lawrence Lee
51e52d9aba
Merge branch 'dev' into libraw-copylib 2024-03-02 21:01:34 -08:00
Lawrence37
f65e428e7f
Merge pull request #6833 from LoKolbasz/segfault_with_fuji_cropped_raw_issue#6312
Segfault fixed when opening Fuji cropped raw. Fixes #6312
2024-02-04 15:47:28 -08:00
Lawrence Lee
ab21f77b95
Implement Sony Pixel Shift for LibRaw 2024-01-06 21:39:59 -08:00
Lawrence Lee
f296991419
Implement DNG gain map for LibRaw 2023-12-17 16:00:30 -08:00
Lawrence Lee
20d3311931
Add decoding through LibRaw
Decode raw files with LibRaw and fall back to dcraw if LibRaw is unable
to read the file.
2023-12-01 21:15:13 -08:00
Battyányi Dániel
b4daf36349
CropMode changed from "plain enum" to "enum class" 2023-09-12 10:39:50 +02:00
Battyányi Dániel
3806107315
Changed crop detection mechanism according to code review comment
Changed the crop detection to use the CropMode Fujifilm tag from the makernotes instead of an arbitrary threshold.
2023-09-11 22:58:24 +02:00
Dániel Battyányi
554a6dc161
Added RT signifier comments 2023-08-30 23:34:36 +02:00
Dániel Battyányi
23e2f0cca5
Fixed issue #6312
Fixed issue, where raw cropped Fuji X-Pro3 could not be loaded correctly. This would result in a Segmentation Fault.
With these changes the program should read the correct dimensions from the file's metadata, and load the image accordingly.
2023-08-30 22:17:16 +02:00
Stephen Shkardoon
23f2a2fc9f Use _WIN32 instead of WIN32 to detect Windows
`WIN32` is not defined when building a 64-bit executable on Windows with Clang. `_WIN32` is the more appropriate option here.
http://web.archive.org/web/20191012035921/http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system contains a handy table/matrix of the options and why this is best.
2023-08-13 17:09:49 +12:00
Mattia Verga
311f3422fd Add missing include for GCC13 compatibility
Signed-off-by: Mattia Verga <mattia.verga@tiscali.it>
2023-01-25 14:16:19 +01:00
Ingo Weyrich
8d29d361a8
Support dnggainmap (embedded correction) for Bayer files (#6382)
* dng gainmap support, #6379
* dng GainMap: control sensitivity of checkbox, #6379
* dng GainMap: partial paste
* dng GainMap: moved isGainMapSupported() from dcraw.h to dcraw.cc
* RawImageSource::applyDngGainMap: small speedup
* Change GUI to separate gainmap from other flat-field; also reorder checkbox

Co-authored-by: Thanatomanic <6567747+Thanatomanic@users.noreply.github.com>
2023-01-02 21:30:06 +01:00
Thanatomanic
3423a7ac55
Support for GX680 digital back including DCP (#6655)
* Initial support for GX680 digital back
With help from LibRaw for decoding support.
Estimates for color calibration are very rough...
* Small modification to black level, add DCP
2023-01-02 21:24:15 +01:00
GiMo84
4f6273a2bd
Fixes reading Dual ISO (Magic Lantern) DNG (#5658) (#6505) 2022-08-21 07:04:14 +02:00
Thanatomanic
07ed31922c
Incorporate changes to CR3 decoder (from ART, LibRaw): read compressed RAW (CRAW) (#6434)
* Incorporate changes to CR3 decoder (from ART, LibRaw). Enables reading of compressed RAW (CRAW) files.
* Fix LGTM alerts, some trailing spaces (accidentally took over another minor edit, already pushed to dev)
2022-03-26 11:59:25 +01:00
Simone Gotti
bd118a4a40
dcraw: use the right black levels for linear DNGs (#6444)
Linear dng (like the one created by Adobe DNG Converter) contains
multiple tiff subifd with different kind of images (the Primary Image
and multiple previews), these defines different kind of black levels.

Currently dcraw has a global cblack array that is overwritten by the
last parsed tiff ifd. With such kind of linear dng it's the last subifd.
The causes the use of the wrong black levels with the image having
usually a magenta color cast.

The dng spec uses the NewSubFileType tag to define the primary image
with tag value as 0.
This patch reads also the NewSubFileType tag and populates the cblack
array provided by the other tags only if it's the primary image.
2022-03-26 11:28:05 +01:00
Flössie
2e0137d542 Move libc overloads in myfile.h to rtengine:: (fixes #6324) 2021-08-07 13:06:02 +02:00
Simon Segerblom Rex
87869e2bb1 Remove lj92 library and use dcraw instead
dcraw works fine for decoding DNGs using any predictor mode
for the lossless JPEG compression. No need to maintain two
different implemenations.
2021-05-03 10:08:51 +02:00
Flössie
03c094a42b Fix fseek()/ftell() issue 2019-12-06 09:18:16 +01:00
Flössie
8f82a8362a Finalize const/bool cleanup 2019-12-06 08:18:17 +01:00
Flössie
63fa62e0e2 Merge branch 'dev' into cr3_cleanup 2019-11-28 07:39:00 +01:00
Ingo Weyrich
81f9ab7315 Regression in Olympus E-M10MarkII raw black levels, fixes #5535 2019-11-22 14:37:10 +01:00
Flössie
6039f1e300 Tackle warnings 2019-11-20 15:52:25 +01:00
Ingo Weyrich
0cf3f16dfa Basic Canon CR3 support. Only decoding, still no CR3 exif support. Ported from ART. Kudos to agriggio and libraw 2019-11-19 19:19:49 +01:00
Ingo Weyrich
2da0990433 make own compilation unit for panasonic decoders 2019-11-06 23:07:41 +01:00
Ingo Weyrich
e12b58cfcf Decode standard Panasonic DC-S1 and DC-S1R files (pixelshift files are not supported yet), #5204 2019-11-06 14:40:05 +01:00
Ingo Weyrich
0d4228623f dcraw: reduce memory usage 2019-11-06 13:13:44 +01:00
Flössie
add5c790d6 #pragma once for our headers plus drive-by formatting 2019-10-31 10:20:50 +01:00
Morgan Hardwood
60b2196bce Updated gnu.org links to use HTTPS 2019-09-10 12:34:57 +02:00
heckflosse
94926b8315 Support for Nikon Z7 uncompressed NEF files, fixes #4801 2019-02-14 20:40:49 +01:00
heckflosse
6292b4e994 Panasonic DC-GH5S raw support. Thanks to @agriggio for the patch, fixes #4675 2019-02-14 15:46:19 +01:00
heckflosse
04d5ba3f91 reduce silencing of warnings for dcraw code 2018-12-08 01:30:09 +01:00
heckflosse
831e18ca45 Add override keyword. Thanks @Floessie 2018-11-22 16:19:16 +01:00
Alberto Griggio
655bdfd7e7 merged branch 'floatdng' 2018-11-22 08:50:35 +01:00
Alberto Griggio
f8fc658d71 Fixes for Nikon Z raw decoding
Fix to curve decoding ported from rawspeed

See #4998
2018-11-19 22:02:03 +01:00
heckflosse
074560def0 Merge branch 'dev' into floatdng 2018-11-18 11:38:09 +01:00
heckflosse
2833417133 First version of blackmagic native dng support, #4285 2018-11-08 17:16:32 +01:00
Alberto Griggio
632c1362c8 DNG: honour the BaselineExposure tag 2018-10-28 17:32:15 +01:00
Alberto Griggio
4fbb0cd3eb DNG: use black/white levels and matrix from the file, unless it comes from the Adobe DNG Converter
See #4472
2018-10-24 12:03:15 +02:00
heckflosse
b189da0b59 nikon_load_raw(): minor changes, #4751 2018-08-26 20:46:14 +02:00
heckflosse
4ab4e7298d nikon NEF decoder: ~20% speedup, #4751 2018-08-26 19:04:42 +02:00
Alberto Griggio
15d8e2917a added support for Fuji X-A3 (ported from Libraw)
See #4447
2018-03-21 18:03:27 +01:00
Alberto Griggio
890d896817 Initial support for pixel-shift for the Sony A7RIII
Only with ARQ files for now, and no sony-specific constants for motion correction yet
2017-12-12 20:49:43 +01:00
Alberto Griggio
7181f4b245 dcraw: apply the fix for #4129 only for DNGs coming from the Adobe DNG Converter 2017-11-24 11:41:48 +01:00
heckflosse
652044e863 Don't create panasonic bithuff when panasonic_load_raw() is not used 2017-11-15 22:33:06 +01:00
heckflosse
76ac9b0288 Fix for ph1_bithuff_t, thanks to Flössie 2017-11-15 14:56:57 +01:00