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.h18
-rw-r--r--include/codec_query/cuda.h8
-rw-r--r--include/codec_query/vaapi.h8
3 files changed, 34 insertions, 0 deletions
diff --git a/include/codec_query/codec_query.h b/include/codec_query/codec_query.h
new file mode 100644
index 0000000..7d5a292
--- /dev/null
+++ b/include/codec_query/codec_query.h
@@ -0,0 +1,18 @@
+#ifndef GSR_CODEC_QUERY_H
+#define GSR_CODEC_QUERY_H
+
+#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;
+} gsr_supported_video_codecs;
+
+#endif /* GSR_CODEC_QUERY_H */
diff --git a/include/codec_query/cuda.h b/include/codec_query/cuda.h
new file mode 100644
index 0000000..b57c4ee
--- /dev/null
+++ b/include/codec_query/cuda.h
@@ -0,0 +1,8 @@
+#ifndef GSR_CODEC_QUERY_CUDA_H
+#define GSR_CODEC_QUERY_CUDA_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 */
diff --git a/include/codec_query/vaapi.h b/include/codec_query/vaapi.h
new file mode 100644
index 0000000..60bdeca
--- /dev/null
+++ b/include/codec_query/vaapi.h
@@ -0,0 +1,8 @@
+#ifndef GSR_CODEC_QUERY_VAAPI_H
+#define GSR_CODEC_QUERY_VAAPI_H
+
+#include "codec_query.h"
+
+bool gsr_get_supported_video_codecs_vaapi(gsr_supported_video_codecs *video_codecs, const char *card_path, bool cleanup);
+
+#endif /* GSR_CODEC_QUERY_VAAPI_H */