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

Side by Side Diff: source/planar_functions.cc

Issue 1513183004: use rounding in scaledown by 2 (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: corrected version to 1554 Created 5 years 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') | source/scale.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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 } 692 }
693 #endif 693 #endif
694 #if defined(HAS_SCALEROWDOWN2_NEON) 694 #if defined(HAS_SCALEROWDOWN2_NEON)
695 if (TestCpuFlag(kCpuHasNEON)) { 695 if (TestCpuFlag(kCpuHasNEON)) {
696 ScaleRowDown2 = ScaleRowDown2Box_Any_NEON; 696 ScaleRowDown2 = ScaleRowDown2Box_Any_NEON;
697 if (IS_ALIGNED(halfwidth, 16)) { 697 if (IS_ALIGNED(halfwidth, 16)) {
698 ScaleRowDown2 = ScaleRowDown2Box_NEON; 698 ScaleRowDown2 = ScaleRowDown2Box_NEON;
699 } 699 }
700 } 700 }
701 #endif 701 #endif
702 #if defined(HAS_SCALEROWDOWN2_SSE2) 702 #if defined(HAS_SCALEROWDOWN2_SSSE3)
703 if (TestCpuFlag(kCpuHasSSE2)) { 703 if (TestCpuFlag(kCpuHasSSSE3)) {
704 ScaleRowDown2 = ScaleRowDown2Box_Any_SSE2; 704 ScaleRowDown2 = ScaleRowDown2Box_Any_SSSE3;
705 if (IS_ALIGNED(halfwidth, 16)) { 705 if (IS_ALIGNED(halfwidth, 16)) {
706 ScaleRowDown2 = ScaleRowDown2Box_SSE2; 706 ScaleRowDown2 = ScaleRowDown2Box_SSSE3;
707 } 707 }
708 } 708 }
709 #endif 709 #endif
710 #if defined(HAS_SCALEROWDOWN2_AVX2) 710 #if defined(HAS_SCALEROWDOWN2_AVX2)
711 if (TestCpuFlag(kCpuHasAVX2)) { 711 if (TestCpuFlag(kCpuHasAVX2)) {
712 ScaleRowDown2 = ScaleRowDown2Box_Any_AVX2; 712 ScaleRowDown2 = ScaleRowDown2Box_Any_AVX2;
713 if (IS_ALIGNED(halfwidth, 32)) { 713 if (IS_ALIGNED(halfwidth, 32)) {
714 ScaleRowDown2 = ScaleRowDown2Box_AVX2; 714 ScaleRowDown2 = ScaleRowDown2Box_AVX2;
715 } 715 }
716 } 716 }
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
2625 } 2625 }
2626 free_aligned_buffer_64(rows); 2626 free_aligned_buffer_64(rows);
2627 } 2627 }
2628 return 0; 2628 return 0;
2629 } 2629 }
2630 2630
2631 #ifdef __cplusplus 2631 #ifdef __cplusplus
2632 } // extern "C" 2632 } // extern "C"
2633 } // namespace libyuv 2633 } // namespace libyuv
2634 #endif 2634 #endif
OLDNEW
« no previous file with comments | « include/libyuv/version.h ('k') | source/scale.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698