Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: source/row_gcc.cc

Issue 1368693002: fix nv12 offset (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: bump version Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/libyuv/version.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 "vpermq $0xd8,%%ymm0,%%ymm0 \n" \ 1834 "vpermq $0xd8,%%ymm0,%%ymm0 \n" \
1835 "vpunpcklwd %%ymm0,%%ymm0,%%ymm0 \n" \ 1835 "vpunpcklwd %%ymm0,%%ymm0,%%ymm0 \n" \
1836 "vmovdqu " MEMACCESS([y_buf]) ",%%xmm4 \n" \ 1836 "vmovdqu " MEMACCESS([y_buf]) ",%%xmm4 \n" \
1837 "vpermq $0xd8,%%ymm4,%%ymm4 \n" \ 1837 "vpermq $0xd8,%%ymm4,%%ymm4 \n" \
1838 "vpunpcklbw %%ymm4,%%ymm4,%%ymm4 \n" \ 1838 "vpunpcklbw %%ymm4,%%ymm4,%%ymm4 \n" \
1839 "lea " MEMLEA(0x10, [y_buf]) ",%[y_buf] \n" 1839 "lea " MEMLEA(0x10, [y_buf]) ",%[y_buf] \n"
1840 1840
1841 // Read 8 UV from NV12, upsample to 16 UV. 1841 // Read 8 UV from NV12, upsample to 16 UV.
1842 #define READNV12_AVX2 \ 1842 #define READNV12_AVX2 \
1843 "vmovdqu " MEMACCESS([uv_buf]) ",%%xmm0 \n" \ 1843 "vmovdqu " MEMACCESS([uv_buf]) ",%%xmm0 \n" \
1844 "lea " MEMLEA(0x16, [uv_buf]) ",%[uv_buf] \n" \ 1844 "lea " MEMLEA(0x10, [uv_buf]) ",%[uv_buf] \n" \
1845 "vpermq $0xd8,%%ymm0,%%ymm0 \n" \ 1845 "vpermq $0xd8,%%ymm0,%%ymm0 \n" \
1846 "vpunpcklwd %%ymm0,%%ymm0,%%ymm0 \n" \ 1846 "vpunpcklwd %%ymm0,%%ymm0,%%ymm0 \n" \
1847 "vmovdqu " MEMACCESS([y_buf]) ",%%xmm4 \n" \ 1847 "vmovdqu " MEMACCESS([y_buf]) ",%%xmm4 \n" \
1848 "vpermq $0xd8,%%ymm4,%%ymm4 \n" \ 1848 "vpermq $0xd8,%%ymm4,%%ymm4 \n" \
1849 "vpunpcklbw %%ymm4,%%ymm4,%%ymm4 \n" \ 1849 "vpunpcklbw %%ymm4,%%ymm4,%%ymm4 \n" \
1850 "lea " MEMLEA(0x10, [y_buf]) ",%[y_buf] \n" 1850 "lea " MEMLEA(0x10, [y_buf]) ",%[y_buf] \n"
1851 1851
1852 // Read 8 YUY2 with 16 Y and upsample 8 UV to 16 UV. 1852 // Read 8 YUY2 with 16 Y and upsample 8 UV to 16 UV.
1853 #define READYUY2_AVX2 \ 1853 #define READYUY2_AVX2 \
1854 "vmovdqu " MEMACCESS([yuy2_buf]) ",%%ymm4 \n" \ 1854 "vmovdqu " MEMACCESS([yuy2_buf]) ",%%ymm4 \n" \
(...skipping 3561 matching lines...) Expand 10 before | Expand all | Expand 10 after
5416 ); 5416 );
5417 } 5417 }
5418 #endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3 5418 #endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3
5419 5419
5420 #endif // defined(__x86_64__) || defined(__i386__) 5420 #endif // defined(__x86_64__) || defined(__i386__)
5421 5421
5422 #ifdef __cplusplus 5422 #ifdef __cplusplus
5423 } // extern "C" 5423 } // extern "C"
5424 } // namespace libyuv 5424 } // namespace libyuv
5425 #endif 5425 #endif
OLDNEW
« no previous file with comments | « include/libyuv/version.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698