diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-11-17 01:12:12 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-11-17 01:17:45 +0200 |
commit | ce77a7ab39853c3f93a6ec4f77307bb2875ae082 (patch) | |
tree | 927de7b930b309542d5e039e8823220762fe9e27 | |
parent | a1af75d83e9bae7dbc8597502d65551d90334ebe (diff) |
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).
-rw-r--r-- | libvo/x11_common.c | 6 |
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 |