Define headers

This commit is contained in:
Jamaika1 2024-11-15 11:49:02 +01:00 committed by GitHub
parent 440dfcd253
commit 48b996d195
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,10 +30,11 @@
* INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS * INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS
****************************************************************************/ ****************************************************************************/
#include "strategies/strategies-encode.h" #include "strategies-encode.h"
#if defined(__AVX512F__)
#include "strategies/avx2/encode_coding_tree-avx2.h" #include "avx2/encode_coding_tree-avx2.h"
#include "strategies/generic/encode_coding_tree-generic.h" #endif
#include "encode_coding_tree-generic.h"
#include "strategyselector.h" #include "strategyselector.h"
@ -45,9 +46,10 @@ int uvg_strategy_register_encode(void* opaque, uint8_t bitdepth) {
bool success = true; bool success = true;
success &= uvg_strategy_register_encode_generic(opaque, bitdepth); success &= uvg_strategy_register_encode_generic(opaque, bitdepth);
#if defined(__AVX512F__)
if (uvg_g_hardware_flags.intel_flags.avx2) { if (uvg_g_hardware_flags.intel_flags.avx2) {
//success &= uvg_strategy_register_encode_avx2(opaque, bitdepth); //success &= uvg_strategy_register_encode_avx2(opaque, bitdepth);
} }
#endif
return success; return success;
} }