summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-26 14:26:23 -0500
committerDudemanguy <random342@airmail.cc>2023-10-01 14:48:38 +0000
commit0b705983584691c6d7b1ee19c4b6950fa5334326 (patch)
treeff51915e63cb312aaeaab5f7c79ba7dd533d7db8 /video/out/vo.h
parent043189c2298ea6ee9d1d88143946e6b95e907db8 (diff)
downloadmpv-0b705983584691c6d7b1ee19c4b6950fa5334326.tar.bz2
mpv-0b705983584691c6d7b1ee19c4b6950fa5334326.tar.xz
vo: fully replace draw_image with draw_frame
0739cfc20934ac7772ab71dbae7ecba4ba10fda4 added the draw_frame API deprecated draw_image internally. VOs that still used draw_image were around, but really there's no reason to not just "upgrade" them anyway. draw_frame is what the "real" VOs that people care about (gpu/gpu-next) use. So we can just simplfy the code a bit now. VOCTRL_REDRAW_FRAME is also no longer needed so that can be completely deleted as well. Note that several of these VOs are legacy crap anyway (e.g. vaapi) and maybe should just be deleted but whatever. vo_direct3d was also completely untested (not that anyone should ever use it).
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index c2d2044bce..e11c23a60a 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -78,11 +78,6 @@ enum mp_voctrl {
/* private to vo_gpu */
VOCTRL_LOAD_HWDEC_API,
- // Redraw the image previously passed to draw_image() (basically, repeat
- // the previous draw_image call). If this is handled, the OSD should also
- // be updated and redrawn. Optional; emulated if not available.
- VOCTRL_REDRAW_FRAME,
-
// Only used internally in vo_libmpv
VOCTRL_PREINIT,
VOCTRL_UNINIT,
@@ -383,17 +378,6 @@ struct vo_driver {
struct mp_image *(*get_image_ts)(struct vo *vo, int imgfmt, int w, int h,
int stride_align, int flags);
- /*
- * Render the given frame to the VO's backbuffer. This operation will be
- * followed by a draw_osd and a flip_page[_timed] call.
- * mpi belongs to the VO; the VO must free it eventually.
- *
- * This also should draw the OSD.
- *
- * Deprecated for draw_frame. A VO should have only either callback set.
- */
- void (*draw_image)(struct vo *vo, struct mp_image *mpi);
-
/* Render the given frame. Note that this is also called when repeating
* or redrawing frames.
*