OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |