mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
vo_sixel: Update libsixel constant values
In sixel_dither_initialize, replace 3 with the libsixel SIXEL_PIXELFORMAT_RGB888. Also in sixel_encode, the 4th parameter is supposed to be depth, which also happens to be the value of PIXELFORMAT_RGB888, so replacing that constant with the depth value.
This commit is contained in:
parent
8886f017a1
commit
24525e4ef9
@ -160,7 +160,8 @@ static SIXELSTATUS prepare_dynamic_palette(struct vo *vo)
|
||||
/* create histgram and construct color palette
|
||||
* with median cut algorithm. */
|
||||
status = sixel_dither_initialize(priv->testdither, priv->buffer,
|
||||
priv->width, priv->height, 3,
|
||||
priv->width, priv->height,
|
||||
SIXEL_PIXELFORMAT_RGB888,
|
||||
LARGE_NORM, REP_CENTER_BOX,
|
||||
QUALITY_LOW);
|
||||
if (SIXEL_FAILED(status))
|
||||
@ -369,8 +370,7 @@ static void flip_page(struct vo *vo)
|
||||
// Go to the offset row and column, then display the image
|
||||
printf(ESC_GOTOXY, priv->top, priv->left);
|
||||
sixel_encode(priv->buffer, priv->width, priv->height,
|
||||
PIXELFORMAT_RGB888,
|
||||
priv->dither, priv->output);
|
||||
depth, priv->dither, priv->output);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user