Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: source/row_common.cc

Issue 1367093002: I420Alpha row function in 1 pass (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: bump version Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/row_any.cc ('k') | source/row_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/row_common.cc
diff --git a/source/row_common.cc b/source/row_common.cc
index 27a908d73348ac6351b945fd2d8e90eef84a70ed..3c025f1a43f80dd3a49b7f3a498326689f0db634 100644
--- a/source/row_common.cc
+++ b/source/row_common.cc
@@ -2412,6 +2412,29 @@ void I422ToRGB565Row_SSSE3(const uint8* src_y,
}
#endif
+void I422AlphaToARGBRow_C(const uint8* src_y,
+ const uint8* src_u,
+ const uint8* src_v,
+ const uint8* src_a,
+ uint8* dst_argb,
+ struct YuvConstants* yuvconstants,
+ int width) {
+
+ I422ToARGBRow_C(src_y, src_u, src_v, dst_argb, &kYuvConstants, width);
+ ARGBCopyYToAlphaRow_C(src_a, dst_argb, width);
+}
+
+void I422AlphaToABGRRow_C(const uint8* src_y,
+ const uint8* src_u,
+ const uint8* src_v,
+ const uint8* src_a,
+ uint8* dst_abgr,
+ struct YuvConstants* yuvconstants,
+ int width) {
+ I422ToABGRRow_C(src_y, src_u, src_v, dst_abgr, &kYuvConstants, width);
+ ARGBCopyYToAlphaRow_C(src_a, dst_abgr, width);
+}
+
#if defined(HAS_I422TOARGB1555ROW_SSSE3)
void I422ToARGB1555Row_SSSE3(const uint8* src_y,
const uint8* src_u,
« no previous file with comments | « source/row_any.cc ('k') | source/row_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698