From ce77a7ab39853c3f93a6ec4f77307bb2875ae082 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 17 Nov 2009 01:12:12 +0200 Subject: [PATCH] vo_xv: Support yuv colorspace changes on ATI cards Use the "XV_COLORSPACE" xv attribute if it exists, in addition to previously supported "XV_ITURBT_709" (which works on NVIDIA cards). --- libvo/x11_common.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 66af7feabd..0c931c9833 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1903,7 +1903,8 @@ int vo_xv_set_eq(struct vo *vo, uint32_t xv_port, char *name, int value) else if (!strcmp(attributes[i].name, "XV_BLUE_INTENSITY") && (!strcasecmp(name, "blue_intensity"))) port_value = value; - else if (!strcmp(attributes[i].name, "XV_ITURBT_709") + else if ((!strcmp(attributes[i].name, "XV_ITURBT_709") //NVIDIA + || !strcmp(attributes[i].name, "XV_COLORSPACE"))//ATI && (!strcasecmp(name, "bt_709"))) port_value = value; else @@ -1987,7 +1988,8 @@ int vo_xv_get_eq(struct vo *vo, uint32_t xv_port, char *name, int *value) else if (!strcmp(attributes[i].name, "XV_BLUE_INTENSITY") && (!strcasecmp(name, "blue_intensity"))) *value = val; - else if (!strcmp(attributes[i].name, "XV_ITURBT_709") + else if ((!strcmp(attributes[i].name, "XV_ITURBT_709") //NVIDIA + || !strcmp(attributes[i].name, "XV_COLORSPACE"))//ATI && (!strcasecmp(name, "bt_709"))) *value = val; else