| OLD | NEW |
| 1 // VERSION 2 | 1 // VERSION 2 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 3 * Copyright 2011 The LibYuv Project Authors. All rights reserved. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license | 5 * Use of this source code is governed by a BSD-style license |
| 6 * that can be found in the LICENSE file in the root of the source | 6 * that can be found in the LICENSE file in the root of the source |
| 7 * tree. An additional intellectual property rights grant can be found | 7 * tree. An additional intellectual property rights grant can be found |
| 8 * in the file PATENTS. All contributing project authors may | 8 * in the file PATENTS. All contributing project authors may |
| 9 * be found in the AUTHORS file in the root of the source tree. | 9 * be found in the AUTHORS file in the root of the source tree. |
| 10 */ | 10 */ |
| (...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 [u_buf]"+r"(u_buf), // %[u_buf] | 1612 [u_buf]"+r"(u_buf), // %[u_buf] |
| 1613 [v_buf]"+r"(v_buf), // %[v_buf] | 1613 [v_buf]"+r"(v_buf), // %[v_buf] |
| 1614 [dst_argb]"+r"(dst_argb), // %[dst_argb] | 1614 [dst_argb]"+r"(dst_argb), // %[dst_argb] |
| 1615 [width]"+rm"(width) // %[width] | 1615 [width]"+rm"(width) // %[width] |
| 1616 : [yuvconstants]"r"(yuvconstants) // %[yuvconstants] | 1616 : [yuvconstants]"r"(yuvconstants) // %[yuvconstants] |
| 1617 : "memory", "cc", NACL_R14 | 1617 : "memory", "cc", NACL_R14 |
| 1618 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5" | 1618 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5" |
| 1619 ); | 1619 ); |
| 1620 } | 1620 } |
| 1621 | 1621 |
| 1622 void OMITFP I444ToABGRRow_SSSE3(const uint8* y_buf, | |
| 1623 const uint8* u_buf, | |
| 1624 const uint8* v_buf, | |
| 1625 uint8* dst_abgr, | |
| 1626 const struct YuvConstants* yuvconstants, | |
| 1627 int width) { | |
| 1628 asm volatile ( | |
| 1629 "sub %[u_buf],%[v_buf] \n" | |
| 1630 "pcmpeqb %%xmm5,%%xmm5 \n" | |
| 1631 LABELALIGN | |
| 1632 "1: \n" | |
| 1633 READYUV444 | |
| 1634 YUVTORGB(yuvconstants) | |
| 1635 STOREABGR | |
| 1636 "sub $0x8,%[width] \n" | |
| 1637 "jg 1b \n" | |
| 1638 : [y_buf]"+r"(y_buf), // %[y_buf] | |
| 1639 [u_buf]"+r"(u_buf), // %[u_buf] | |
| 1640 [v_buf]"+r"(v_buf), // %[v_buf] | |
| 1641 [dst_abgr]"+r"(dst_abgr), // %[dst_abgr] | |
| 1642 [width]"+rm"(width) // %[width] | |
| 1643 : [yuvconstants]"r"(yuvconstants) // %[yuvconstants] | |
| 1644 : "memory", "cc", NACL_R14 | |
| 1645 "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5" | |
| 1646 ); | |
| 1647 } | |
| 1648 | |
| 1649 void OMITFP I422ToRGB24Row_SSSE3(const uint8* y_buf, | 1622 void OMITFP I422ToRGB24Row_SSSE3(const uint8* y_buf, |
| 1650 const uint8* u_buf, | 1623 const uint8* u_buf, |
| 1651 const uint8* v_buf, | 1624 const uint8* v_buf, |
| 1652 uint8* dst_rgb24, | 1625 uint8* dst_rgb24, |
| 1653 const struct YuvConstants* yuvconstants, | 1626 const struct YuvConstants* yuvconstants, |
| 1654 int width) { | 1627 int width) { |
| 1655 asm volatile ( | 1628 asm volatile ( |
| 1656 "movdqa %[kShuffleMaskARGBToRGB24_0],%%xmm5 \n" | 1629 "movdqa %[kShuffleMaskARGBToRGB24_0],%%xmm5 \n" |
| 1657 "movdqa %[kShuffleMaskARGBToRGB24],%%xmm6 \n" | 1630 "movdqa %[kShuffleMaskARGBToRGB24],%%xmm6 \n" |
| 1658 "sub %[u_buf],%[v_buf] \n" | 1631 "sub %[u_buf],%[v_buf] \n" |
| (...skipping 3927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5586 ); | 5559 ); |
| 5587 } | 5560 } |
| 5588 #endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3 | 5561 #endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3 |
| 5589 | 5562 |
| 5590 #endif // defined(__x86_64__) || defined(__i386__) | 5563 #endif // defined(__x86_64__) || defined(__i386__) |
| 5591 | 5564 |
| 5592 #ifdef __cplusplus | 5565 #ifdef __cplusplus |
| 5593 } // extern "C" | 5566 } // extern "C" |
| 5594 } // namespace libyuv | 5567 } // namespace libyuv |
| 5595 #endif | 5568 #endif |
| OLD | NEW |