1
mirror of https://github.com/mpv-player/mpv synced 2024-08-20 08:55:06 +02:00

vo_xv: remove an aliased option

Trying to get rid of them, and no-colorkey is an instance of it. Kill
it.
This commit is contained in:
wm4 2016-08-31 13:22:32 +02:00
parent 4d75514321
commit 7614f2b3a6
2 changed files with 10 additions and 8 deletions

View File

@ -49,9 +49,11 @@ Available video output drivers are:
set
Same as use but also sets the supplied color key.
``ck-method=<man|bg|auto>``
``ck-method=<none|man|bg|auto>``
Sets the color key drawing method (default: man).
none
Disables color-keying.
man
Draw the color key manually (reduces flicker in some cases).
bg
@ -63,9 +65,6 @@ Available video output drivers are:
Changes the color key to an RGB value of your choice. ``0x000000`` is
black and ``0xffffff`` is white.
``no-colorkey``
Disables color-keying.
``buffers=<number>``
Number of image buffers to use for the internal ringbuffer (default: 2).
Increasing this will use more memory, but might help with the X server

View File

@ -317,7 +317,7 @@ static int xv_init_colorkey(struct vo *vo)
/* check if colorkeying is needed */
xv_atom = xv_intern_atom_if_exists(vo, "XV_COLORKEY");
if (xv_atom != None && !(ctx->colorkey & 0xFF000000)) {
if (xv_atom != None && ctx->xv_ck_info.method != CK_METHOD_NONE) {
if (ctx->xv_ck_info.source == CK_SRC_CUR) {
int colorkey_ret;
@ -362,8 +362,10 @@ static int xv_init_colorkey(struct vo *vo)
if (xv_atom != None)
XvSetPortAttribute(display, ctx->xv_port, xv_atom, 0);
}
} else // do no colorkey drawing at all
} else { // do no colorkey drawing at all
ctx->xv_ck_info.method = CK_METHOD_NONE;
ctx->colorkey = 0xFF000000;
}
xv_print_ck_info(vo);
@ -924,12 +926,13 @@ const struct vo_driver video_out_xv = {
{"set", CK_SRC_SET},
{"cur", CK_SRC_CUR})),
OPT_CHOICE("ck-method", xv_ck_info.method, 0,
({"bg", CK_METHOD_BACKGROUND},
({"none", CK_METHOD_NONE},
{"bg", CK_METHOD_BACKGROUND},
{"man", CK_METHOD_MANUALFILL},
{"auto", CK_METHOD_AUTOPAINT})),
OPT_INT("colorkey", colorkey, 0),
OPT_FLAG_STORE("no-colorkey", colorkey, 0, 0x1000000),
OPT_INTRANGE("buffers", cfg_buffers, 0, 1, MAX_BUFFERS),
OPT_REMOVED("no-colorkey", "use ck-method=none instead"),
{0}
},
};