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