mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 11:18:32 +00:00
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).
This commit is contained in:
parent
a1af75d83e
commit
ce77a7ab39
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user