From 959097c880d9dcf83cb2edbdf8a2403ae997f713 Mon Sep 17 00:00:00 2001 From: Shreesh Adiga <16567adigashreesh@gmail.com> Date: Mon, 16 Nov 2020 20:44:16 +0530 Subject: vo_sixel: draw osd on the output frame --- video/out/vo_sixel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/out') diff --git a/video/out/vo_sixel.c b/video/out/vo_sixel.c index 9c319672f0..8318c5190c 100644 --- a/video/out/vo_sixel.c +++ b/video/out/vo_sixel.c @@ -326,6 +326,11 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) // Downscale the image 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 memcpy_pic(priv->buffer, priv->frame->planes[0], priv->width * depth, priv->height, priv->width * depth, priv->frame->stride[0]); -- cgit v1.2.3