| 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 2394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2405 ARGBToRGB565Row_SSE2(row, dst_rgb565, twidth); | 2405 ARGBToRGB565Row_SSE2(row, dst_rgb565, twidth); |
| 2406 src_y += twidth; | 2406 src_y += twidth; |
| 2407 src_u += twidth / 2; | 2407 src_u += twidth / 2; |
| 2408 src_v += twidth / 2; | 2408 src_v += twidth / 2; |
| 2409 dst_rgb565 += twidth * 2; | 2409 dst_rgb565 += twidth * 2; |
| 2410 width -= twidth; | 2410 width -= twidth; |
| 2411 } | 2411 } |
| 2412 } | 2412 } |
| 2413 #endif | 2413 #endif |
| 2414 | 2414 |
| 2415 void I422AlphaToARGBRow_C(const uint8* src_y, |
| 2416 const uint8* src_u, |
| 2417 const uint8* src_v, |
| 2418 const uint8* src_a, |
| 2419 uint8* dst_argb, |
| 2420 struct YuvConstants* yuvconstants, |
| 2421 int width) { |
| 2422 |
| 2423 I422ToARGBRow_C(src_y, src_u, src_v, dst_argb, &kYuvConstants, width); |
| 2424 ARGBCopyYToAlphaRow_C(src_a, dst_argb, width); |
| 2425 } |
| 2426 |
| 2427 void I422AlphaToABGRRow_C(const uint8* src_y, |
| 2428 const uint8* src_u, |
| 2429 const uint8* src_v, |
| 2430 const uint8* src_a, |
| 2431 uint8* dst_abgr, |
| 2432 struct YuvConstants* yuvconstants, |
| 2433 int width) { |
| 2434 I422ToABGRRow_C(src_y, src_u, src_v, dst_abgr, &kYuvConstants, width); |
| 2435 ARGBCopyYToAlphaRow_C(src_a, dst_abgr, width); |
| 2436 } |
| 2437 |
| 2415 #if defined(HAS_I422TOARGB1555ROW_SSSE3) | 2438 #if defined(HAS_I422TOARGB1555ROW_SSSE3) |
| 2416 void I422ToARGB1555Row_SSSE3(const uint8* src_y, | 2439 void I422ToARGB1555Row_SSSE3(const uint8* src_y, |
| 2417 const uint8* src_u, | 2440 const uint8* src_u, |
| 2418 const uint8* src_v, | 2441 const uint8* src_v, |
| 2419 uint8* dst_argb1555, | 2442 uint8* dst_argb1555, |
| 2420 struct YuvConstants* yuvconstants, | 2443 struct YuvConstants* yuvconstants, |
| 2421 int width) { | 2444 int width) { |
| 2422 // Row buffer for intermediate ARGB pixels. | 2445 // Row buffer for intermediate ARGB pixels. |
| 2423 SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); | 2446 SIMD_ALIGNED(uint8 row[MAXTWIDTH * 4]); |
| 2424 while (width > 0) { | 2447 while (width > 0) { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2604 dst_rgb565 += twidth * 2; | 2627 dst_rgb565 += twidth * 2; |
| 2605 width -= twidth; | 2628 width -= twidth; |
| 2606 } | 2629 } |
| 2607 } | 2630 } |
| 2608 #endif | 2631 #endif |
| 2609 | 2632 |
| 2610 #ifdef __cplusplus | 2633 #ifdef __cplusplus |
| 2611 } // extern "C" | 2634 } // extern "C" |
| 2612 } // namespace libyuv | 2635 } // namespace libyuv |
| 2613 #endif | 2636 #endif |
| OLD | NEW |