Skip to content

calibrate.lua: add script for target parameters adjustment - #18568

Open
kasper93 wants to merge 4 commits into
mpv-player:masterfrom
kasper93:calib
Open

kasper93 wants to merge 4 commits into
mpv-player:masterfrom
kasper93:calib

Conversation

@kasper93

@kasper93 kasper93 commented Oct 4, 2026

Copy link
Copy Markdown
Member

No description provided.

--hdr-reference-white and the input side of --treat-srgb-as-power22 are
applied when a frame is mapped. Reset the queue when they change.

Fixes: 44ceaa6
The black point of an SDR hint is inferred from the peak known at that
point, before --target-peak and the reference white replace it. Derive
it again from the final peak, so that the assumed 1000:1 contrast holds
for the peak that is used.
This builtin script finds the values of --target-peak, --target-contrast,
--hdr-reference-white and --treat-srgb-as-power22 for the display with
test patterns. The results are shown and logged, and can be applied to
the running session.
Make the calibration discoverable.
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