Commit 1ff03571 authored by fbarchard@google.com's avatar fbarchard@google.com

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
parent 53a01667
Name: libyuv Name: libyuv
URL: http://code.google.com/p/libyuv/ URL: http://code.google.com/p/libyuv/
Version: 212 Version: 213
License: BSD License: BSD
License File: LICENSE License File: LICENSE
......
...@@ -133,6 +133,9 @@ int ARGBCopy(const uint8* src_argb, int src_stride_argb, ...@@ -133,6 +133,9 @@ int ARGBCopy(const uint8* src_argb, int src_stride_argb,
uint8* dst_argb, int dst_stride_argb, uint8* dst_argb, int dst_stride_argb,
int width, int height); int width, int height);
// Alpha Blend ARGB row of pixels
void ARGBBlendRow(const uint8* src_argb, uint8* dst_argb, int width);
// Alpha Blend ARGB // Alpha Blend ARGB
int ARGBBlend(const uint8* src_argb, int src_stride_argb, int ARGBBlend(const uint8* src_argb, int src_stride_argb,
uint8* dst_argb, int dst_stride_argb, uint8* dst_argb, int dst_stride_argb,
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ #ifndef INCLUDE_LIBYUV_VERSION_H_
#define INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 212 #define LIBYUV_VERSION 213
#endif // INCLUDE_LIBYUV_VERSION_H_ #endif // INCLUDE_LIBYUV_VERSION_H_
...@@ -140,6 +140,16 @@ int ARGBCopy(const uint8* src_argb, int src_stride_argb, ...@@ -140,6 +140,16 @@ int ARGBCopy(const uint8* src_argb, int src_stride_argb,
return 0; 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 // Alpha Blend ARGB
int ARGBBlend(const uint8* src_argb, int src_stride_argb, int ARGBBlend(const uint8* src_argb, int src_stride_argb,
......
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