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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 } | 296 } |
297 #endif | 297 #endif |
298 #if defined(HAS_SPLITUVROW_NEON) | 298 #if defined(HAS_SPLITUVROW_NEON) |
299 if (TestCpuFlag(kCpuHasNEON)) { | 299 if (TestCpuFlag(kCpuHasNEON)) { |
300 SplitUVRow = SplitUVRow_Any_NEON; | 300 SplitUVRow = SplitUVRow_Any_NEON; |
301 if (IS_ALIGNED(halfwidth, 16)) { | 301 if (IS_ALIGNED(halfwidth, 16)) { |
302 SplitUVRow = SplitUVRow_NEON; | 302 SplitUVRow = SplitUVRow_NEON; |
303 } | 303 } |
304 } | 304 } |
305 #endif | 305 #endif |
306 #if defined(HAS_SPLITUVROW_MIPS_DSPR2) | 306 #if defined(HAS_SPLITUVROW_DSPR2) |
307 if (TestCpuFlag(kCpuHasMIPS_DSPR2) && | 307 if (TestCpuFlag(kCpuHasDSPR2) && |
308 IS_ALIGNED(src_uv, 4) && IS_ALIGNED(src_stride_uv, 4) && | 308 IS_ALIGNED(src_uv, 4) && IS_ALIGNED(src_stride_uv, 4) && |
309 IS_ALIGNED(dst_u, 4) && IS_ALIGNED(dst_stride_u, 4) && | 309 IS_ALIGNED(dst_u, 4) && IS_ALIGNED(dst_stride_u, 4) && |
310 IS_ALIGNED(dst_v, 4) && IS_ALIGNED(dst_stride_v, 4)) { | 310 IS_ALIGNED(dst_v, 4) && IS_ALIGNED(dst_stride_v, 4)) { |
311 SplitUVRow = SplitUVRow_Any_MIPS_DSPR2; | 311 SplitUVRow = SplitUVRow_Any_DSPR2; |
312 if (IS_ALIGNED(halfwidth, 16)) { | 312 if (IS_ALIGNED(halfwidth, 16)) { |
313 SplitUVRow = SplitUVRow_MIPS_DSPR2; | 313 SplitUVRow = SplitUVRow_DSPR2; |
314 } | 314 } |
315 } | 315 } |
316 #endif | 316 #endif |
317 | 317 |
318 if (dst_y) { | 318 if (dst_y) { |
319 if (src_stride_y0 == src_stride_y1) { | 319 if (src_stride_y0 == src_stride_y1) { |
320 CopyPlane(src_y, src_stride_y0, dst_y, dst_stride_y, width, height); | 320 CopyPlane(src_y, src_stride_y0, dst_y, dst_stride_y, width, height); |
321 } else { | 321 } else { |
322 CopyPlane2(src_y, src_stride_y0, src_stride_y1, dst_y, dst_stride_y, | 322 CopyPlane2(src_y, src_stride_y0, src_stride_y1, dst_y, dst_stride_y, |
323 width, height); | 323 width, height); |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 free_aligned_buffer_64(row); | 1380 free_aligned_buffer_64(row); |
1381 } | 1381 } |
1382 #endif | 1382 #endif |
1383 return 0; | 1383 return 0; |
1384 } | 1384 } |
1385 | 1385 |
1386 #ifdef __cplusplus | 1386 #ifdef __cplusplus |
1387 } // extern "C" | 1387 } // extern "C" |
1388 } // namespace libyuv | 1388 } // namespace libyuv |
1389 #endif | 1389 #endif |
OLD | NEW |