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 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1519 "lea " MEMLEA(0x8, [a_buf]) ",%[a_buf] \n" | 1519 "lea " MEMLEA(0x8, [a_buf]) ",%[a_buf] \n" |
1520 | 1520 |
1521 // Read 2 UV from 411, upsample to 8 UV. | 1521 // Read 2 UV from 411, upsample to 8 UV. |
1522 // reading 4 bytes is an msan violation. | 1522 // reading 4 bytes is an msan violation. |
1523 // "movd " MEMACCESS([u_buf]) ",%%xmm0 \n" | 1523 // "movd " MEMACCESS([u_buf]) ",%%xmm0 \n" |
1524 // MEMOPREG(movd, 0x00, [u_buf], [v_buf], 1, xmm1) | 1524 // MEMOPREG(movd, 0x00, [u_buf], [v_buf], 1, xmm1) |
1525 // pinsrw fails with drmemory | 1525 // pinsrw fails with drmemory |
1526 // __asm pinsrw xmm0, [esi], 0 /* U */ | 1526 // __asm pinsrw xmm0, [esi], 0 /* U */ |
1527 // __asm pinsrw xmm1, [esi + edi], 0 /* V */ | 1527 // __asm pinsrw xmm1, [esi + edi], 0 /* V */ |
1528 #define READYUV411_EBX \ | 1528 #define READYUV411_EBX \ |
1529 "movzw " MEMACCESS([u_buf]) ",%%ebx \n" \ | 1529 "movzwl " MEMACCESS([u_buf]) ",%%ebx \n" \ |
1530 "movd %%ebx,%%xmm0 \n" \ | 1530 "movd %%ebx,%%xmm0 \n" \ |
1531 MEMOPREG(movzw,0x00,[u_buf],[v_buf],1,ebx) " \n" \ | 1531 MEMOPREG(movzwl,0x00,[u_buf],[v_buf],1,ebx) " \n" \ |
1532 "movd %%ebx,%%xmm1 \n" \ | 1532 "movd %%ebx,%%xmm1 \n" \ |
1533 "lea " MEMLEA(0x2, [u_buf]) ",%[u_buf] \n" \ | 1533 "lea " MEMLEA(0x2, [u_buf]) ",%[u_buf] \n" \ |
1534 "punpcklbw %%xmm1,%%xmm0 \n" \ | 1534 "punpcklbw %%xmm1,%%xmm0 \n" \ |
1535 "punpcklwd %%xmm0,%%xmm0 \n" \ | 1535 "punpcklwd %%xmm0,%%xmm0 \n" \ |
1536 "punpckldq %%xmm0,%%xmm0 \n" \ | 1536 "punpckldq %%xmm0,%%xmm0 \n" \ |
1537 "movq " MEMACCESS([y_buf]) ",%%xmm4 \n" \ | 1537 "movq " MEMACCESS([y_buf]) ",%%xmm4 \n" \ |
1538 "punpcklbw %%xmm4,%%xmm4 \n" \ | 1538 "punpcklbw %%xmm4,%%xmm4 \n" \ |
1539 "lea " MEMLEA(0x8, [y_buf]) ",%[y_buf] \n" | 1539 "lea " MEMLEA(0x8, [y_buf]) ",%[y_buf] \n" |
1540 | 1540 |
1541 // Read 4 UV from NV12, upsample to 8 UV | 1541 // Read 4 UV from NV12, upsample to 8 UV |
(...skipping 3944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5486 ); | 5486 ); |
5487 } | 5487 } |
5488 #endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3 | 5488 #endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3 |
5489 | 5489 |
5490 #endif // defined(__x86_64__) || defined(__i386__) | 5490 #endif // defined(__x86_64__) || defined(__i386__) |
5491 | 5491 |
5492 #ifdef __cplusplus | 5492 #ifdef __cplusplus |
5493 } // extern "C" | 5493 } // extern "C" |
5494 } // namespace libyuv | 5494 } // namespace libyuv |
5495 #endif | 5495 #endif |
OLD | NEW |