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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 const uint8* src1_v, int src1_stride_v, | 440 const uint8* src1_v, int src1_stride_v, |
441 uint8* dst_y, int dst_stride_y, | 441 uint8* dst_y, int dst_stride_y, |
442 uint8* dst_u, int dst_stride_u, | 442 uint8* dst_u, int dst_stride_u, |
443 uint8* dst_v, int dst_stride_v, | 443 uint8* dst_v, int dst_stride_v, |
444 int width, int height, int interpolation); | 444 int width, int height, int interpolation); |
445 | 445 |
446 #if defined(__pnacl__) || defined(__CLR_VER) || \ | 446 #if defined(__pnacl__) || defined(__CLR_VER) || \ |
447 (defined(__i386__) && !defined(__SSE2__)) | 447 (defined(__i386__) && !defined(__SSE2__)) |
448 #define LIBYUV_DISABLE_X86 | 448 #define LIBYUV_DISABLE_X86 |
449 #endif | 449 #endif |
| 450 // MemorySanitizer does not support assembly code yet. http://crbug.com/344505 |
| 451 #if defined(__has_feature) |
| 452 #if __has_feature(memory_sanitizer) |
| 453 #define LIBYUV_DISABLE_X86 |
| 454 #endif |
| 455 #endif |
450 // The following are available on all x86 platforms: | 456 // The following are available on all x86 platforms: |
451 #if !defined(LIBYUV_DISABLE_X86) && \ | 457 #if !defined(LIBYUV_DISABLE_X86) && \ |
452 (defined(_M_IX86) || defined(__x86_64__) || defined(__i386__)) | 458 (defined(_M_IX86) || defined(__x86_64__) || defined(__i386__)) |
453 #define HAS_ARGBAFFINEROW_SSE2 | 459 #define HAS_ARGBAFFINEROW_SSE2 |
454 #endif | 460 #endif |
455 | 461 |
456 // Row function for copying pixels from a source with a slope to a row | 462 // Row function for copying pixels from a source with a slope to a row |
457 // of destination. Useful for scaling, rotation, mirror, texture mapping. | 463 // of destination. Useful for scaling, rotation, mirror, texture mapping. |
458 LIBYUV_API | 464 LIBYUV_API |
459 void ARGBAffineRow_C(const uint8* src_argb, int src_argb_stride, | 465 void ARGBAffineRow_C(const uint8* src_argb, int src_argb_stride, |
(...skipping 26 matching lines...) Expand all Loading... |
486 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb, | 492 int ARGBSobelXY(const uint8* src_argb, int src_stride_argb, |
487 uint8* dst_argb, int dst_stride_argb, | 493 uint8* dst_argb, int dst_stride_argb, |
488 int width, int height); | 494 int width, int height); |
489 | 495 |
490 #ifdef __cplusplus | 496 #ifdef __cplusplus |
491 } // extern "C" | 497 } // extern "C" |
492 } // namespace libyuv | 498 } // namespace libyuv |
493 #endif | 499 #endif |
494 | 500 |
495 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT | 501 #endif // INCLUDE_LIBYUV_PLANAR_FUNCTIONS_H_ NOLINT |
OLD | NEW |