diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-10-01 18:28:06 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-10-01 18:28:06 +0200 |
commit | 720a4e29196300493815630a2727600153dde329 (patch) | |
tree | 762373bc8251c5c235997a5251dfb3e066fc304f /src/codec_query/cuda.c | |
parent | 0eb9ce003d2b2086c708272e321c6dfb2557c8bd (diff) |
Support gpus that only support low power encoding mode (Intel Arc A380)
Diffstat (limited to 'src/codec_query/cuda.c')
-rw-r--r-- | src/codec_query/cuda.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/codec_query/cuda.c b/src/codec_query/cuda.c index 690e7d4..4692b1d 100644 --- a/src/codec_query/cuda.c +++ b/src/codec_query/cuda.c @@ -101,16 +101,16 @@ static bool encoder_get_supported_profiles(const NV_ENCODE_API_FUNCTION_LIST *fu for(uint32_t i = 0; i < profile_guid_count; ++i) { if(profile_is_h264(&profile_guids[i])) { - supported_video_codecs->h264 = true; + supported_video_codecs->h264 = (gsr_supported_video_codec){ true, false }; } else if(profile_is_hevc(&profile_guids[i])) { - supported_video_codecs->hevc = true; + supported_video_codecs->hevc = (gsr_supported_video_codec){ true, false }; } else if(profile_is_hevc_10bit(&profile_guids[i])) { - supported_video_codecs->hevc_hdr = true; - supported_video_codecs->hevc_10bit = true; + supported_video_codecs->hevc_hdr = (gsr_supported_video_codec){ true, false }; + supported_video_codecs->hevc_10bit = (gsr_supported_video_codec){ true, false }; } else if(profile_is_av1(&profile_guids[i])) { - supported_video_codecs->av1 = true; - supported_video_codecs->av1_hdr = true; - supported_video_codecs->av1_10bit = true; + supported_video_codecs->av1 = (gsr_supported_video_codec){ true, false }; + supported_video_codecs->av1_hdr = (gsr_supported_video_codec){ true, false }; + supported_video_codecs->av1_10bit = (gsr_supported_video_codec){ true, false }; } } |