aboutsummaryrefslogtreecommitdiff
path: root/include/capture
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-17 19:55:09 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-17 19:55:09 +0200
commit3ec93bcc41d9636f0acd195c60ca86e58f356637 (patch)
tree8cc0449d143a1964ebce764a6d41e91f8c79f613 /include/capture
parent1e39dc6286f3659733da9a81453991fd5a95a4f5 (diff)
Add hevc_10bit and av1_10bit options for 10bit color range, increase video quality (qp)
Diffstat (limited to 'include/capture')
-rw-r--r--include/capture/kms.h1
-rw-r--r--include/capture/nvfbc.h2
-rw-r--r--include/capture/portal.h2
-rw-r--r--include/capture/xcomposite.h1
4 files changed, 4 insertions, 2 deletions
diff --git a/include/capture/kms.h b/include/capture/kms.h
index 278a391..f19e462 100644
--- a/include/capture/kms.h
+++ b/include/capture/kms.h
@@ -6,6 +6,7 @@
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_color_depth color_depth;
gsr_color_range color_range;
bool hdr;
bool record_cursor;
diff --git a/include/capture/nvfbc.h b/include/capture/nvfbc.h
index e24b712..9655921 100644
--- a/include/capture/nvfbc.h
+++ b/include/capture/nvfbc.h
@@ -12,7 +12,7 @@ typedef struct {
vec2i size;
bool direct_capture;
bool overclock;
- bool hdr;
+ gsr_color_depth color_depth;
gsr_color_range color_range;
bool record_cursor;
bool use_software_video_encoder;
diff --git a/include/capture/portal.h b/include/capture/portal.h
index f80325d..2e2c6f2 100644
--- a/include/capture/portal.h
+++ b/include/capture/portal.h
@@ -5,8 +5,8 @@
typedef struct {
gsr_egl *egl;
+ gsr_color_depth color_depth;
gsr_color_range color_range;
- bool hdr;
bool record_cursor;
bool restore_portal_session;
/* If this is set to NULL then this defaults to $XDG_CONFIG_HOME/gpu-screen-recorder/restore_token ($XDG_CONFIG_HOME defaults to $HOME/.config) */
diff --git a/include/capture/xcomposite.h b/include/capture/xcomposite.h
index 707421f..98b8766 100644
--- a/include/capture/xcomposite.h
+++ b/include/capture/xcomposite.h
@@ -12,6 +12,7 @@ typedef struct {
gsr_color_range color_range;
bool record_cursor;
bool track_damage;
+ gsr_color_depth color_depth;
} gsr_capture_xcomposite_params;
gsr_capture* gsr_capture_xcomposite_create(const gsr_capture_xcomposite_params *params);