scale_uv.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright 2020 The LibYuv 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. #ifndef INCLUDE_LIBYUV_SCALE_UV_H_
  11. #define INCLUDE_LIBYUV_SCALE_UV_H_
  12. #include "libyuv/basic_types.h"
  13. #include "libyuv/scale.h" // For FilterMode
  14. #ifdef __cplusplus
  15. namespace libyuv {
  16. extern "C" {
  17. #endif
  18. LIBYUV_API
  19. int UVScale(const uint8_t* src_uv,
  20. int src_stride_uv,
  21. int src_width,
  22. int src_height,
  23. uint8_t* dst_uv,
  24. int dst_stride_uv,
  25. int dst_width,
  26. int dst_height,
  27. enum FilterMode filtering);
  28. // Scale a 16 bit UV image.
  29. // This function is currently incomplete, it can't handle all cases.
  30. LIBYUV_API
  31. int UVScale_16(const uint16_t* src_uv,
  32. int src_stride_uv,
  33. int src_width,
  34. int src_height,
  35. uint16_t* dst_uv,
  36. int dst_stride_uv,
  37. int dst_width,
  38. int dst_height,
  39. enum FilterMode filtering);
  40. #ifdef __cplusplus
  41. } // extern "C"
  42. } // namespace libyuv
  43. #endif
  44. #endif // INCLUDE_LIBYUV_SCALE_UV_H_