Metadata no longer overwrites camconsts
Added suggested changes to camconst and removed the camconst.json overwriting part as per the review comment
This commit is contained in:
parent
ab6d5b190c
commit
f09612453a
@ -1571,7 +1571,10 @@ Camera constants:
|
||||
{ // Quality A, samples provided by Daniel Catalina (#5839) and pi99y (#5860)
|
||||
"make_model": [ "FUJIFILM X-T3", "FUJIFILM X-PRO3" ],
|
||||
"dcraw_matrix": [ 13426,-6334,-1177,-4244,12136,2371,-580,1303,5980 ], // DNG_v11, standard_v2 d65
|
||||
"raw_crop": [ 0, 5, 6252, 4176],
|
||||
"raw_crop" : [
|
||||
{ "frame" : [6384, 4182], "crop": [ 0, 5, 6252, 4176] },
|
||||
{ "frame" : [6384, 3348], "crop": [624, 0, 5004, 3348] }
|
||||
],
|
||||
"white": [ 16170, 16275, 16170 ] // typical safe-margins with LENR
|
||||
// negligible aperture scaling effect
|
||||
},
|
||||
|
@ -560,12 +560,6 @@ int RawImage::loadRaw(bool loadData, unsigned int imageNum, bool closeFile, Prog
|
||||
raw_crop_cc = true;
|
||||
int lm, tm, w, h;
|
||||
cc->get_rawCrop(raw_width, raw_height, lm, tm, w, h);
|
||||
if (read_crop.crop_mode){ // RT
|
||||
left_margin = read_crop.left_margin; // RT
|
||||
top_margin = read_crop.top_margin; // RT
|
||||
tm = 0; // RT
|
||||
lm = 0; // RT
|
||||
} // RT
|
||||
|
||||
if (isXtrans()) {
|
||||
shiftXtransMatrix(6 - ((top_margin - tm) % 6), 6 - ((left_margin - lm) % 6));
|
||||
@ -575,10 +569,8 @@ int RawImage::loadRaw(bool loadData, unsigned int imageNum, bool closeFile, Prog
|
||||
}
|
||||
}
|
||||
|
||||
if (!read_crop.crop_mode) { // RT
|
||||
left_margin = lm;
|
||||
top_margin = tm;
|
||||
} // RT
|
||||
left_margin = lm;
|
||||
top_margin = tm;
|
||||
|
||||
if (w < 0) {
|
||||
iwidth += w;
|
||||
|
Loading…
x
Reference in New Issue
Block a user