summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-01-21 15:21:49 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2023-01-23 14:13:34 +0100
commitf8c17f55f975ea3b46ba7cea299f1a8e5d980b4c (patch)
treedf52790475745d55a778f9df11dddf096c452229 /video/out/vo.h
parent8eb7a00fa1f091e1766997f3d972d6c5fe9ac018 (diff)
downloadmpv-f8c17f55f975ea3b46ba7cea299f1a8e5d980b4c.tar.bz2
mpv-f8c17f55f975ea3b46ba7cea299f1a8e5d980b4c.tar.xz
vo: add `int flags` to the get_image signature
This is a huge disgusting mess to thread through everywhere. Maybe I'm stupid for attempting to solve the problem this way.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 05882064a2..8df825e582 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -359,6 +359,8 @@ struct vo_driver {
* stride_align is always a value >=1 that is a power of 2. The stride
* values of the returned image must be divisible by this value.
*
+ * flags is a combination of VO_DR_FLAG_* flags.
+ *
* Currently, the returned image must have exactly 1 AVBufferRef set, for
* internal implementation simplicity.
*
@@ -366,7 +368,7 @@ struct vo_driver {
* will silently fallback to a default allocator
*/
struct mp_image *(*get_image)(struct vo *vo, int imgfmt, int w, int h,
- int stride_align);
+ int stride_align, int flags);
/*
* Thread-safe variant of get_image. Set at most one of these callbacks.
@@ -374,7 +376,7 @@ struct vo_driver {
* vo_driver.uninit is not called before this function returns.
*/
struct mp_image *(*get_image_ts)(struct vo *vo, int imgfmt, int w, int h,
- int stride_align);
+ int stride_align, int flags);
/*
* Render the given frame to the VO's backbuffer. This operation will be
@@ -527,7 +529,7 @@ double vo_get_delay(struct vo *vo);
void vo_discard_timing_info(struct vo *vo);
struct vo_frame *vo_get_current_vo_frame(struct vo *vo);
struct mp_image *vo_get_image(struct vo *vo, int imgfmt, int w, int h,
- int stride_align);
+ int stride_align, int flags);
void vo_wakeup(struct vo *vo);
void vo_wait_default(struct vo *vo, int64_t until_time);