Add support for desktop portal capture (-w portal)

This commit is contained in:
dec05eba
2024-07-15 18:57:33 +02:00
parent c447a9a35f
commit 048b8d21ec
21 changed files with 2272 additions and 150 deletions

16
include/capture/portal.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef GSR_CAPTURE_PORTAL_H
#define GSR_CAPTURE_PORTAL_H
#include "capture.h"
typedef struct {
gsr_egl *egl;
gsr_color_range color_range;
bool hdr;
bool record_cursor;
bool restore_portal_session;
} gsr_capture_portal_params;
gsr_capture* gsr_capture_portal_create(const gsr_capture_portal_params *params);
#endif /* GSR_CAPTURE_PORTAL_H */