diff options
author | Frank Barchard <fbarchard@google.com> | 2021-10-28 13:30:23 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2021-10-28 22:38:04 +0000 |
commit | fa043c7a6466d264ba7a28ec7f21ed012e02522f (patch) | |
tree | 7ae62b4d10726e3e0119c554962c1f41d1dfea8d /source/row_neon.cc | |
parent | b179f1847a7cc17957eab399610cb9ef163bb715 (diff) | |
download | libyuv-fa043c7a6466d264ba7a28ec7f21ed012e02522f.tar.gz |
Android420ToI420Rotate function to convert with rotation
- adapted from Android420ToI420, adding a rotation parameter
- SplitRotateUV added to rotate and split the UV channel of NV12 or NV21
- rename RotateUV functions to SplitRotateUV
Bug: b/203549508
Change-Id: I6774da5fb5908fdf1fc12393f0001f41bbda9851
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/3251282
Reviewed-by: richard winterton <rrwinterton@gmail.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/row_neon.cc')
-rw-r--r-- | source/row_neon.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/row_neon.cc b/source/row_neon.cc index df9e6b5b..543ebec9 100644 --- a/source/row_neon.cc +++ b/source/row_neon.cc @@ -1832,10 +1832,10 @@ void ARGBToUVJRow_NEON(const uint8_t* src_argb, // TODO(fbarchard): Subsample match C code. void RGB24ToUVJRow_NEON(const uint8_t* src_rgb24, - int src_stride_rgb24, - uint8_t* dst_u, - uint8_t* dst_v, - int width) { + int src_stride_rgb24, + uint8_t* dst_u, + uint8_t* dst_v, + int width) { asm volatile ( "add %1, %0, %1 \n" // src_stride + src_rgb24 "vmov.s16 q10, #127 / 2 \n" // UB / VR 0.500 coefficient @@ -1878,10 +1878,10 @@ void RGB24ToUVJRow_NEON(const uint8_t* src_rgb24, // TODO(fbarchard): Subsample match C code. void RAWToUVJRow_NEON(const uint8_t* src_raw, - int src_stride_raw, - uint8_t* dst_u, - uint8_t* dst_v, - int width) { + int src_stride_raw, + uint8_t* dst_u, + uint8_t* dst_v, + int width) { asm volatile ( "add %1, %0, %1 \n" // src_stride + src_raw "vmov.s16 q10, #127 / 2 \n" // UB / VR 0.500 coefficient |