summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-07-09 04:18:45 +0200
committerwm4 <wm4@nowhere>2016-07-13 11:03:42 +0200
commita14f9249c424ed976a7e23cb9f231a8c5f7f2c53 (patch)
tree0cf38212420c8469503fd0d5202dbe9cfc4e1073 /player/command.c
parent8b47e5daa440ed30d8e0aa83287bb7a7c014d2ae (diff)
downloadmpv-a14f9249c424ed976a7e23cb9f231a8c5f7f2c53.tar.bz2
mpv-a14f9249c424ed976a7e23cb9f231a8c5f7f2c53.tar.xz
command: add properties for HDR metadata
Since it turns out that knowing what exactly a file was tagged with can be useful for debugging purposes, expose this as a property so I can check it more easily. This is mostly useful for sig-peak (since nom-peak is currently entirely calculated by us), but I added both for consistency.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index b44e12ab2d..79687fe46d 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2533,6 +2533,8 @@ static int property_imgparams(struct mp_image_params p, int action, void *arg)
SUB_PROP_STR(m_opt_choice_str(mp_csp_prim_names, p.color.primaries))},
{"gamma",
SUB_PROP_STR(m_opt_choice_str(mp_csp_trc_names, p.color.gamma))},
+ {"nom-peak", SUB_PROP_FLOAT(p.color.nom_peak)},
+ {"sig-peak", SUB_PROP_FLOAT(p.color.sig_peak)},
{"chroma-location",
SUB_PROP_STR(m_opt_choice_str(mp_chroma_names, p.chroma_location))},
{"stereo-in",