| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 "+r"(width) // %4 | 248 "+r"(width) // %4 |
| 249 : [kUVToRB]"r"(&yuvconstants->kUVToRB), | 249 : [kUVToRB]"r"(&yuvconstants->kUVToRB), |
| 250 [kUVToG]"r"(&yuvconstants->kUVToG), | 250 [kUVToG]"r"(&yuvconstants->kUVToG), |
| 251 [kUVBiasBGR]"r"(&yuvconstants->kUVBiasBGR), | 251 [kUVBiasBGR]"r"(&yuvconstants->kUVBiasBGR), |
| 252 [kYToRgb]"r"(&yuvconstants->kYToRgb) | 252 [kYToRgb]"r"(&yuvconstants->kYToRgb) |
| 253 : "cc", "memory", "q0", "q1", "q2", "q3", "q4", | 253 : "cc", "memory", "q0", "q1", "q2", "q3", "q4", |
| 254 "q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15" | 254 "q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15" |
| 255 ); | 255 ); |
| 256 } | 256 } |
| 257 | 257 |
| 258 void I422ToABGRRow_NEON(const uint8* src_y, | |
| 259 const uint8* src_u, | |
| 260 const uint8* src_v, | |
| 261 uint8* dst_abgr, | |
| 262 const struct YuvConstants* yuvconstants, | |
| 263 int width) { | |
| 264 asm volatile ( | |
| 265 YUVTORGB_SETUP | |
| 266 "1: \n" | |
| 267 READYUV422 | |
| 268 YUVTORGB | |
| 269 "subs %4, %4, #8 \n" | |
| 270 "vswp.u8 d20, d22 \n" | |
| 271 "vmov.u8 d23, #255 \n" | |
| 272 MEMACCESS(3) | |
| 273 "vst4.8 {d20, d21, d22, d23}, [%3]! \n" | |
| 274 "bgt 1b \n" | |
| 275 : "+r"(src_y), // %0 | |
| 276 "+r"(src_u), // %1 | |
| 277 "+r"(src_v), // %2 | |
| 278 "+r"(dst_abgr), // %3 | |
| 279 "+r"(width) // %4 | |
| 280 : [kUVToRB]"r"(&yuvconstants->kUVToRB), | |
| 281 [kUVToG]"r"(&yuvconstants->kUVToG), | |
| 282 [kUVBiasBGR]"r"(&yuvconstants->kUVBiasBGR), | |
| 283 [kYToRgb]"r"(&yuvconstants->kYToRgb) | |
| 284 : "cc", "memory", "q0", "q1", "q2", "q3", "q4", | |
| 285 "q8", "q9", "q10", "q11", "q12", "q13", "q14", "q15" | |
| 286 ); | |
| 287 } | |
| 288 | |
| 289 void I422ToRGBARow_NEON(const uint8* src_y, | 258 void I422ToRGBARow_NEON(const uint8* src_y, |
| 290 const uint8* src_u, | 259 const uint8* src_u, |
| 291 const uint8* src_v, | 260 const uint8* src_v, |
| 292 uint8* dst_rgba, | 261 uint8* dst_rgba, |
| 293 const struct YuvConstants* yuvconstants, | 262 const struct YuvConstants* yuvconstants, |
| 294 int width) { | 263 int width) { |
| 295 asm volatile ( | 264 asm volatile ( |
| 296 YUVTORGB_SETUP | 265 YUVTORGB_SETUP |
| 297 "1: \n" | 266 "1: \n" |
| 298 READYUV422 | 267 READYUV422 |
| (...skipping 2652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2951 "r"(6) // %5 | 2920 "r"(6) // %5 |
| 2952 : "cc", "memory", "q0", "q1" // Clobber List | 2921 : "cc", "memory", "q0", "q1" // Clobber List |
| 2953 ); | 2922 ); |
| 2954 } | 2923 } |
| 2955 #endif // defined(__ARM_NEON__) && !defined(__aarch64__) | 2924 #endif // defined(__ARM_NEON__) && !defined(__aarch64__) |
| 2956 | 2925 |
| 2957 #ifdef __cplusplus | 2926 #ifdef __cplusplus |
| 2958 } // extern "C" | 2927 } // extern "C" |
| 2959 } // namespace libyuv | 2928 } // namespace libyuv |
| 2960 #endif | 2929 #endif |
| OLD | NEW |