Commit 3f5a860b authored by fbarchard@google.com's avatar fbarchard@google.com

Swap x and dx to get slope right.

BUG=none
TEST=ARGBScaleClipFrom320x240_Bilinear
R=tpsiaki@google.com

Review URL: https://webrtc-codereview.appspot.com/5299004

git-svn-id: http://libyuv.googlecode.com/svn/trunk@898 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 5e24e55f
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 897
Version: 898
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 897
#define LIBYUV_VERSION 898
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -589,12 +589,12 @@ static void ScaleARGB(const uint8* src, int src_stride,
src_stride = -src_stride;
}
// Initial source x/y coordinate and step values as 16.16 fixed point.
int dx = 0;
int dy = 0;
int x = 0;
int y = 0;
int dx = 0;
int dy = 0;
ScaleSlope(src_width, src_height, dst_width, dst_height, filtering,
&dx, &dy, &x, &y);
&x, &y, &dx, &dy);
if (clip_x) {
x += clip_x * dx;
dst += clip_x * 4;
......
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