Commit 5cf8a881 authored by fbarchard@google.com's avatar fbarchard@google.com

Clip scale API

BUG=225
TEST=none
Review URL: https://webrtc-codereview.appspot.com/1455004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@693 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 306e9844
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 692
Version: 693
License: BSD
License File: LICENSE
......
......@@ -26,6 +26,14 @@ int ARGBScale(const uint8* src_argb, int src_stride_argb,
int dst_width, int dst_height,
enum FilterMode filtering);
LIBYUV_API
int ARGBScaleClip(const uint8* src_argb, int src_stride_argb,
int src_width, int src_height,
uint8* dst_argb, int dst_stride_argb,
int dst_width, int dst_height,
int clip_x, int clip_y, int clip_width, int clip_height,
enum FilterMode filtering);
#ifdef __cplusplus
} // extern "C"
} // namespace libyuv
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 692
#define LIBYUV_VERSION 693
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -31,7 +31,7 @@ static int TestFilter(int src_width, int src_height,
int src_y_plane_size = (Abs(src_width) + b * 2) * (Abs(src_height) + b * 2);
int src_uv_plane_size = (src_width_uv + b * 2) * (src_height_uv + b * 2);
int src_stride_y = b * 2 + Abs(src_width) ;
int src_stride_y = b * 2 + Abs(src_width);
int src_stride_uv = b * 2 + src_width_uv;
align_buffer_page_end(src_y, src_y_plane_size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment