From b077177081c61bce1b1e5247389a09383369a827 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 22 Jul 2024 02:31:12 +0200 Subject: Portal: move modifier query to init --- include/pipewire.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/pipewire.h') diff --git a/include/pipewire.h b/include/pipewire.h index 2a0b134..2a53423 100644 --- a/include/pipewire.h +++ b/include/pipewire.h @@ -8,6 +8,9 @@ #include #include +#define GSR_PIPEWIRE_MAX_MODIFIERS 1024 +#define GSR_PIPEWIRE_NUM_VIDEO_FORMATS 10 + typedef struct gsr_egl gsr_egl; typedef struct { @@ -32,6 +35,12 @@ typedef struct { int width, height; } gsr_pipewire_region; +typedef struct { + enum spa_video_format format; + size_t modifiers_index; + size_t modifiers_size; +} gsr_video_format; + typedef struct { gsr_egl *egl; int fd; @@ -65,12 +74,17 @@ typedef struct { uint32_t width, height; } crop; + gsr_video_format supported_video_formats[GSR_PIPEWIRE_NUM_VIDEO_FORMATS]; + gsr_pipewire_data_version server_version; gsr_pipewire_video_info video_info; gsr_pipewire_dmabuf_data dmabuf_data; bool started; bool stopped; + + uint64_t modifiers[GSR_PIPEWIRE_MAX_MODIFIERS]; + size_t num_modifiers; } gsr_pipewire; /* -- cgit v1.2.3