aboutsummaryrefslogtreecommitdiff
path: root/include/codec_query
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-10-01 18:28:06 +0200
committerdec05eba <dec05eba@protonmail.com>2024-10-01 18:28:06 +0200
commit720a4e29196300493815630a2727600153dde329 (patch)
tree762373bc8251c5c235997a5251dfb3e066fc304f /include/codec_query
parent0eb9ce003d2b2086c708272e321c6dfb2557c8bd (diff)
Support gpus that only support low power encoding mode (Intel Arc A380)
Diffstat (limited to 'include/codec_query')
-rw-r--r--include/codec_query/codec_query.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/include/codec_query/codec_query.h b/include/codec_query/codec_query.h
index 7d5a292..316217d 100644
--- a/include/codec_query/codec_query.h
+++ b/include/codec_query/codec_query.h
@@ -4,15 +4,20 @@
#include <stdbool.h>
typedef struct {
- bool h264;
- bool hevc;
- bool hevc_hdr;
- bool hevc_10bit;
- bool av1;
- bool av1_hdr;
- bool av1_10bit;
- bool vp8;
- bool vp9;
+ bool supported;
+ bool low_power;
+} gsr_supported_video_codec;
+
+typedef struct {
+ gsr_supported_video_codec h264;
+ gsr_supported_video_codec hevc;
+ gsr_supported_video_codec hevc_hdr;
+ gsr_supported_video_codec hevc_10bit;
+ gsr_supported_video_codec av1;
+ gsr_supported_video_codec av1_hdr;
+ gsr_supported_video_codec av1_10bit;
+ gsr_supported_video_codec vp8;
+ gsr_supported_video_codec vp9;
} gsr_supported_video_codecs;
#endif /* GSR_CODEC_QUERY_H */