summaryrefslogtreecommitdiffstats
path: root/video/mp_image.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-11-08 14:04:19 +0100
committerwm4 <wm4@nowhere>2016-11-08 14:19:26 +0100
commit8f1ec91b4502ee5bb3d0e104f9d21fb09e10d64f (patch)
treeeca25315a1ccbd454fba64d5b4719793f0fac0a2 /video/mp_image.c
parent8b7f23129d2e6467ec31826f46657ff7d546624c (diff)
downloadmpv-8f1ec91b4502ee5bb3d0e104f9d21fb09e10d64f.tar.bz2
mpv-8f1ec91b4502ee5bb3d0e104f9d21fb09e10d64f.tar.xz
mp_image: dump all mp_colorspace members in verbose logging
Also extend the default buffer size for formatting this string, because it can get too damn long.
Diffstat (limited to 'video/mp_image.c')
-rw-r--r--video/mp_image.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index 694bea1bf0..b56c9e60b3 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -513,9 +513,15 @@ char *mp_image_params_to_str_buf(char *b, size_t bs,
mp_snprintf_cat(b, bs, " %s", mp_imgfmt_to_name(p->imgfmt));
if (p->hw_subfmt)
mp_snprintf_cat(b, bs, "[%s]", mp_imgfmt_to_name(p->hw_subfmt));
- mp_snprintf_cat(b, bs, " %s/%s",
+ mp_snprintf_cat(b, bs, " %s/%s/%s/%s",
m_opt_choice_str(mp_csp_names, p->color.space),
+ m_opt_choice_str(mp_csp_prim_names, p->color.primaries),
+ m_opt_choice_str(mp_csp_trc_names, p->color.gamma),
m_opt_choice_str(mp_csp_levels_names, p->color.levels));
+ if (p->color.nom_peak)
+ mp_snprintf_cat(b, bs, " NP=%f", p->color.nom_peak);
+ if (p->color.sig_peak)
+ mp_snprintf_cat(b, bs, " SP=%f", p->color.sig_peak);
mp_snprintf_cat(b, bs, " CL=%s",
m_opt_choice_str(mp_chroma_names, p->chroma_location));
if (p->rotate)