sharpyuv_dsp.h 1.2 KB

12345678910111213141516171819202122232425262728
  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. // Speed-critical functions for Sharp YUV.
  11. #ifndef WEBP_SHARPYUV_SHARPYUV_DSP_H_
  12. #define WEBP_SHARPYUV_SHARPYUV_DSP_H_
  13. #include "sharpyuv/sharpyuv_cpu.h"
  14. #include "src/webp/types.h"
  15. extern uint64_t (*SharpYuvUpdateY)(const uint16_t* src, const uint16_t* ref,
  16. uint16_t* dst, int len, int bit_depth);
  17. extern void (*SharpYuvUpdateRGB)(const int16_t* src, const int16_t* ref,
  18. int16_t* dst, int len);
  19. extern void (*SharpYuvFilterRow)(const int16_t* A, const int16_t* B, int len,
  20. const uint16_t* best_y, uint16_t* out,
  21. int bit_depth);
  22. void SharpYuvInitDsp(void);
  23. #endif // WEBP_SHARPYUV_SHARPYUV_DSP_H_