diff options
author | wm4 <wm4@nowhere> | 2020-05-09 17:54:11 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-09 18:02:57 +0200 |
commit | b727600d1fc883cd24f2d54e9691bb0d3a895844 (patch) | |
tree | 04e3f30fc1165614f969b593a3a72e104cb09c1a | |
parent | a1812e2a46b61c431e5650e7aa38ac6cf1f0c934 (diff) | |
download | mpv-b727600d1fc883cd24f2d54e9691bb0d3a895844.tar.bz2 mpv-b727600d1fc883cd24f2d54e9691bb0d3a895844.tar.xz |
osd: add subtitle software blending to stats
-rw-r--r-- | sub/osd.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -414,9 +414,13 @@ void osd_draw_on_image_p(struct osd_state *osd, struct mp_osd_res res, // Need to lock for the dumb osd->draw_cache thing. pthread_mutex_lock(&osd->lock); + stats_time_start(osd->stats, "draw-bmp"); + mp_draw_sub_bitmaps(&osd->draw_cache, dest, list); talloc_steal(osd, osd->draw_cache); + stats_time_end(osd->stats, "draw-bmp"); + pthread_mutex_unlock(&osd->lock); talloc_free(list); |