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

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
parent b3c1a3fe
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)) {
......
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