1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00

stats: update HDR peak for upstream changes

This no longer reports cd/m² but now reports a relative peak as a
multiple of the SDR reference brightness.
This commit is contained in:
Niklas Haas 2017-06-18 21:04:20 +02:00 committed by wm4
parent fa80ac13b6
commit 6d10d5a29f

View File

@ -430,8 +430,8 @@ local function add_video(s)
-- Append HDR metadata conditionally (only when present and interesting) -- Append HDR metadata conditionally (only when present and interesting)
local hdrpeak = mp.get_property_number("video-params/sig-peak", 0) local hdrpeak = mp.get_property_number("video-params/sig-peak", 0)
local hdrinfo = "" local hdrinfo = ""
if hdrpeak > 0 then if hdrpeak > 1 then
hdrinfo = " (HDR peak: " .. hdrpeak .. " cd/m²)" hdrinfo = " (HDR peak: " .. hdrpeak .. ")"
end end
append_property(s, "video-params/gamma", {prefix="Gamma:", suffix=hdrinfo}) append_property(s, "video-params/gamma", {prefix="Gamma:", suffix=hdrinfo})