38 Commits

Author SHA1 Message Date
Lawrence Lee
6bd9d410ca
Move camera constants into multiple JSON files
Create dcraw.json for dcraw constants, rt.json for RawTherapee overrides
for dcraw, and cammatrices.json for color matrices from Adobe DNG
Converter.

Cherry-picked from ART, commit 4f360f3a883f6920f6507c533646db275853093f.
2024-11-10 14:59:16 -08:00
Alberto Griggio
ae4de4701f
Fix color-cast regression
Fix checking of existence of second masked area.

Issue #6720.
2023-03-26 16:36:06 -07: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
493d7306a4 More C++-isms 2020-03-09 10:33:56 +01:00
Ingo Weyrich
5691b5498c camconst.cc : one more auto 2020-03-08 22:08:49 +01:00
Ingo Weyrich
4ef0b75354 camconst.cc : minor cleanups 2020-03-08 14:36:47 +01:00
Ingo Weyrich
8b00bb5a56 camconst.cc : more auto 2020-03-08 14:19:39 +01:00
Ingo Weyrich
b2165aedd9 camconst.cc/h : code review 2020-03-08 14:12:23 +01:00
Ingo Weyrich
b627adea3a Merge branch 'dev' into fix-double-promotion 2020-02-09 16:45:20 +01:00
Ingo Weyrich
b2443b0e7e more double promote fixes, still not complete 2020-01-21 00:16:27 +01:00
Ingo Weyrich
d82ea3af02 reduce some include dependencies 2020-01-17 23:18:48 +01:00
luz.paz
765499bf55 Fix doxygen typo and other various typos 2019-12-19 20:46:35 -05:00
Ingo Weyrich
6935faa258 Further cleanup of include dependencies 2019-10-30 22:12:06 +01:00
Ingo Weyrich
068847eb5a Further cleanup of include dependencies 2019-10-29 21:06:27 +01:00
Alberto Griggio
4361e12062 camconst: use true/false instead of 0/1 for "global_green_equilibration" 2018-06-08 13:55:15 +02:00
Alberto Griggio
0e22f0b610 camconst.json: rename pdafPattern -> pdaf_pattern and pdafOffset -> pdaf_offset
this is for consistency with the other entries
2018-06-07 20:50:32 +02:00
Alberto Griggio
d0ec3f2dbc move to camconst.json the info about whether global green equilibration is needed for the camera 2018-06-07 20:48:53 +02:00
heckflosse
64979b0660 PDAF patterns ignored in user's camconst, #4435 2018-03-10 12:18:56 +01:00
heckflosse
ba22027b2f Get pdaf data from camconst.json 2018-03-09 20:18:37 +01:00
heckflosse
e6f57b1978 Use std::string instead of Glib::ustring for key of map in camconst, #4140 2017-10-13 21:34:55 +02:00
heckflosse
c4f27b2c13 Fix some coverity issues 2017-06-14 17:02:33 +02:00
heckflosse
e8bbefef7a Merge branch 'coverity-fixes' into dev 2017-06-11 13:02:18 +02:00
Alberto Griggio
2edd677d1a Fixed various memory leaks as reported by AddressSanitizer 2017-06-07 10:36:28 +02:00
heckflosse
9e5ce9a99b Some Coverity fixes (#3558) 2017-06-05 14:12:34 +02:00
Morgan Hardwood
d1bfbc7967 Override system camcons.json raw_crop with one from users camconst.json, fixes #3873 2017-05-14 12:37:15 +02:00
Flössie
0bbc84b2af Merge branch 'master' into clang-tidy 2016-10-18 17:48:50 +02:00
heckflosse
172ab63b85 Cppcheck: Fixed another bunch of warnings 2016-10-13 01:34:02 +02:00
Flössie
19de9d1efa Apply modernize-redundant-void-arg 2016-10-12 18:24:14 +02:00
Flössie
0731975ff0 Apply modernize-use-nullptr
Setup:
- `mkdir tidy; cd tidy`
- `cmake .. -DCMAKE_BUILD_TYPE=debug -DPROC_TARGET_NUMBER=1 -DCACHE_NAME_SUFFIX=4 -DBINDIR=. -DDATADIR=. -DBUILD_BUNDLE=ON -DWITH_LTO=OFF -DOPTION_OMP=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON`
- `cd ..`
- `find -name '*.cc' -exec clang-tidy-3.8 -header-filter=.* -p=tidy -fix-errors -checks=modernize-use-nullptr {} \;`
2016-10-12 17:48:40 +02:00
Ingo Weyrich
3b734e4a7a Merge pull request #3376 from Beep6581/small_camconst_speedup
Improve processing time to read camconst.json by almost factor 2. Additionally make it future-proof by reducing O(n²) copying amount in reallocate phase to O(n)
2016-07-08 12:43:40 +02:00
heckflosse
ed7ee02150 Added change suggested by Floessie 2016-07-07 22:31:04 +02:00
heckflosse
f76211509f Improve processing time to read camconst.json by almost factor 2. Additionally make it future-proof by reducing O(n²) copying amount in reallocate phase to O(n) 2016-07-07 21:44:44 +02:00
heckflosse
c8779c04f5 Fix all - 2 cppcheck performance hints 2016-07-06 13:04:24 +02:00
Adam Reichold
a2eea7c265 Finally fully remove the safegtk module. 2016-02-21 10:26:11 +01:00
Adam Reichold
68271b9279 Regularize the camera constant store singleton to use a function local static like most other singletons. 2015-11-28 14:53:34 +01:00
DrSlony
0e0cfb9b25 Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle 2015-08-11 11:55:03 +02:00
DrSlony
16061aad88 Removed unused files 2015-08-09 20:56:10 +02:00
torger
d5ca351c20 Issue 2134: removed obsolete raw highlight preservation setting from GUI (still left in procparams for backwards compatilibility) 2015-07-10 12:00:36 +02:00