memsink: caps protocol

This commit is contained in:
Maxim Devaev
2026-07-06 09:22:19 +03:00
parent ce231e7963
commit b1c5276ab4
7 changed files with 59 additions and 23 deletions

View File

@@ -27,9 +27,18 @@
#define US_MEMSINK_MAGIC ((u64)0xCAFEBABECAFEBABE)
#define US_MEMSINK_VERSION ((u32)8)
#define US_MEMSINK_VERSION ((u32)9)
typedef struct {
uint width;
uint height;
uint format;
uint stride;
uint fps;
bool key;
} us_memsink_wants_s;
typedef struct {
u64 magic;
u32 version;
@@ -37,7 +46,7 @@ typedef struct {
uz used;
ldf last_client_ts;
bool key_requested;
us_memsink_wants_s wants;
US_FRAME_META_DECLARE;
} us_memsink_shared_s;