aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-01 05:22:32 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-01 05:22:32 +0200
commit7e1be0192d39421daa2b29fbcb1838889704dd8a (patch)
tree7f810ac80c36a6dd8497da4439a1d60659a688d3
parentddf3fa5a20f469255f12f1853cc9fcb8579f16ee (diff)
Only show hdr codecs in info output if wayland
-rw-r--r--src/main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f2022f9..50fa7f8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1658,16 +1658,18 @@ static void list_gpu_info(gsr_egl *egl) {
}
}
-static void list_supported_video_codecs(gsr_egl *egl) {
+static void list_supported_video_codecs(gsr_egl *egl, bool wayland) {
if(find_h264_encoder(egl->gpu_info.vendor, egl->card_path))
puts("h264");
if(find_hevc_encoder(egl->gpu_info.vendor, egl->card_path)) {
puts("hevc");
- puts("hevc_hdr");
+ if(wayland)
+ puts("hevc_hdr");
}
if(find_av1_encoder(egl->gpu_info.vendor, egl->card_path)) {
puts("av1");
- puts("av1_hdr");
+ if(wayland)
+ puts("av1_hdr");
}
if(find_vp8_encoder(egl->gpu_info.vendor, egl->card_path))
puts("vp8");
@@ -1767,7 +1769,7 @@ static void info_command() {
puts("section=gpu_info");
list_gpu_info(&egl);
puts("section=video_codecs");
- list_supported_video_codecs(&egl);
+ list_supported_video_codecs(&egl, wayland);
puts("section=capture_options");
list_supported_capture_options(&egl, wayland);