[vlc-commits] XCB/XVideo: use ITU-R BT.709 colour space where applicable
Rémi Denis-Courmont
git at videolan.org
Tue Jul 16 22:07:42 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 16 23:07:10 2013 +0300| [4a0eb67d86b325545072c768e6c369908028891b] | committer: Rémi Denis-Courmont
XCB/XVideo: use ITU-R BT.709 colour space where applicable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a0eb67d86b325545072c768e6c369908028891b
---
modules/video_output/xcb/xvideo.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/modules/video_output/xcb/xvideo.c b/modules/video_output/xcb/xvideo.c
index 7f4e2b6..c59cf17 100644
--- a/modules/video_output/xcb/xvideo.c
+++ b/modules/video_output/xcb/xvideo.c
@@ -549,6 +549,17 @@ static int Open (vlc_object_t *obj)
free(r);
}
+ /* Colour space */
+ {
+ 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);
+ free(r);
+ }
+
/* Create cursor */
p_sys->cursor = XCB_cursor_Create (conn, screen);
More information about the vlc-commits
mailing list