Skip to content

Read the as-shot white balance of the MakerNote - #19

Merged
sputier merged 1 commit into
mainfrom
feature/white-balance
Nov 19, 2026
Merged

sputier merged 1 commit into
mainfrom
feature/white-balance

Conversation

@sputier

@sputier sputier commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Adds RawWhiteBalance (red, two greens, blue, with the source of the values), exposed by RawMetadata.WhiteBalance and RawImage.WhiteBalance, read from the plain record of the Nikon MakerNote (tag 0x0C). The multipliers are not applied to the samples.

  • A missing record, one that does not hold four values, or a multiplier outside 1/64 to 64 gives null.
  • The order of the red and blue values follows the documented order of the record; the real files are near neutral, so it cannot be checked on them. The two greens are equal on all of them.
  • The record that is scrambled with the serial number is not read yet.
  • Checked on 570 real files of a Nikon Z 6 (all plausible) and with synthetic files (both byte orders, limits, hostile values).

Part of #6.

RawMetadata.WhiteBalance and RawImage.WhiteBalance give the multipliers recorded in
the plain record of the Nikon MakerNote. A record that is missing or implausible
gives null.
@sputier
sputier merged commit d00220a into main Nov 19, 2026
4 checks passed
@sputier
sputier deleted the feature/white-balance branch November 19, 2026 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant