Move codec query from encoder to separate file

This commit is contained in:
dec05eba
2024-09-26 16:08:26 +02:00
parent 0b20a46e58
commit 1aaa26d87e
12 changed files with 491 additions and 455 deletions

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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 */