| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2012 The LibYuv Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 // Clipped scale takes destination rectangle coordinates for clip values. | 29 // Clipped scale takes destination rectangle coordinates for clip values. |
| 30 LIBYUV_API | 30 LIBYUV_API |
| 31 int ARGBScaleClip(const uint8* src_argb, int src_stride_argb, | 31 int ARGBScaleClip(const uint8* src_argb, int src_stride_argb, |
| 32 int src_width, int src_height, | 32 int src_width, int src_height, |
| 33 uint8* dst_argb, int dst_stride_argb, | 33 uint8* dst_argb, int dst_stride_argb, |
| 34 int dst_width, int dst_height, | 34 int dst_width, int dst_height, |
| 35 int clip_x, int clip_y, int clip_width, int clip_height, | 35 int clip_x, int clip_y, int clip_width, int clip_height, |
| 36 enum FilterMode filtering); | 36 enum FilterMode filtering); |
| 37 | 37 |
| 38 // TODO(fbarchard): Implement this. | |
| 39 // Scale with YUV conversion to ARGB and clipping. | 38 // Scale with YUV conversion to ARGB and clipping. |
| 40 LIBYUV_API | 39 LIBYUV_API |
| 41 int YUVToARGBScaleClip(const uint8* src_y, int src_stride_y, | 40 int YUVToARGBScaleClip(const uint8* src_y, int src_stride_y, |
| 42 const uint8* src_u, int src_stride_u, | 41 const uint8* src_u, int src_stride_u, |
| 43 const uint8* src_v, int src_stride_v, | 42 const uint8* src_v, int src_stride_v, |
| 44 uint32 src_fourcc, | 43 uint32 src_fourcc, |
| 45 int src_width, int src_height, | 44 int src_width, int src_height, |
| 46 uint8* dst_argb, int dst_stride_argb, | 45 uint8* dst_argb, int dst_stride_argb, |
| 47 uint32 dst_fourcc, | 46 uint32 dst_fourcc, |
| 48 int dst_width, int dst_height, | 47 int dst_width, int dst_height, |
| 49 int clip_x, int clip_y, int clip_width, int clip_height, | 48 int clip_x, int clip_y, int clip_width, int clip_height, |
| 50 enum FilterMode filtering); | 49 enum FilterMode filtering); |
| 51 | 50 |
| 52 #ifdef __cplusplus | 51 #ifdef __cplusplus |
| 53 } // extern "C" | 52 } // extern "C" |
| 54 } // namespace libyuv | 53 } // namespace libyuv |
| 55 #endif | 54 #endif |
| 56 | 55 |
| 57 #endif // INCLUDE_LIBYUV_SCALE_ARGB_H_ NOLINT | 56 #endif // INCLUDE_LIBYUV_SCALE_ARGB_H_ NOLINT |
| OLD | NEW |