From d0c221a233e0bc07e22cffb06ec3ae77a5f96010 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 3 Mar 2024 03:47:30 +0100 Subject: Refactor kms_vaapi and kms_cuda Also fixes color metadata, color range and hdr on nvidia wayland. --- include/capture/kms_cuda.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/capture/kms_cuda.h') diff --git a/include/capture/kms_cuda.h b/include/capture/kms_cuda.h index 5691f61..ce3e8ce 100644 --- a/include/capture/kms_cuda.h +++ b/include/capture/kms_cuda.h @@ -3,6 +3,7 @@ #include "../vec2.h" #include "../utils.h" +#include "../color_conversion.h" #include "capture.h" typedef struct _XDisplay Display; @@ -12,6 +13,7 @@ typedef struct { 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; } gsr_capture_kms_cuda_params; gsr_capture* gsr_capture_kms_cuda_create(const gsr_capture_kms_cuda_params *params); -- cgit v1.2.3