sharpyuv_cpu.h 855 B

1234567891011121314151617181920212223
  1. // Copyright 2022 Google Inc. All Rights Reserved.
  2. //
  3. // Use of this source code is governed by a BSD-style license
  4. // that can be found in the COPYING file in the root of the source
  5. // tree. An additional intellectual property rights grant can be found
  6. // in the file PATENTS. All contributing project authors may
  7. // be found in the AUTHORS file in the root of the source tree.
  8. // -----------------------------------------------------------------------------
  9. //
  10. #ifndef WEBP_SHARPYUV_SHARPYUV_CPU_H_
  11. #define WEBP_SHARPYUV_SHARPYUV_CPU_H_
  12. #include "sharpyuv/sharpyuv.h"
  13. // Avoid exporting SharpYuvGetCPUInfo in shared object / DLL builds.
  14. // SharpYuvInit() replaces the use of the function pointer.
  15. #undef WEBP_EXTERN
  16. #define WEBP_EXTERN extern
  17. #define VP8GetCPUInfo SharpYuvGetCPUInfo
  18. #include "src/dsp/cpu.h"
  19. #endif // WEBP_SHARPYUV_SHARPYUV_CPU_H_