summaryrefslogtreecommitdiffstats
path: root/video/mp_image.h
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-20 13:18:26 -0500
committerDudemanguy <random342@airmail.cc>2023-09-21 14:08:52 +0000
commit69b7af3106a158e9fe4f985d19d57ea7ca51d046 (patch)
treec447aa08c8f53f5230ff8d1a6be70817b54df78c /video/mp_image.h
parentd48e4eb1f63ca5690cb85440ddfa78899e610ab4 (diff)
downloadmpv-69b7af3106a158e9fe4f985d19d57ea7ca51d046.tar.bz2
mpv-69b7af3106a158e9fe4f985d19d57ea7ca51d046.tar.xz
mp_image: add force_window field
It's useful for some VOs (dmabuf-wayland) to know if the image params are actually real or fake ones sent by the core for the purpose of force_window.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r--video/mp_image.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h
index 5c4f7186e3..0408aab3df 100644
--- a/video/mp_image.h
+++ b/video/mp_image.h
@@ -46,6 +46,7 @@ struct mp_image_params {
enum mp_imgfmt hw_subfmt; // underlying format for some hwaccel pixfmts
int w, h; // image dimensions
int p_w, p_h; // define pixel aspect ratio (undefined: 0/0)
+ bool force_window; // fake image created by handle_force_window
struct mp_colorspace color;
enum mp_chroma_location chroma_location;
// The image should be rotated clockwise (0-359 degrees).