aboutsummaryrefslogtreecommitdiff
path: root/source/scale_argb.cc
diff options
context:
space:
mode:
authorfbarchard@google.com <fbarchard@google.com>2015-04-07 00:10:52 +0000
committerfbarchard@google.com <fbarchard@google.com>2015-04-07 00:10:52 +0000
commit8f0b32773c74450bc4ece5e0bd9fb3394dc2b7b4 (patch)
treec250f47e496548da85c012005ac7600cafc7f674 /source/scale_argb.cc
parent9afabe29b8101ab27b12ddf3ac86a823180e9061 (diff)
downloadlibyuv-8f0b32773c74450bc4ece5e0bd9fb3394dc2b7b4.tar.gz
ARGBToUV AVX2 functions hooked up.
BUG=none TESTED=RGB565ToI420 R=tpsiaki@google.com Review URL: https://webrtc-codereview.appspot.com/46829004 git-svn-id: http://libyuv.googlecode.com/svn/trunk@1359 16f28f9a-4ce2-e073-06de-1de4eb20be90
Diffstat (limited to 'source/scale_argb.cc')
-rw-r--r--source/scale_argb.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/scale_argb.cc b/source/scale_argb.cc
index 6e019bf9..67aa0495 100644
--- a/source/scale_argb.cc
+++ b/source/scale_argb.cc
@@ -87,7 +87,7 @@ static void ScaleARGBDown4Box(int src_width, int src_height,
int x, int dx, int y, int dy) {
int j;
// Allocate 2 rows of ARGB.
- const int kRowSize = (dst_width * 2 * 4 + 15) & ~15;
+ const int kRowSize = (dst_width * 2 * 4 + 31) & ~31;
align_buffer_64(row, kRowSize * 2);
int row_stride = src_stride * (dy >> 16);
void (*ScaleARGBRowDown2)(const uint8* src_argb, ptrdiff_t src_stride,
@@ -353,7 +353,7 @@ static void ScaleARGBBilinearUp(int src_width, int src_height,
const uint8* src = src_argb + yi * src_stride;
// Allocate 2 rows of ARGB.
- const int kRowSize = (dst_width * 4 + 15) & ~15;
+ const int kRowSize = (dst_width * 4 + 31) & ~31;
align_buffer_64(row, kRowSize * 2);
uint8* rowptr = row;
@@ -538,7 +538,7 @@ static void ScaleYUVToARGBBilinearUp(int src_width, int src_height,
const uint8* src_row_v = src_v + uv_yi * src_stride_v;
// Allocate 2 rows of ARGB.
- const int kRowSize = (dst_width * 4 + 15) & ~15;
+ const int kRowSize = (dst_width * 4 + 31) & ~31;
align_buffer_64(row, kRowSize * 2);
// Allocate 1 row of ARGB for source conversion.