mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
stats: display hw pixel format too
This commit is contained in:
parent
3d9d041a11
commit
cbbdb3fae4
@ -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:"})
|
||||
|
Loading…
Reference in New Issue
Block a user