mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-08 01:36:47 +08:00
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
This commit is contained in:
parent
49db7b7e4a
commit
a12284b906
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 930
|
||||
Version: 931
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 930
|
||||
#define LIBYUV_VERSION 931
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||
|
||||
@ -1909,9 +1909,10 @@ static int ARGBSobelize(const uint8* src_argb, int src_stride_argb,
|
||||
#endif
|
||||
// 3 rows with edges before/after.
|
||||
const int kRowSize = (width + kEdge + 15) & ~15;
|
||||
align_buffer_64(row_y, kEdge + kRowSize * 3 + kEdge);
|
||||
align_buffer_64(row_sobelx, width + kEdge);
|
||||
align_buffer_64(row_sobely, width + kEdge);
|
||||
align_buffer_64(rows, kRowSize * 2 + (kEdge + kRowSize * 3 + kEdge));
|
||||
uint8* row_sobelx = rows;
|
||||
uint8* row_sobely = rows + kRowSize;
|
||||
uint8* row_y = rows + kRowSize * 2;
|
||||
|
||||
// Convert first row.
|
||||
uint8* row_y0 = row_y + kEdge;
|
||||
@ -1946,9 +1947,7 @@ static int ARGBSobelize(const uint8* src_argb, int src_stride_argb,
|
||||
|
||||
dst_argb += dst_stride_argb;
|
||||
}
|
||||
free_aligned_buffer_64(row_y);
|
||||
free_aligned_buffer_64(row_sobelx);
|
||||
free_aligned_buffer_64(row_sobely);
|
||||
free_aligned_buffer_64(rows);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user