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

Side by Side Diff: include/libyuv/planar_functions.h

Issue 1995293002: Add ARGBExtractAlpha function (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Use packuswb xmm0, xmm0 instead Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | include/libyuv/row.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 int ARGBCopy(const uint8* src_argb, int src_stride_argb, 281 int ARGBCopy(const uint8* src_argb, int src_stride_argb,
282 uint8* dst_argb, int dst_stride_argb, 282 uint8* dst_argb, int dst_stride_argb,
283 int width, int height); 283 int width, int height);
284 284
285 // Copy Alpha channel of ARGB to alpha of ARGB. 285 // Copy Alpha channel of ARGB to alpha of ARGB.
286 LIBYUV_API 286 LIBYUV_API
287 int ARGBCopyAlpha(const uint8* src_argb, int src_stride_argb, 287 int ARGBCopyAlpha(const uint8* src_argb, int src_stride_argb,
288 uint8* dst_argb, int dst_stride_argb, 288 uint8* dst_argb, int dst_stride_argb,
289 int width, int height); 289 int width, int height);
290 290
291 // Extract the alpha channel from ARGB.
292 LIBYUV_API
293 int ARGBExtractAlpha(const uint8* src_argb, int src_stride_argb,
294 uint8* dst_a, int dst_stride_a,
295 int width, int height);
296
291 // Copy Y channel to Alpha of ARGB. 297 // Copy Y channel to Alpha of ARGB.
292 LIBYUV_API 298 LIBYUV_API
293 int ARGBCopyYToAlpha(const uint8* src_y, int src_stride_y, 299 int ARGBCopyYToAlpha(const uint8* src_y, int src_stride_y,
294 uint8* dst_argb, int dst_stride_argb, 300 uint8* dst_argb, int dst_stride_argb,
295 int width, int height); 301 int width, int height);
296 302
297 typedef void (*ARGBBlendRow)(const uint8* src_argb0, const uint8* src_argb1, 303 typedef void (*ARGBBlendRow)(const uint8* src_argb0, const uint8* src_argb1,
298 uint8* dst_argb, int width); 304 uint8* dst_argb, int width);
299 305
300 // Get function to Alpha Blend ARGB pixels and store to destination. 306 // Get function to Alpha Blend ARGB pixels and store to destination.
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb, 498 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb,
493 uint8* dst_argb, int dst_stride_argb, 499 uint8* dst_argb, int dst_stride_argb,
494 int width, int height); 500 int width, int height);
495 501
496 #ifdef __cplusplus 502 #ifdef __cplusplus
497 } // extern "C" 503 } // extern "C"
498 } // namespace libyuv 504 } // namespace libyuv
499 #endif 505 #endif
500 506
501 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT 507 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT
OLDNEW
« no previous file with comments | « no previous file | include/libyuv/row.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698