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

Side by Side Diff: source/planar_functions.cc

Issue 2387713002: HalfFloat_SSE2 for Visual C (Closed)
Patch Set: planar functions sse2 only Created 4 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/row.h ('k') | source/row_gcc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 } 2479 }
2480 #endif 2480 #endif
2481 #if defined(HAS_HALFFLOATROW_AVX2) 2481 #if defined(HAS_HALFFLOATROW_AVX2)
2482 if (TestCpuFlag(kCpuHasAVX2)) { 2482 if (TestCpuFlag(kCpuHasAVX2)) {
2483 HalfFloatRow = HalfFloatRow_Any_AVX2; 2483 HalfFloatRow = HalfFloatRow_Any_AVX2;
2484 if (IS_ALIGNED(width, 16)) { 2484 if (IS_ALIGNED(width, 16)) {
2485 HalfFloatRow = HalfFloatRow_AVX2; 2485 HalfFloatRow = HalfFloatRow_AVX2;
2486 } 2486 }
2487 } 2487 }
2488 #endif 2488 #endif
2489 #if defined(HAS_HALFFLOATROW_AVX)
2490 if (TestCpuFlag(kCpuHasAVX)) {
2491 // HalfFloatRow = HalfFloatRow_Any_AVX2;
2492 if (IS_ALIGNED(width, 16)) {
2493 HalfFloatRow = HalfFloatRow_AVX;
2494 }
2495 }
2496 #endif
2497
2498 for (y = 0; y < height; ++y) { 2489 for (y = 0; y < height; ++y) {
2499 HalfFloatRow(src_y, dst_y, scale, width); 2490 HalfFloatRow(src_y, dst_y, scale, width);
2500 src_y += src_stride_y; 2491 src_y += src_stride_y;
2501 dst_y += dst_stride_y; 2492 dst_y += dst_stride_y;
2502 } 2493 }
2503 return 0; 2494 return 0;
2504 } 2495 }
2505 2496
2506 // Apply a lumacolortable to each ARGB pixel. 2497 // Apply a lumacolortable to each ARGB pixel.
2507 LIBYUV_API 2498 LIBYUV_API
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2880 } 2871 }
2881 free_aligned_buffer_64(rows); 2872 free_aligned_buffer_64(rows);
2882 } 2873 }
2883 return 0; 2874 return 0;
2884 } 2875 }
2885 2876
2886 #ifdef __cplusplus 2877 #ifdef __cplusplus
2887 } // extern "C" 2878 } // extern "C"
2888 } // namespace libyuv 2879 } // namespace libyuv
2889 #endif 2880 #endif
OLDNEW
« no previous file with comments | « include/libyuv/row.h ('k') | source/row_gcc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698