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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 // This struct is for ArmV7 color conversion. | 434 // This struct is for ArmV7 color conversion. |
435 struct YuvConstants { | 435 struct YuvConstants { |
436 uvec8 kUVToRB; | 436 uvec8 kUVToRB; |
437 uvec8 kUVToG; | 437 uvec8 kUVToG; |
438 vec16 kUVBiasBGR; | 438 vec16 kUVBiasBGR; |
439 vec32 kYToRgb; | 439 vec32 kYToRgb; |
440 }; | 440 }; |
441 #else | 441 #else |
442 // This struct is for Intel color conversion. | 442 // This struct is for Intel color conversion. |
443 struct YuvConstants { | 443 struct YuvConstants { |
444 lvec8 kUVToB; | 444 int8 kUVToB[32]; |
445 lvec8 kUVToG; | 445 int8 kUVToG[32]; |
446 lvec8 kUVToR; | 446 int8 kUVToR[32]; |
447 lvec16 kUVBiasB; | 447 int16 kUVBiasB[16]; |
448 lvec16 kUVBiasG; | 448 int16 kUVBiasG[16]; |
449 lvec16 kUVBiasR; | 449 int16 kUVBiasR[16]; |
450 lvec16 kYToRgb; | 450 int16 kYToRgb[16]; |
451 }; | 451 }; |
452 | 452 |
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 |
(...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1930 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1930 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
1931 int width, | 1931 int width, |
1932 const uint8* luma, uint32 lumacoeff); | 1932 const uint8* luma, uint32 lumacoeff); |
1933 | 1933 |
1934 #ifdef __cplusplus | 1934 #ifdef __cplusplus |
1935 } // extern "C" | 1935 } // extern "C" |
1936 } // namespace libyuv | 1936 } // namespace libyuv |
1937 #endif | 1937 #endif |
1938 | 1938 |
1939 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 1939 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
OLD | NEW |