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:
fbarchard@google.com 2012-03-12 18:24:15 +00:00
parent 53a0166719
commit 1ff0357103
4 changed files with 15 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 212
Version: 213
License: BSD
License File: LICENSE

View File

@ -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,

View File

@ -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_

View File

@ -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,