Skip to content

Commit 454d9eb

Browse files
llyyrkasper93
authored andcommitted
wayland: log display luminance values alongside other preferred img desc
1 parent 22c149e commit 454d9eb

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

video/out/wayland_common.c

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,19 +2000,22 @@ static const struct wp_fractional_scale_v1_listener fractional_scale_listener =
20002000
preferred_scale,
20012001
};
20022002

2003-
static void log_color_space(struct mp_log *log, const struct pl_color_space *csp)
2003+
static void log_color_space(struct mp_log *log, struct vo_wayland_preferred_description_info *wd)
20042004
{
2005+
const struct pl_color_space *csp = &wd->csp;
20052006
mp_verbose(log,
20062007
"transfer: %s, primaries: %s\n"
2007-
"max_cll=%f, max_fall=%f, min_luma=%f, max_luma=%f\n"
2008-
"raw prims: red.x=%f, red.y=%f,\n"
2009-
" green.x=%f, green.y=%f,\n"
2010-
" blue.x=%f, blue.y=%f,\n"
2011-
" white.x=%f, white.y=%f\n",
2008+
"transfer: min_luma=%f, max_luma=%f, ref_luma=%f\n"
2009+
"target: min_luma=%f, max_luma=%f, max_cll=%f, max_fall=%f\n"
2010+
" raw prims: red.x=%f, red.y=%f,\n"
2011+
" green.x=%f, green.y=%f,\n"
2012+
" blue.x=%f, blue.y=%f,\n"
2013+
" white.x=%f, white.y=%f\n",
20122014
m_opt_choice_str(pl_csp_trc_names, csp->transfer),
20132015
m_opt_choice_str(pl_csp_prim_names, csp->primaries),
2014-
csp->hdr.max_cll, csp->hdr.max_fall,
2015-
csp->hdr.min_luma, csp->hdr.max_luma,
2016+
wd->min_luma, wd->max_luma, wd->ref_luma,
2017+
csp->hdr.min_luma, csp->hdr.max_luma,
2018+
csp->hdr.max_cll, csp->hdr.max_fall,
20162019
csp->hdr.prim.red.x, csp->hdr.prim.red.y,
20172020
csp->hdr.prim.green.x, csp->hdr.prim.green.y,
20182021
csp->hdr.prim.blue.x, csp->hdr.prim.blue.y,
@@ -2156,7 +2159,7 @@ static void info_done(void *data, struct wp_image_description_info_v1 *image_des
21562159
if (wd->is_parametric) {
21572160
wl->preferred_csp = wd->csp;
21582161
MP_VERBOSE(wl, "Preferred surface feedback received:\n");
2159-
log_color_space(wl->log, &wl->preferred_csp);
2162+
log_color_space(wl->log, wd);
21602163
if (wd->csp.hdr.max_luma > wd->ref_luma) {
21612164
MP_VERBOSE(wl, "Setting preferred transfer to PQ for HDR output.\n");
21622165
wl->preferred_csp.transfer = PL_COLOR_TRC_PQ;

0 commit comments

Comments
 (0)