diff options
author | Shreesh Adiga <16567adigashreesh@gmail.com> | 2020-11-16 20:44:16 +0530 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2020-11-22 13:34:25 +0200 |
commit | 959097c880d9dcf83cb2edbdf8a2403ae997f713 (patch) | |
tree | c16d6a4434e651bb3e5fb842bb1766cfc0271fe4 | |
parent | 8a278c2dddc0efa0986b0e0462540d39f7291b36 (diff) | |
download | mpv-959097c880d9dcf83cb2edbdf8a2403ae997f713.tar.bz2 mpv-959097c880d9dcf83cb2edbdf8a2403ae997f713.tar.xz |
vo_sixel: draw osd on the output frame
-rw-r--r-- | video/out/vo_sixel.c | 5 |
1 files changed, 5 insertions, 0 deletions
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]); |