| OLD | NEW |
| 1 // Copyright 2011 Google Inc. All Rights Reserved. | 1 // Copyright 2011 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license | 3 // Use of this source code is governed by a BSD-style license |
| 4 // that can be found in the COPYING file in the root of the source | 4 // that can be found in the COPYING file in the root of the source |
| 5 // tree. An additional intellectual property rights grant can be found | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may | 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. | 7 // be found in the AUTHORS file in the root of the source tree. |
| 8 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 9 // | 9 // |
| 10 // Speed-critical functions. | 10 // Speed-critical functions. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 #if defined(__SSE2__) || defined(WEBP_MSC_SSE2) | 31 #if defined(__SSE2__) || defined(WEBP_MSC_SSE2) |
| 32 #define WEBP_USE_SSE2 | 32 #define WEBP_USE_SSE2 |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 #if defined(__ANDROID__) && defined(__ARM_ARCH_7A__) | 35 #if defined(__ANDROID__) && defined(__ARM_ARCH_7A__) |
| 36 #define WEBP_ANDROID_NEON // Android targets that might support NEON | 36 #define WEBP_ANDROID_NEON // Android targets that might support NEON |
| 37 #endif | 37 #endif |
| 38 | 38 |
| 39 #if defined(__ARM_NEON__) || defined(WEBP_ANDROID_NEON) | 39 #if (defined(__ARM_NEON__) && !defined(__aarch64__)) || \ |
| 40 defined(WEBP_ANDROID_NEON) |
| 40 #define WEBP_USE_NEON | 41 #define WEBP_USE_NEON |
| 41 #endif | 42 #endif |
| 42 | 43 |
| 43 typedef enum { | 44 typedef enum { |
| 44 kSSE2, | 45 kSSE2, |
| 45 kSSE3, | 46 kSSE3, |
| 46 kNEON | 47 kNEON |
| 47 } CPUFeature; | 48 } CPUFeature; |
| 48 // returns true if the CPU supports the feature. | 49 // returns true if the CPU supports the feature. |
| 49 typedef int (*VP8CPUInfo)(CPUFeature feature); | 50 typedef int (*VP8CPUInfo)(CPUFeature feature); |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 void WebPInitPremultiplySSE2(void); // should not be called directly. | 216 void WebPInitPremultiplySSE2(void); // should not be called directly. |
| 216 void WebPInitPremultiplyNEON(void); | 217 void WebPInitPremultiplyNEON(void); |
| 217 | 218 |
| 218 //------------------------------------------------------------------------------ | 219 //------------------------------------------------------------------------------ |
| 219 | 220 |
| 220 #ifdef __cplusplus | 221 #ifdef __cplusplus |
| 221 } // extern "C" | 222 } // extern "C" |
| 222 #endif | 223 #endif |
| 223 | 224 |
| 224 #endif /* WEBP_DSP_DSP_H_ */ | 225 #endif /* WEBP_DSP_DSP_H_ */ |
| OLD | NEW |