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

stats: display hw pixel format too

This commit is contained in:
sfan5 2020-10-16 11:09:32 +02:00
parent 3d9d041a11
commit cbbdb3fae4

View File

@ -549,6 +549,10 @@ local function add_video(s)
append(s, format("%.2f", r["aspect"]), {prefix="Aspect Ratio:"})
end
append(s, r["pixelformat"], {prefix="Pixel Format:"})
if r["hw-pixelformat"] ~= nil then
append(s, r["hw-pixelformat"], {prefix_sep="[", nl="", indent=" ",
suffix="]"})
end
-- Group these together to save vertical space
local prim = append(s, r["primaries"], {prefix="Primaries:"})