| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef RGBAtoRGB_h |
| 6 #define RGBAtoRGB_h |
| 7 |
| 8 // TODO(cavalcantii): use regular macro, see https://crbug.com/673067. |
| 9 #ifdef __ARM_NEON__ |
| 10 #include <arm_neon.h> |
| 11 #define RGBAtoRGB RGBAtoRGBNeon |
| 12 #else |
| 13 #define RGBAtoRGB RGBAtoRGBScalar |
| 14 #endif |
| 15 |
| 16 #include "platform/PlatformExport.h" |
| 17 |
| 18 namespace blink { |
| 19 PLATFORM_EXPORT void RGBAtoRGBScalar(const unsigned char* pixels, |
| 20 unsigned pixelCount, |
| 21 unsigned char* output); |
| 22 #ifdef __ARM_NEON__ |
| 23 PLATFORM_EXPORT void RGBAtoRGBNeon(const unsigned char* input, |
| 24 const unsigned pixelCount, |
| 25 unsigned char* output); |
| 26 #endif |
| 27 |
| 28 } // namespace blink |
| 29 |
| 30 #endif |
| OLD | NEW |