From 017fd0a37da0fc3dddcd635d09770c123f133e57 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Feb 2024 18:06:26 +0100 Subject: Add support for hdr capture on amd/intel Nvidia support will be added in the future. Note that hdr metadata is missing from the output file as amd and intel both have bugged drivers that dont add hdr metadata to the output file. Need to find a workaround for this (patching the video bitstream?). Add -cr limited|full, to set color range --- include/capture/xcomposite_vaapi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/capture/xcomposite_vaapi.h') diff --git a/include/capture/xcomposite_vaapi.h b/include/capture/xcomposite_vaapi.h index e80c60a..ba234ec 100644 --- a/include/capture/xcomposite_vaapi.h +++ b/include/capture/xcomposite_vaapi.h @@ -4,6 +4,7 @@ #include "capture.h" #include "../egl.h" #include "../vec2.h" +#include "../color_conversion.h" #include typedef struct _XDisplay Display; @@ -15,6 +16,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| */ const char *card_path; /* reference */ + gsr_color_range color_range; } gsr_capture_xcomposite_vaapi_params; gsr_capture* gsr_capture_xcomposite_vaapi_create(const gsr_capture_xcomposite_vaapi_params *params); -- cgit v1.2.3