54 Commits

Author SHA1 Message Date
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
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
heckflosse
18f775d805 review of ph1_bithuff 2017-11-15 00:54:05 +01:00
heckflosse
3b36890546 Merge branch 'dev' into ph1speedup 2017-11-11 18:34:09 +01:00
heckflosse
fa4444d6d3 Make rtengine/fujicompressed.cc -Wextra clean, #4155 2017-10-23 14:06:04 +02:00
heckflosse
51804a15a0 phase_one_load_raw_c() cleanup 2017-09-23 11:03:07 +02:00
heckflosse
c16115cdde Speedup for loading of Phase One files 2017-08-30 14:49:27 +02:00
heckflosse
f12ee8a05a Small speedup for decoding of compressed fuji RAF 2017-07-25 17:48:15 +02:00
heckflosse
2a444e260a Fix some coverity issues. Pixel Shift: calculate per frame brightness factors only once after preprocessing 2017-06-17 14:43:48 +02:00
heckflosse
be4cc858a2 Remove obsolete dcraw::scale_colors() 2017-04-06 23:51:36 +02:00
heckflosse
071d960035 Fix all warnings in demosaic_algos.cc 2017-03-31 19:07:58 +02:00
heckflosse
3329899b37 Added support for compressed fuji bayer files 2017-02-12 21:27:11 +01:00
heckflosse
d5d8747e5a decode compressed xtrans files 2017-02-11 17:48:59 +01:00
Flössie
730c03785d Reapplied clang-tidy filters
- modernize-use-nullptr
- modernize-redundant-void-arg
- readability-simplify-boolean-expr
- misc-redundant-expression
- readability-redundant-control-flow
- readability-avoid-const-params-in-decls
2016-10-18 18:16:05 +02:00
heckflosse
3d73eb45a1 Disabled unused functions in dcraw.cc .h 2016-10-17 21:47:52 +02:00