Fix Fujifilm electronic shutter dcraw crop

Applies to the X-T3, X-T4, X100V, X-S10, X-T30, and X-Pro3.
This commit is contained in:
Lawrence Lee 2025-02-01 21:51:08 -08:00
parent e64af75212
commit 9d808477eb
No known key found for this signature in database
GPG Key ID: 048FF2B76A63895F

View File

@ -10723,6 +10723,27 @@ canon_a5:
load_flags = 0;
flip = 6;
}
if (raw_width == 6384) { // From LibRaw: X-T3, X-T4, X100V, X-S10, X-T30, X-Pro3
top_margin = 0;
switch (read_crop.crop_mode) {
case CropMode::NA:
// RT: Use full raw dimensions.
width = raw_width;
height = raw_height;
break;
case CropMode::SportsFinderMode:
left_margin = 624;
width = 5004;
height = raw_height;
break;
case CropMode::ElectronicShutter1_25xCrop:
left_margin = 624;
width = 5004;
break;
case CropMode::FullFrameOnGfx:
break;
}
}
if (!strcmp(model,"HS50EXR") ||
!strcmp(model,"F900EXR")) {
width += 2;