From 8ed760c6391735825e04a7741825bcfc401c50dc Mon Sep 17 00:00:00 2001 From: heckflosse Date: Tue, 23 Oct 2018 15:54:07 +0200 Subject: [PATCH] LG Mobile LG-H850 (LG G5) raw support, fixes #3655 --- rtengine/camconst.json | 4 ++-- rtengine/dcraw.cc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rtengine/camconst.json b/rtengine/camconst.json index a9b078f41..eb4174577 100644 --- a/rtengine/camconst.json +++ b/rtengine/camconst.json @@ -1343,13 +1343,13 @@ Camera constants: "make_model": "LG mobile LG-H815", "dcraw_matrix": [ 5859,547,-1250,-6484,15547,547,-2422,5625,3906 ], // DNG D65 //"dcraw_matrix": [ 11563,-2891,-3203,-5313,15625,625,-781,2813,5625 ], // DNG A - "ranges": { "white_max": 1000 } + "ranges": { "white": 1000 } }, { // Quality C "make_model": "LG mobile LG-H850", //"dcraw_matrix": [ 10000,-2188,-2813,-5156,15469,625,-703,2734,5078 ], // DNG A "dcraw_matrix": [ 5313,1016,-1172,-6250,15391,547,-2344,5547,3359 ], // DNG D65 - "ranges": { "white_max": 1000 } + "ranges": { "white": 1000 } }, { // Quality A diff --git a/rtengine/dcraw.cc b/rtengine/dcraw.cc index a45fd5b49..035dab2b2 100644 --- a/rtengine/dcraw.cc +++ b/rtengine/dcraw.cc @@ -10067,6 +10067,8 @@ dng_skip: adobe_coeff (make, model); if(!strncmp(make, "DJI", 3) && !strncmp(model, "FC6310", 6)) // DNG files from this camera have wrong (too high) white level adobe_coeff (make, model); + if (!strncmp(make, "LG", 2) && (!strncmp(model, "LG-H850",7) || !strncmp(model, "LG-H815",7))) + adobe_coeff (make, model); if (raw_color) adobe_coeff (make, model); if (load_raw == &CLASS kodak_radc_load_raw) if (raw_color) adobe_coeff ("Apple","Quicktake");