disable sw encoder

This commit is contained in:
pigeatgarlic 2024-05-05 09:59:18 +07:00
parent 1b71ef8a24
commit 30da7e5dfd

View File

@ -33,6 +33,8 @@ extern "C" {
}
#endif
// #define ALLOW_SW_ENCODER
using namespace std::literals;
namespace video {
@ -924,15 +926,18 @@ namespace video {
#endif
#ifdef _WIN32
&quicksync,
&amdvce,
&amdvce
#endif
#ifdef __linux__
&vaapi,
&vaapi
#endif
#ifdef __APPLE__
&videotoolbox,
&videotoolbox
#endif
#ifdef ALLOW_SW_ENCODER
,&software
#endif
&software
};
static encoder_t *chosen_encoder;