mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
ARGBBlendRow to dispatch to sse2
BUG=none TEST=none Review URL: https://webrtc-codereview.appspot.com/447003 git-svn-id: http://libyuv.googlecode.com/svn/trunk@213 16f28f9a-4ce2-e073-06de-1de4eb20be90
This commit is contained in:
parent
53a0166719
commit
1ff0357103
@ -1,6 +1,6 @@
|
||||
Name: libyuv
|
||||
URL: http://code.google.com/p/libyuv/
|
||||
Version: 212
|
||||
Version: 213
|
||||
License: BSD
|
||||
License File: LICENSE
|
||||
|
||||
|
||||
@ -133,6 +133,9 @@ int ARGBCopy(const uint8* src_argb, int src_stride_argb,
|
||||
uint8* dst_argb, int dst_stride_argb,
|
||||
int width, int height);
|
||||
|
||||
// Alpha Blend ARGB row of pixels
|
||||
void ARGBBlendRow(const uint8* src_argb, uint8* dst_argb, int width);
|
||||
|
||||
// Alpha Blend ARGB
|
||||
int ARGBBlend(const uint8* src_argb, int src_stride_argb,
|
||||
uint8* dst_argb, int dst_stride_argb,
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#ifndef INCLUDE_LIBYUV_VERSION_H_
|
||||
#define INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
#define LIBYUV_VERSION 212
|
||||
#define LIBYUV_VERSION 213
|
||||
|
||||
#endif // INCLUDE_LIBYUV_VERSION_H_
|
||||
|
||||
|
||||
@ -140,6 +140,16 @@ int ARGBCopy(const uint8* src_argb, int src_stride_argb,
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Alpha Blend ARGB
|
||||
void ARGBBlendRow(const uint8* src_argb, uint8* dst_argb, int width) {
|
||||
#if defined(HAS_ARGBBLENDROW_SSE2)
|
||||
if (TestCpuFlag(kCpuHasSSE2)) {
|
||||
ARGBBlendRow_SSE2(src_argb, dst_argb, width);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
ARGBBlendRow_C(src_argb, dst_argb, width);
|
||||
}
|
||||
|
||||
// Alpha Blend ARGB
|
||||
int ARGBBlend(const uint8* src_argb, int src_stride_argb,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user