| OLD | NEW |
| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 void (*MirrorRow)(const uint8* src, uint8* dst, int width) = MirrorRow_C; | 110 void (*MirrorRow)(const uint8* src, uint8* dst, int width) = MirrorRow_C; |
| 111 void (*CopyRow)(const uint8* src, uint8* dst, int width) = CopyRow_C; | 111 void (*CopyRow)(const uint8* src, uint8* dst, int width) = CopyRow_C; |
| 112 #if defined(HAS_MIRRORROW_NEON) | 112 #if defined(HAS_MIRRORROW_NEON) |
| 113 if (TestCpuFlag(kCpuHasNEON)) { | 113 if (TestCpuFlag(kCpuHasNEON)) { |
| 114 MirrorRow = MirrorRow_Any_NEON; | 114 MirrorRow = MirrorRow_Any_NEON; |
| 115 if (IS_ALIGNED(width, 16)) { | 115 if (IS_ALIGNED(width, 16)) { |
| 116 MirrorRow = MirrorRow_NEON; | 116 MirrorRow = MirrorRow_NEON; |
| 117 } | 117 } |
| 118 } | 118 } |
| 119 #endif | 119 #endif |
| 120 #if defined(HAS_MIRRORROW_SSE2) | |
| 121 if (TestCpuFlag(kCpuHasSSE2)) { | |
| 122 MirrorRow = MirrorRow_Any_SSE2; | |
| 123 if (IS_ALIGNED(width, 16)) { | |
| 124 MirrorRow = MirrorRow_SSE2; | |
| 125 } | |
| 126 } | |
| 127 #endif | |
| 128 #if defined(HAS_MIRRORROW_SSSE3) | 120 #if defined(HAS_MIRRORROW_SSSE3) |
| 129 if (TestCpuFlag(kCpuHasSSSE3)) { | 121 if (TestCpuFlag(kCpuHasSSSE3)) { |
| 130 MirrorRow = MirrorRow_Any_SSSE3; | 122 MirrorRow = MirrorRow_Any_SSSE3; |
| 131 if (IS_ALIGNED(width, 16)) { | 123 if (IS_ALIGNED(width, 16)) { |
| 132 MirrorRow = MirrorRow_SSSE3; | 124 MirrorRow = MirrorRow_SSSE3; |
| 133 } | 125 } |
| 134 } | 126 } |
| 135 #endif | 127 #endif |
| 136 #if defined(HAS_MIRRORROW_AVX2) | 128 #if defined(HAS_MIRRORROW_AVX2) |
| 137 if (TestCpuFlag(kCpuHasAVX2)) { | 129 if (TestCpuFlag(kCpuHasAVX2)) { |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 default: | 482 default: |
| 491 break; | 483 break; |
| 492 } | 484 } |
| 493 return -1; | 485 return -1; |
| 494 } | 486 } |
| 495 | 487 |
| 496 #ifdef __cplusplus | 488 #ifdef __cplusplus |
| 497 } // extern "C" | 489 } // extern "C" |
| 498 } // namespace libyuv | 490 } // namespace libyuv |
| 499 #endif | 491 #endif |
| OLD | NEW |