fwd_txfm_avx2.c 917 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2012 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #include "./vpx_config.h"
  11. #include "./vpx_dsp_rtcd.h"
  12. #if !CONFIG_VP9_HIGHBITDEPTH
  13. #define FDCT32x32_2D_AVX2 vpx_fdct32x32_rd_avx2
  14. #define FDCT32x32_HIGH_PRECISION 0
  15. #include "vpx_dsp/x86/fwd_dct32x32_impl_avx2.h"
  16. #undef FDCT32x32_2D_AVX2
  17. #undef FDCT32x32_HIGH_PRECISION
  18. #define FDCT32x32_2D_AVX2 vpx_fdct32x32_avx2
  19. #define FDCT32x32_HIGH_PRECISION 1
  20. #include "vpx_dsp/x86/fwd_dct32x32_impl_avx2.h" // NOLINT
  21. #undef FDCT32x32_2D_AVX2
  22. #undef FDCT32x32_HIGH_PRECISION
  23. #endif // !CONFIG_VP9_HIGHBITDEPTH