mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
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
This commit is contained in:
parent
5e24e55f98
commit
3f5a860be8
@ -1,6 +1,6 @@
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user