sharpyuv_dsp.h 1.2 KB

1234567891011121314151617181920212223242526272829
  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 <stdint.h>
  14. #include "src/dsp/cpu.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(VP8CPUInfo cpu_info_func);
  23. #endif // WEBP_SHARPYUV_SHARPYUV_DSP_H_