mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 09:16:48 +08:00
mips optimized copy for all functions using CopyRows.
BUG=176 TEST=try bots Review URL: https://webrtc-codereview.appspot.com/1074010 git-svn-id: http://libyuv.googlecode.com/svn/trunk@556 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
d7c7bfac57
commit
92352b7081
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 555
|
Version: 556
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -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 555
|
#define LIBYUV_VERSION 556
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -310,6 +310,11 @@ static void CopyPlane2(const uint8* src, int src_stride_0, int src_stride_1,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(HAS_COPYROW_MIPS)
|
||||||
|
if (TestCpuFlag(kCpuHasMIPS)) {
|
||||||
|
CopyRow = CopyRow_MIPS;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Copy plane
|
// Copy plane
|
||||||
for (int y = 0; y < height - 1; y += 2) {
|
for (int y = 0; y < height - 1; y += 2) {
|
||||||
@ -514,6 +519,11 @@ int Q420ToI420(const uint8* src_y, int src_stride_y,
|
|||||||
CopyRow = CopyRow_SSE2;
|
CopyRow = CopyRow_SSE2;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(HAS_COPYROW_MIPS)
|
||||||
|
if (TestCpuFlag(kCpuHasMIPS)) {
|
||||||
|
CopyRow = CopyRow_MIPS;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void (*YUY2ToUV422Row)(const uint8* src_yuy2, uint8* dst_u, uint8* dst_v,
|
void (*YUY2ToUV422Row)(const uint8* src_yuy2, uint8* dst_u, uint8* dst_v,
|
||||||
int pix) = YUY2ToUV422Row_C;
|
int pix) = YUY2ToUV422Row_C;
|
||||||
|
|||||||
@ -68,6 +68,11 @@ int I420ToI422(const uint8* src_y, int src_stride_y,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(HAS_COPYROW_MIPS)
|
||||||
|
if (TestCpuFlag(kCpuHasMIPS)) {
|
||||||
|
CopyRow = CopyRow_MIPS;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Copy Y plane
|
// Copy Y plane
|
||||||
if (dst_y) {
|
if (dst_y) {
|
||||||
|
|||||||
@ -906,6 +906,11 @@ void RotatePlane180(const uint8* src, int src_stride,
|
|||||||
IS_ALIGNED(dst, 16) && IS_ALIGNED(dst_stride, 16)) {
|
IS_ALIGNED(dst, 16) && IS_ALIGNED(dst_stride, 16)) {
|
||||||
CopyRow = CopyRow_SSE2;
|
CopyRow = CopyRow_SSE2;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#if defined(HAS_COPYROW_MIPS)
|
||||||
|
if (TestCpuFlag(kCpuHasMIPS)) {
|
||||||
|
CopyRow = CopyRow_MIPS;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (width > kMaxStride) {
|
if (width > kMaxStride) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -120,6 +120,11 @@ void ARGBRotate180(const uint8* src, int src_stride,
|
|||||||
IS_ALIGNED(dst, 16) && IS_ALIGNED(dst_stride, 16)) {
|
IS_ALIGNED(dst, 16) && IS_ALIGNED(dst_stride, 16)) {
|
||||||
CopyRow = CopyRow_SSE2;
|
CopyRow = CopyRow_SSE2;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#if defined(HAS_COPYROW_MIPS)
|
||||||
|
if (TestCpuFlag(kCpuHasMIPS)) {
|
||||||
|
CopyRow = CopyRow_MIPS;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (width * 4 > kMaxStride) {
|
if (width * 4 > kMaxStride) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user