Skip to content

Commit

Permalink
Define headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamaika1 authored Nov 15, 2024
1 parent 9c158ad commit 424253b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/strategies/strategies-dct.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
****************************************************************************/

#include "strategies/strategies-dct.h"

#include "avx2/dct-avx2.h"
#include "generic/dct-generic.h"
#if defined(__AVX512F__)
#include "strategies/avx2/dct-avx2.h"
#endif
#include "strategies/generic/dct-generic.h"
#include "strategyselector.h"


Expand Down Expand Up @@ -76,11 +77,11 @@ int uvg_strategy_register_dct(void* opaque, uint8_t bitdepth) {
bool success = true;

success &= uvg_strategy_register_dct_generic(opaque, bitdepth);

#if defined(__AVX512F__)
if (uvg_g_hardware_flags.intel_flags.avx2) {
success &= uvg_strategy_register_dct_avx2(opaque, bitdepth);
}

#endif
return success;
}

Expand Down

0 comments on commit 424253b

Please sign in to comment.