aboutsummaryrefslogtreecommitdiff
path: root/source/row_neon.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2021-04-30 09:54:44 -0700
committerFrank Barchard <fbarchard@chromium.org>2021-04-30 18:14:57 +0000
commit49ebc996aa8c4bdf89c1b5ea461eb677234c61cc (patch)
tree8f02917133a54788294fa78e064fd254f3ea9c97 /source/row_neon.cc
parent99cddd80513167b307d5d9b18c5a347fa8592c33 (diff)
downloadlibyuv-49ebc996aa8c4bdf89c1b5ea461eb677234c61cc.tar.gz
Make 2 step transitive tests measure 2 step time.
Add tests of all macros used by libyuv public headers When a 1 step conversion is added, a 2 step test can compare the old 2 step method to the 1 step. A 1 step unittest is also added which compares C to SIMD. Making the 2 step conversions measure performance of the 2 steps allows the old 2 step performance to be compared to 1 step. All macros used in public headers are added to an ifdef test. Showing them in a unittest allows some diagnostics when a test is failing. Bug: libyuv:901 Change-Id: I7ffa6ed0cb3b506fa1b7fd4b7b1b729658c3c266 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2857916 Reviewed-by: Frank Barchard <fbarchard@chromium.org> Reviewed-by: Mirko Bonadei <mbonadei@chromium.org> Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'source/row_neon.cc')
-rw-r--r--source/row_neon.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/row_neon.cc b/source/row_neon.cc
index ccc4af66..6ef6f1c4 100644
--- a/source/row_neon.cc
+++ b/source/row_neon.cc
@@ -241,7 +241,7 @@ void I422ToRGBARow_NEON(const uint8_t* src_y,
YUVTORGB_SETUP
"vmov.u8 d6, #255 \n"
"1: \n" READYUV422 YUVTORGB
- RGBTORGB8 "subs %[width], %[width], #8 \n" STORERGBA
+ RGBTORGB8 "subs %[width], %[width], #8 \n" STORERGBA
"bgt 1b \n"
: [src_y] "+r"(src_y), // %[src_y]
[src_u] "+r"(src_u), // %[src_u]
@@ -294,7 +294,7 @@ void I422ToRGB565Row_NEON(const uint8_t* src_y,
YUVTORGB_SETUP
"vmov.u8 d6, #255 \n"
"1: \n" READYUV422 YUVTORGB
- RGBTORGB8 "subs %[width], %[width], #8 \n" ARGBTORGB565
+ RGBTORGB8 "subs %[width], %[width], #8 \n" ARGBTORGB565
"vst1.8 {q2}, [%[dst_rgb565]]! \n" // store 8 pixels RGB565.
"bgt 1b \n"
: [src_y] "+r"(src_y), // %[src_y]