mirror of https://github.com/mpv-player/mpv
vo_sixel: draw osd on the output frame
This commit is contained in:
parent
8a278c2ddd
commit
959097c880
|
@ -326,6 +326,11 @@ static void draw_image(struct vo *vo, mp_image_t *mpi)
|
||||||
// Downscale the image
|
// Downscale the image
|
||||||
mp_sws_scale(priv->sws, priv->frame, &src);
|
mp_sws_scale(priv->sws, priv->frame, &src);
|
||||||
|
|
||||||
|
struct mp_osd_res dim = {
|
||||||
|
.w = priv->width,
|
||||||
|
.h = priv->height
|
||||||
|
};
|
||||||
|
osd_draw_on_image(vo->osd, dim, mpi ? mpi->pts : 0, 0, priv->frame);
|
||||||
// Copy from mpv to RGB format as required by libsixel
|
// Copy from mpv to RGB format as required by libsixel
|
||||||
memcpy_pic(priv->buffer, priv->frame->planes[0], priv->width * depth, priv->height,
|
memcpy_pic(priv->buffer, priv->frame->planes[0], priv->width * depth, priv->height,
|
||||||
priv->width * depth, priv->frame->stride[0]);
|
priv->width * depth, priv->frame->stride[0]);
|
||||||
|
|
Loading…
Reference in New Issue