mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
CopyPlane check for contiguous memory and treat image as width * height, 1 image.
BUG=176 TEST=I420ToI420 Review URL: https://webrtc-codereview.appspot.com/1021014 git-svn-id: http://libyuv.googlecode.com/svn/trunk@538 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
b3c1a3fe79
commit
ba45bbff34
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 537
|
||||
Version: 538
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -11,6 +11,6 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 537
|
||||
#define LIBYUV_VERSION 538
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||
|
||||
@ -28,6 +28,11 @@ LIBYUV_API
|
||||
void CopyPlane(const uint8* src_y, int src_stride_y,
|
||||
uint8* dst_y, int dst_stride_y,
|
||||
int width, int height) {
|
||||
if (src_stride_y == width && dst_stride_y == width) {
|
||||
CopyPlane(src_y, 0, dst_y, 0, width * height, 1);
|
||||
return;
|
||||
}
|
||||
|
||||
void (*CopyRow)(const uint8* src, uint8* dst, int width) = CopyRow_C;
|
||||
#if defined(HAS_COPYROW_NEON)
|
||||
if (TestCpuFlag(kCpuHasNEON) && IS_ALIGNED(width, 32)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user