mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2026-02-08 18:56:43 +08:00
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
This commit is contained in:
parent
306e984451
commit
5cf8a881e0
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 692
|
Version: 693
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,14 @@ int ARGBScale(const uint8* src_argb, int src_stride_argb,
|
|||||||
int dst_width, int dst_height,
|
int dst_width, int dst_height,
|
||||||
enum FilterMode filtering);
|
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
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
} // namespace libyuv
|
} // namespace libyuv
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 692
|
#define LIBYUV_VERSION 693
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#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_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_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;
|
int src_stride_uv = b * 2 + src_width_uv;
|
||||||
|
|
||||||
align_buffer_page_end(src_y, src_y_plane_size)
|
align_buffer_page_end(src_y, src_y_plane_size)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user