aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-03-11 19:01:46 +0100
committerdec05eba <dec05eba@protonmail.com>2024-03-11 19:01:46 +0100
commitba096a3ba7815eff41159eedfb646c97451fbef7 (patch)
tree01bea3fea22cec135000e4aa1eaeea16406b56d5 /include
parent1292892d4dd9c94fccdead7afd58e38c85234bb9 (diff)
Add -cursor option to not record cursor
Diffstat (limited to 'include')
-rw-r--r--include/capture/kms.h2
-rw-r--r--include/capture/kms_cuda.h3
-rw-r--r--include/capture/kms_vaapi.h3
-rw-r--r--include/capture/nvfbc.h1
-rw-r--r--include/capture/xcomposite.h1
5 files changed, 5 insertions, 5 deletions
diff --git a/include/capture/kms.h b/include/capture/kms.h
index aa58e93..674813a 100644
--- a/include/capture/kms.h
+++ b/include/capture/kms.h
@@ -44,7 +44,7 @@ struct gsr_capture_kms {
/* Returns 0 on success */
int gsr_capture_kms_start(gsr_capture_kms *self, const char *display_to_capture, gsr_egl *egl, AVCodecContext *video_codec_context, AVFrame *frame);
void gsr_capture_kms_stop(gsr_capture_kms *self);
-bool gsr_capture_kms_capture(gsr_capture_kms *self, AVFrame *frame, bool hdr, bool screen_plane_use_modifiers, bool cursor_texture_is_external);
+bool gsr_capture_kms_capture(gsr_capture_kms *self, AVFrame *frame, bool hdr, bool screen_plane_use_modifiers, bool cursor_texture_is_external, bool record_cursor);
void gsr_capture_kms_cleanup_kms_fds(gsr_capture_kms *self);
#endif /* GSR_CAPTURE_KMS_H */
diff --git a/include/capture/kms_cuda.h b/include/capture/kms_cuda.h
index ce3e8ce..fd0d396 100644
--- a/include/capture/kms_cuda.h
+++ b/include/capture/kms_cuda.h
@@ -6,14 +6,13 @@
#include "../color_conversion.h"
#include "capture.h"
-typedef struct _XDisplay Display;
-
typedef struct {
gsr_egl *egl;
const char *display_to_capture; /* if this is "screen", then the first monitor is captured. A copy is made of this */
gsr_gpu_info gpu_inf;
bool hdr;
gsr_color_range color_range;
+ bool record_cursor;
} gsr_capture_kms_cuda_params;
gsr_capture* gsr_capture_kms_cuda_create(const gsr_capture_kms_cuda_params *params);
diff --git a/include/capture/kms_vaapi.h b/include/capture/kms_vaapi.h
index 54d0bad..196b597 100644
--- a/include/capture/kms_vaapi.h
+++ b/include/capture/kms_vaapi.h
@@ -6,14 +6,13 @@
#include "../color_conversion.h"
#include "capture.h"
-typedef struct _XDisplay Display;
-
typedef struct {
gsr_egl *egl;
const char *display_to_capture; /* if this is "screen", then the first monitor is captured. A copy is made of this */
gsr_gpu_info gpu_inf;
bool hdr;
gsr_color_range color_range;
+ bool record_cursor;
} gsr_capture_kms_vaapi_params;
gsr_capture* gsr_capture_kms_vaapi_create(const gsr_capture_kms_vaapi_params *params);
diff --git a/include/capture/nvfbc.h b/include/capture/nvfbc.h
index da486f2..36bc2b6 100644
--- a/include/capture/nvfbc.h
+++ b/include/capture/nvfbc.h
@@ -14,6 +14,7 @@ typedef struct {
bool overclock;
bool hdr;
gsr_color_range color_range;
+ bool record_cursor;
} gsr_capture_nvfbc_params;
gsr_capture* gsr_capture_nvfbc_create(const gsr_capture_nvfbc_params *params);
diff --git a/include/capture/xcomposite.h b/include/capture/xcomposite.h
index e311a93..ce0dbad 100644
--- a/include/capture/xcomposite.h
+++ b/include/capture/xcomposite.h
@@ -14,6 +14,7 @@ typedef struct {
bool follow_focused; /* If this is set then |window| is ignored */
vec2i region_size; /* This is currently only used with |follow_focused| */
gsr_color_range color_range;
+ bool record_cursor;
} gsr_capture_xcomposite_params;
typedef struct {