aboutsummaryrefslogtreecommitdiff
path: root/include/codec_query
diff options
context:
space:
mode:
Diffstat (limited to 'include/codec_query')
-rw-r--r--include/codec_query/codec_query.h23
-rw-r--r--include/codec_query/nvenc.h (renamed from include/codec_query/cuda.h)6
2 files changed, 17 insertions, 12 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 */
diff --git a/include/codec_query/cuda.h b/include/codec_query/nvenc.h
index b57c4ee..c01acf6 100644
--- a/include/codec_query/cuda.h
+++ b/include/codec_query/nvenc.h
@@ -1,8 +1,8 @@
-#ifndef GSR_CODEC_QUERY_CUDA_H
-#define GSR_CODEC_QUERY_CUDA_H
+#ifndef GSR_CODEC_QUERY_NVENC_H
+#define GSR_CODEC_QUERY_NVENC_H
#include "codec_query.h"
bool gsr_get_supported_video_codecs_nvenc(gsr_supported_video_codecs *video_codecs, bool cleanup);
-#endif /* GSR_CODEC_QUERY_CUDA_H */
+#endif /* GSR_CODEC_QUERY_NVENC_H */