[vlc-commits] XCB/XVideo: select color matrix from input format
Rémi Denis-Courmont
git at videolan.org
Sun Apr 17 11:07:59 CEST 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 17 12:00:01 2016 +0300| [8172a5470964550a1e5d6e2b7082650f932e6ce6] | committer: Rémi Denis-Courmont
XCB/XVideo: select color matrix from input format
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8172a5470964550a1e5d6e2b7082650f932e6ce6
---
modules/video_output/xcb/xvideo.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index e9100fb..83fcbf3 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -537,13 +537,18 @@ static int Open (vlc_object_t *obj)
}
/* Colour space */
+ fmt.space = COLOR_SPACE_BT601;
{
xcb_intern_atom_reply_t *r =
xcb_intern_atom_reply (conn,
xcb_intern_atom (conn, 1, 13, "XV_ITURBT_709"), NULL);
if (r != NULL && r->atom != 0)
- xcb_xv_set_port_attribute(conn, p_sys->port, r->atom,
- fmt.i_height > 576);
+ {
+ int_fast32_t value = (vd->source.space == COLOR_SPACE_BT709);
+ xcb_xv_set_port_attribute(conn, p_sys->port, r->atom, value);
+ if (value)
+ fmt.space = COLOR_SPACE_BT709;
+ }
free(r);
}
More information about the vlc-commits
mailing list