aboutsummaryrefslogtreecommitdiff
path: root/include/capture/capture.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-15 04:22:00 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-15 04:22:00 +0200
commitf6f8fdb33c630973cc0cc8c1f4f92efa6e4cb7c8 (patch)
treefce41200c196e909a648b18a56140ceaf276ac92 /include/capture/capture.h
parentf53d7b30b1afab466257fee3d3a3823cff3ff2ad (diff)
Portal: sync capture to frame update
Diffstat (limited to 'include/capture/capture.h')
-rw-r--r--include/capture/capture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/capture/capture.h b/include/capture/capture.h
index 7a42909..e31b3a5 100644
--- a/include/capture/capture.h
+++ b/include/capture/capture.h
@@ -25,6 +25,8 @@ struct gsr_capture {
bool (*uses_external_image)(gsr_capture *cap); /* can be NULL. If NULL, return false */
bool (*set_hdr_metadata)(gsr_capture *cap, AVMasteringDisplayMetadata *mastering_display_metadata, AVContentLightMetadata *light_metadata); /* can be NULL. If NULL, return false */
uint64_t (*get_window_id)(gsr_capture *cap); /* can be NULL. Returns 0 if unknown */
+ bool (*is_damaged)(gsr_capture *cap); /* can be NULL */
+ void (*clear_damage)(gsr_capture *cap); /* can be NULL */
void (*destroy)(gsr_capture *cap, AVCodecContext *video_codec_context);
void *priv; /* can be NULL */