Lawrence Lee
8ed93b0163
Fix blown images when using LibRaw
...
dcraw code only normalizes the pre-multipliers for the number of colors
in the raw image. LibRaw can set the pre-multipliers for a greater
number of colors. For example, it can set the 4th multiplier for a
3-color raw. This causes the dcraw code to produce incorrect
multipliers.
Remove the 4th multiplier if the number of colors is less than 4 and the
multiplier is equal to the 2nd multiplier. This lets the multiplier be
set equal to the 2nd one after normalization. For images where the
multipliers are not equal, print a warning.
2025-04-26 18:37:39 -07:00
Lawrence Lee
6be56f2145
Allow LibRaw to get white level while loading data
...
The function for loading the image data from Minolta RD175 raw images
sets the white level. Make use of this white level.
2025-03-09 23:10:09 -07:00
Lawrence Lee
fd445d00a6
Support demosaiced floating point DNGs with LibRaw
2024-12-08 14:34:56 -08:00
Lawrence Lee
6da48b933a
Handle masked area black level with LibRaw
...
Copied from ART commit 9a24f2567a452f0ca788f51e88b92b479002b149.
2024-07-05 22:21:46 -07:00
Lawrence Lee
021b7dfff0
Fix Foveon row alignment regression
2024-06-22 18:55:01 -07:00
Alberto Griggio
65a14051fe
rawimage: put global black level (as found in DNG converted files) for xtrans files where the code expects to find it
2024-02-22 22:22:41 -08:00
Lawrence Lee
2b6789b4ac
Fix Hasselblad model name when using LibRaw
...
The model, rather than the normalized model, gives the name that matches
those given by dcraw for Hasselblad cameras. This is important for
matching the model name in camconst.json.
2024-01-11 22:32:09 -08:00
Lawrence Lee
ab21f77b95
Implement Sony Pixel Shift for LibRaw
2024-01-06 21:39:59 -08:00
Lawrence Lee
ebf5b422be
Use proper include for LibRaw
...
The include directory for LibRaw is properly set by CMake so
`#include <libraw/libraw.h>`
will work for both the internal and system versions.
2023-12-31 12:33:01 -08:00
Lawrence Lee
dca44bb89a
Fix crash loading multi-frame RAFs with LibRaw
...
Set the frame number when reading image metadata.
2023-12-31 12:00:45 -08:00
Lawrence Lee
2b7889b645
Add option to disable LibRaw in preferences
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
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
Lawrence37
d74524f2c5
Camconst support for multiple crops ( #6473 )
...
Adapted from ART
Co-authored-by: Alberto Griggio <agriggio@users.noreply.github.com>
* camconst: support for multiple image sizes in raw_crop and masked_areas
* Clean up code after porting raw crop changes
* fixed raw crop for Canon R6 reduced-resolution raws
* Add Canon EOS R5 1.6 crop raw crop & masked areas
2023-01-01 10:50:11 +01:00
Flössie
4d931ed9f4
Fix some sizes
2020-09-15 17:12:03 +02:00
Flössie
79278875da
Use snprintf()
instead of sprintf()
( #5907 )
2020-09-15 14:56:57 +02:00
Ingo Weyrich
e89a3041fa
fix black level computation for applying flat-field correction, taken from ART, thanks @agriggio
2020-06-19 17:07:49 +02:00
Ingo Weyrich
beb8fd8f74
Merge branch 'dev' into newlocallab2
2020-06-14 22:03:26 +02:00
Ingo Weyrich
41675913d6
Cleanups and also some speedups for RT 5.9, to be continued
2020-05-31 17:27:44 +02:00
Desmis
e573de78b4
merge with dev
2020-03-19 13:40:11 +01:00
Ingo Weyrich
b2165aedd9
camconst.cc/h : code review
2020-03-08 14:12:23 +01:00
Ingo Weyrich
f0b5ca02e7
More double promote fixes
2020-02-10 16:22:42 +01:00
Ingo Weyrich
033d9fe02a
Merge branch 'dev' into newlocallab
2019-11-04 23:01:33 +01:00
Ingo Weyrich
284fe57159
Further reduction of include dependencies
2019-10-31 13:29:12 +01:00
Ingo Weyrich
6935faa258
Further cleanup of include dependencies
2019-10-30 22:12:06 +01:00
Desmis
cbeb828609
merge with dev
2019-07-18 13:41:26 +02:00
Flössie
54cc02eea9
Filmenegative core cleanup
2019-06-17 08:03:46 +02:00
Desmis
b378b0f74c
merge with dev
2019-06-07 16:52:34 +02:00
heckflosse
3b19b9f55b
Rawtherapee 5.6 crashes with.dng from PixelShift2DNG-0.9.8.67, fixes #5348
2019-06-07 16:37:59 +02:00
Desmis
0db024126c
merge with dev - suppress unused variable
2019-02-06 08:48:54 +01:00
Flössie
37027e46bd
Fix non-OpenMP build
2019-02-06 06:54:31 +01:00
Desmis
86c03e61d4
merge with dev - I hope no error
2018-11-24 14:18:37 +01:00
Alberto Griggio
655bdfd7e7
merged branch 'floatdng'
2018-11-22 08:50:35 +01:00
Desmis
721972ee72
merge with dev
2018-11-20 17:50:33 +01:00
Alberto Griggio
ac21918094
DNG: apply the BaselineExposure tag only for float DNGs
2018-11-20 13:37:23 +01:00
heckflosse
c9044485a6
Fix some coverity issues
2018-11-19 21:49:51 +01:00
Alberto Griggio
6877360913
DNG: use embedded black and white levels also from files generated by Adobe
...
We only override the colour matrix for Adobe DNG Converter (to ensure a consistent look between dng an native raw)
2018-10-30 14:36:56 +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
Desmis
c1463c7edd
merge with dev..
2018-06-14 09:06:29 +02:00
heckflosse
d7f6a69bd2
Exclude very dark regions from calculation of pre demosaic auto white balance, #4587
2018-06-07 18:01:37 +02:00
Desmis
c74cdb922f
merge with dev
2018-03-27 17:18:32 +02:00
Morgan Hardwood
c9fa7b055c
Prevent "comparison between signed and unsigned integer expressions" GCC warning, #4455
2018-03-27 16:57:50 +02:00
Desmis
1062869d01
merge with Dev
2018-03-26 14:59:08 +02:00
Alberto Griggio
15d8e2917a
added support for Fuji X-A3 (ported from Libraw)
...
See #4447
2018-03-21 18:03:27 +01:00
heckflosse
2591364b54
Fixed wrong replacement of rgb_cam matrix
2018-03-20 23:06:22 +01:00
heckflosse
b29029527d
Fix black thumb when applying a processing profile to a monochrome dng with wrong rgb_cam matrix
2018-03-20 22:18:42 +01:00
Desmis
7a714e5093
Add inverse to shapemethod - fixed crash retinex inverse
2018-01-03 16:47:54 +01:00
Flössie
b73970e94f
Fix unintended sign extent (Coverity)
...
Would hit us at 716Mpx (26755px²).
2018-01-01 13:04:01 +01:00
heckflosse
18f09dcbee
Fix wrong thumbnails for Canon G3 and G5, fixes #4000 , fixes #4099
2017-09-23 16:20:50 +02:00
Hombre57
b183a0b3c7
Solving issue #4000 on behalf of heckflosse
2017-08-07 21:05:00 +02:00