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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 typedef uint32 uvec32[4]; | 410 typedef uint32 uvec32[4]; |
411 typedef uint8 uvec8[16]; | 411 typedef uint8 uvec8[16]; |
412 typedef int16 lvec16[16]; | 412 typedef int16 lvec16[16]; |
413 typedef int32 lvec32[8]; | 413 typedef int32 lvec32[8]; |
414 typedef int8 lvec8[32]; | 414 typedef int8 lvec8[32]; |
415 typedef uint16 ulvec16[16]; | 415 typedef uint16 ulvec16[16]; |
416 typedef uint32 ulvec32[8]; | 416 typedef uint32 ulvec32[8]; |
417 typedef uint8 ulvec8[32]; | 417 typedef uint8 ulvec8[32]; |
418 #endif | 418 #endif |
419 | 419 |
420 #if defined(__arm__) || defined(__aarch64__) | 420 #if defined(__aarch64__) |
421 | 421 // This struct is for Arm64 color conversion. |
422 // This struct is for Arm color conversion. | 422 struct YuvConstants { |
| 423 uvec16 kUVToRB; |
| 424 uvec16 kUVToRB2; |
| 425 uvec16 kUVToG; |
| 426 uvec16 kUVToG2; |
| 427 vec16 kUVBiasBGR; |
| 428 vec32 kYToRgb; |
| 429 }; |
| 430 #elif defined(__arm__) |
| 431 // This struct is for ArmV7 color conversion. |
423 struct YuvConstants { | 432 struct YuvConstants { |
424 uvec8 kUVToRB; | 433 uvec8 kUVToRB; |
425 uvec8 kUVToG; | 434 uvec8 kUVToG; |
426 vec16 kUVBiasBGR; | 435 vec16 kUVBiasBGR; |
427 vec32 kYToRgb; | 436 vec32 kYToRgb; |
428 }; | 437 }; |
429 | |
430 #else | 438 #else |
431 | |
432 // This struct is for Intel color conversion. | 439 // This struct is for Intel color conversion. |
433 struct YuvConstants { | 440 struct YuvConstants { |
434 lvec8 kUVToB; | 441 lvec8 kUVToB; |
435 lvec8 kUVToG; | 442 lvec8 kUVToG; |
436 lvec8 kUVToR; | 443 lvec8 kUVToR; |
437 lvec16 kUVBiasB; | 444 lvec16 kUVBiasB; |
438 lvec16 kUVBiasG; | 445 lvec16 kUVBiasG; |
439 lvec16 kUVBiasR; | 446 lvec16 kUVBiasR; |
440 lvec16 kYToRgb; | 447 lvec16 kYToRgb; |
441 }; | 448 }; |
(...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2142 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 2149 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
2143 int width, | 2150 int width, |
2144 const uint8* luma, uint32 lumacoeff); | 2151 const uint8* luma, uint32 lumacoeff); |
2145 | 2152 |
2146 #ifdef __cplusplus | 2153 #ifdef __cplusplus |
2147 } // extern "C" | 2154 } // extern "C" |
2148 } // namespace libyuv | 2155 } // namespace libyuv |
2149 #endif | 2156 #endif |
2150 | 2157 |
2151 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 2158 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
OLD | NEW |