summaryrefslogtreecommitdiffstats
path: root/video/out/dr_helper.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/dr_helper.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/dr_helper.h')
-rw-r--r--video/out/dr_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/dr_helper.h b/video/out/dr_helper.h
index ff1d268426..71b32f8a4a 100644
--- a/video/out/dr_helper.h
+++ b/video/out/dr_helper.h
@@ -15,7 +15,7 @@ struct mp_dispatch_queue;
// dr_helper instance can be destroyed.
struct dr_helper *dr_helper_create(struct mp_dispatch_queue *dispatch,
struct mp_image *(*get_image)(void *ctx, int imgfmt, int w, int h,
- int stride_align),
+ int stride_align, int flags),
void *get_image_ctx);
// Make DR release calls (freeing images) reentrant if they are called on this
@@ -34,4 +34,4 @@ void dr_helper_release_thread(struct dr_helper *dr);
// allocate a DR'ed image on the render thread (at least not in a way which
// actually works if you want foreign threads to be able to free them).
struct mp_image *dr_helper_get_image(struct dr_helper *dr, int imgfmt,
- int w, int h, int stride_align);
+ int w, int h, int stride_align, int flags);