summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/hwdec.h')
-rw-r--r--video/out/opengl/hwdec.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/video/out/opengl/hwdec.h b/video/out/opengl/hwdec.h
index 95cbdadcf1..6d4dc5d591 100644
--- a/video/out/opengl/hwdec.h
+++ b/video/out/opengl/hwdec.h
@@ -71,13 +71,11 @@ struct gl_hwdec_driver {
// layer below it.
// Non-overlay mode is strictly preferred, so try not to use overlay mode.
- // Set the given frame as overlay, replacing the previous one.
- // hw_image==NULL is passed to clear the overlay.
- int (*overlay_frame)(struct gl_hwdec *hw, struct mp_image *hw_image);
-
- // Move overlay position within the "window".
- void (*overlay_adjust)(struct gl_hwdec *hw,
- struct mp_rect *src, struct mp_rect *dst);
+ // Set the given frame as overlay, replacing the previous one. This can also
+ // just change the position of the overlay.
+ // hw_image==src==dst==NULL is passed to clear the overlay.
+ int (*overlay_frame)(struct gl_hwdec *hw, struct mp_image *hw_image,
+ struct mp_rect *src, struct mp_rect *dst, bool newframe);
};
struct gl_hwdec *gl_hwdec_load_api(struct mp_log *log, GL *gl,