Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sony SR2SubIFD BlackLevel tag #7183

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rtengine/dcraw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6733,6 +6733,13 @@ int CLASS parse_tiff_ifd (int base)
case 29443:
FORC4 cam_mul[c ^ (c < 2)] = get2();
break;
case 29456: // Adapted from LibRaw: Sony SR2SubIFD BlackLevel
FORC4 cblack[c ^ (c >> 1) /*RGGB_2_RGBG(c)*/] = get2();
i = cblack[3];
FORC3 if (i > (int)cblack[c]) i = cblack[c];
FORC4 cblack[c] -= i;
black = i;
break;
case 29459:
FORC4 cam_mul[c] = get2();
i = (cam_mul[1] == 1024 && cam_mul[2] == 1024) << 1;
Expand Down
Loading