| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 } | 258 } |
| 259 | 259 |
| 260 void I422ToRGBARow_NEON(const uint8* src_y, | 260 void I422ToRGBARow_NEON(const uint8* src_y, |
| 261 const uint8* src_u, | 261 const uint8* src_u, |
| 262 const uint8* src_v, | 262 const uint8* src_v, |
| 263 uint8* dst_rgba, | 263 uint8* dst_rgba, |
| 264 const struct YuvConstants* yuvconstants, | 264 const struct YuvConstants* yuvconstants, |
| 265 int width) { | 265 int width) { |
| 266 asm volatile ( | 266 asm volatile ( |
| 267 YUVTORGB_SETUP | 267 YUVTORGB_SETUP |
| 268 "vmov.u8 d19, #255 \n" | |
| 269 "1: \n" | 268 "1: \n" |
| 270 READYUV422 | 269 READYUV422 |
| 271 YUVTORGB | 270 YUVTORGB |
| 272 "subs %4, %4, #8 \n" | 271 "subs %4, %4, #8 \n" |
| 272 "vmov.u8 d19, #255 \n" // d19 modified by YUVTORGB |
| 273 MEMACCESS(3) | 273 MEMACCESS(3) |
| 274 "vst4.8 {d19, d20, d21, d22}, [%3]! \n" | 274 "vst4.8 {d19, d20, d21, d22}, [%3]! \n" |
| 275 "bgt 1b \n" | 275 "bgt 1b \n" |
| 276 : "+r"(src_y), // %0 | 276 : "+r"(src_y), // %0 |
| 277 "+r"(src_u), // %1 | 277 "+r"(src_u), // %1 |
| 278 "+r"(src_v), // %2 | 278 "+r"(src_v), // %2 |
| 279 "+r"(dst_rgba), // %3 | 279 "+r"(dst_rgba), // %3 |
| 280 "+r"(width) // %4 | 280 "+r"(width) // %4 |
| 281 : [kUVToRB]"r"(&yuvconstants->kUVToRB), | 281 : [kUVToRB]"r"(&yuvconstants->kUVToRB), |
| 282 [kUVToG]"r"(&yuvconstants->kUVToG), | 282 [kUVToG]"r"(&yuvconstants->kUVToG), |
| (...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2910 "r"(6) // %5 | 2910 "r"(6) // %5 |
| 2911 : "cc", "memory", "q0", "q1" // Clobber List | 2911 : "cc", "memory", "q0", "q1" // Clobber List |
| 2912 ); | 2912 ); |
| 2913 } | 2913 } |
| 2914 #endif // defined(__ARM_NEON__) && !defined(__aarch64__) | 2914 #endif // defined(__ARM_NEON__) && !defined(__aarch64__) |
| 2915 | 2915 |
| 2916 #ifdef __cplusplus | 2916 #ifdef __cplusplus |
| 2917 } // extern "C" | 2917 } // extern "C" |
| 2918 } // namespace libyuv | 2918 } // namespace libyuv |
| 2919 #endif | 2919 #endif |
| OLD | NEW |