myrao / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

libyuv::ABGRToARGB optimize #271

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
libyuv::ABGRToARGB is used alot - explore ways to make it faster.
Currently its SSSE3
libyuvTest.ABGRToARGB_Any (373 ms)
libyuvTest.ABGRToARGB_Unaligned (309 ms)
libyuvTest.ABGRToARGB_Invert (307 ms)
libyuvTest.ABGRToARGB_Opt (298 ms)
and Neon
ABGRToARGB_Any (4580 ms)
ABGRToARGB_Invert (2125 ms)
ABGRToARGB_Unaligned (2102 ms)
ABGRToARGB_Opt (2037 ms)

Original issue reported on code.google.com by fbarch...@google.com on 26 Sep 2013 at 12:31

GoogleCodeExporter commented 9 years ago
SSSE3 ABGRToARGB_Opt (322 ms)
C ABGRToARGB_Opt (1933 ms)

Original comment by fbarch...@google.com on 4 Oct 2013 at 10:18

GoogleCodeExporter commented 9 years ago
[55/55] LINK libyuv_unittest, POSTBUILDS
bash-3.2$ runyuv10 ABGRToARGB*
LIBYUV_WIDTH=640 LIBYUV_HEIGHT=360 LIBYUV_REPEAT=4000 
out/Release/libyuv_unittest --gtest_filter=*ABGRToARGB* | sed 
's/\(.*(\)\([0-9]*\)\( ms)\)/\2 - \1\2\3/g' | sort -rn | grep ms
265 - [       OK ] libyuvTest.ABGRToARGB_Invert (265 ms)
264 - [       OK ] libyuvTest.ABGRToARGB_Unaligned (264 ms)
259 - [       OK ] libyuvTest.ABGRToARGB_Opt (259 ms)
257 - [       OK ] libyuvTest.ABGRToARGB_Any (257 ms)
78 - [       OK ] libyuvTest.ABGRToARGB_Random (78 ms)
[==========] 5 tests from 1 test case ran. (1124 ms total)
[----------] 5 tests from libyuvTest (1123 ms total)
bash-3.2$ LIBYUV_DISABLE_SSSE3=1 runyuv10 ABGRToARGB*
LIBYUV_WIDTH=640 LIBYUV_HEIGHT=360 LIBYUV_REPEAT=4000 
out/Release/libyuv_unittest --gtest_filter=*ABGRToARGB* | sed 
's/\(.*(\)\([0-9]*\)\( ms)\)/\2 - \1\2\3/g' | sort -rn | grep ms
385 - [       OK ] libyuvTest.ABGRToARGB_Unaligned (385 ms)
377 - [       OK ] libyuvTest.ABGRToARGB_Invert (377 ms)
357 - [       OK ] libyuvTest.ABGRToARGB_Opt (357 ms)
352 - [       OK ] libyuvTest.ABGRToARGB_Any (352 ms)
84 - [       OK ] libyuvTest.ABGRToARGB_Random (84 ms)
[==========] 5 tests from 1 test case ran. (1555 ms total)

Original comment by fbarch...@google.com on 8 Oct 2013 at 2:47