Chromium Code Reviews| 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 453 // Offsets into YuvConstants structure | 453 // Offsets into YuvConstants structure |
| 454 #define KUVTOB 0 | 454 #define KUVTOB 0 |
| 455 #define KUVTOG 32 | 455 #define KUVTOG 32 |
| 456 #define KUVTOR 64 | 456 #define KUVTOR 64 |
| 457 #define KUVBIASB 96 | 457 #define KUVBIASB 96 |
| 458 #define KUVBIASG 128 | 458 #define KUVBIASG 128 |
| 459 #define KUVBIASR 160 | 459 #define KUVBIASR 160 |
| 460 #define KYTORGB 192 | 460 #define KYTORGB 192 |
| 461 #endif | 461 #endif |
| 462 | 462 |
| 463 #if defined(__aarch64__) || defined(__arm__) | |
| 463 // Conversion matrix for YUV to RGB | 464 // Conversion matrix for YUV to RGB |
| 464 extern const struct YuvConstants kYuvI601Constants; // BT.601 | 465 extern const struct YuvConstants SIMD_ALIGNED(kYuvI601Constants); // BT.601 |
|
skal
2016/08/30 05:03:14
why is there two difference macros (SIMD_ALIGNED /
fbarchard1
2016/08/30 17:52:59
Done.
| |
| 465 extern const struct YuvConstants kYuvJPEGConstants; // JPeg color space | 466 extern const struct YuvConstants SIMD_ALIGNED(kYuvJPEGConstants); // JPeg |
| 466 extern const struct YuvConstants kYuvH709Constants; // BT.709 | 467 extern const struct YuvConstants SIMD_ALIGNED(kYuvH709Constants); // BT.709 |
| 467 | 468 |
| 468 // Conversion matrix for YVU to BGR | 469 // Conversion matrix for YVU to BGR |
| 469 extern const struct YuvConstants kYvuI601Constants; // BT.601 | 470 extern const struct YuvConstants SIMD_ALIGNED(kYvuI601Constants); // BT.601 |
| 470 extern const struct YuvConstants kYvuJPEGConstants; // JPeg color space | 471 extern const struct YuvConstants SIMD_ALIGNED(kYvuJPEGConstants); // JPeg |
| 471 extern const struct YuvConstants kYvuH709Constants; // BT.709 | 472 extern const struct YuvConstants SIMD_ALIGNED(kYvuH709Constants); // BT.709 |
| 473 #else // intel etc. | |
| 474 // Conversion matrix for YUV to RGB | |
| 475 extern const struct YuvConstants SIMD_ALIGNED32(kYuvI601Constants); // BT.601 | |
| 476 extern const struct YuvConstants SIMD_ALIGNED32(kYuvJPEGConstants); // JPeg | |
| 477 extern const struct YuvConstants SIMD_ALIGNED32(kYuvH709Constants); // BT.709 | |
| 478 | |
| 479 // Conversion matrix for YVU to BGR | |
| 480 extern const struct YuvConstants SIMD_ALIGNED32(kYvuI601Constants); // BT.601 | |
| 481 extern const struct YuvConstants SIMD_ALIGNED32(kYvuJPEGConstants); // JPeg | |
| 482 extern const struct YuvConstants SIMD_ALIGNED32(kYvuH709Constants); // BT.709 | |
| 483 #endif | |
| 472 | 484 |
| 473 #if defined(__APPLE__) || defined(__x86_64__) || defined(__llvm__) | 485 #if defined(__APPLE__) || defined(__x86_64__) || defined(__llvm__) |
| 474 #define OMITFP | 486 #define OMITFP |
| 475 #else | 487 #else |
| 476 #define OMITFP __attribute__((optimize("omit-frame-pointer"))) | 488 #define OMITFP __attribute__((optimize("omit-frame-pointer"))) |
| 477 #endif | 489 #endif |
| 478 | 490 |
| 479 // NaCL macros for GCC x86 and x64. | 491 // NaCL macros for GCC x86 and x64. |
| 480 #if defined(__native_client__) | 492 #if defined(__native_client__) |
| 481 #define LABELALIGN ".p2align 5\n" | 493 #define LABELALIGN ".p2align 5\n" |
| (...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1930 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1942 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
| 1931 int width, | 1943 int width, |
| 1932 const uint8* luma, uint32 lumacoeff); | 1944 const uint8* luma, uint32 lumacoeff); |
| 1933 | 1945 |
| 1934 #ifdef __cplusplus | 1946 #ifdef __cplusplus |
| 1935 } // extern "C" | 1947 } // extern "C" |
| 1936 } // namespace libyuv | 1948 } // namespace libyuv |
| 1937 #endif | 1949 #endif |
| 1938 | 1950 |
| 1939 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 1951 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
| OLD | NEW |