summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-17 01:12:12 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-17 01:17:45 +0200
commitce77a7ab39853c3f93a6ec4f77307bb2875ae082 (patch)
tree927de7b930b309542d5e039e8823220762fe9e27 /libvo
parenta1af75d83e9bae7dbc8597502d65551d90334ebe (diff)
downloadmpv-ce77a7ab39853c3f93a6ec4f77307bb2875ae082.tar.bz2
mpv-ce77a7ab39853c3f93a6ec4f77307bb2875ae082.tar.xz
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).
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c6
1 files 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