Commit a12284b9 authored by fbarchard@google.com's avatar fbarchard@google.com

sobel use one alloc instead of 3.

BUG=300
TESTED=try bots
R=tpsiaki@google.com

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

git-svn-id: http://libyuv.googlecode.com/svn/trunk@931 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 49db7b7e
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 930 Version: 931
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -11,6 +11,6 @@ ...@@ -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 930 #define LIBYUV_VERSION 931
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
...@@ -1909,9 +1909,10 @@ static int ARGBSobelize(const uint8* src_argb, int src_stride_argb, ...@@ -1909,9 +1909,10 @@ static int ARGBSobelize(const uint8* src_argb, int src_stride_argb,
#endif #endif
// 3 rows with edges before/after. // 3 rows with edges before/after.
const int kRowSize = (width + kEdge + 15) & ~15; const int kRowSize = (width + kEdge + 15) & ~15;
align_buffer_64(row_y, kEdge + kRowSize * 3 + kEdge); align_buffer_64(rows, kRowSize * 2 + (kEdge + kRowSize * 3 + kEdge));
align_buffer_64(row_sobelx, width + kEdge); uint8* row_sobelx = rows;
align_buffer_64(row_sobely, width + kEdge); uint8* row_sobely = rows + kRowSize;
uint8* row_y = rows + kRowSize * 2;
// Convert first row. // Convert first row.
uint8* row_y0 = row_y + kEdge; uint8* row_y0 = row_y + kEdge;
...@@ -1946,9 +1947,7 @@ static int ARGBSobelize(const uint8* src_argb, int src_stride_argb, ...@@ -1946,9 +1947,7 @@ static int ARGBSobelize(const uint8* src_argb, int src_stride_argb,
dst_argb += dst_stride_argb; dst_argb += dst_stride_argb;
} }
free_aligned_buffer_64(row_y); free_aligned_buffer_64(rows);
free_aligned_buffer_64(row_sobelx);
free_aligned_buffer_64(row_sobely);
return 0; return 0;
} }
......
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