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:
Shreesh Adiga 2020-11-27 15:40:42 +05:30 committed by avih
parent 8886f017a1
commit 24525e4ef9
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}