daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Convert YUYV (also known as YUV2 or YUV422 non-planar) into 8bit grayscale by extracting the Y channel:
  2.  
  3. SSSE3 version:
  4. 500000 YUYV pixels converted to grayscale in 526 microseconds, 950 million pixels/s
  5. 500000 YUYV pixels converted to grayscale in 124 microseconds, 4032 million pixels/s
  6. 500000 YUYV pixels converted to grayscale in 108 microseconds, 4629 million pixels/s
  7. 500000 YUYV pixels converted to grayscale in 101 microseconds, 4950 million pixels/s
  8. 500000 YUYV pixels converted to grayscale in 109 microseconds, 4587 million pixels/s
  9. 500000 YUYV pixels converted to grayscale in 97 microseconds, 5154 million pixels/s
  10. 500000 YUYV pixels converted to grayscale in 93 microseconds, 5376 million pixels/s
  11. 500000 YUYV pixels converted to grayscale in 97 microseconds, 5154 million pixels/s
  12. 500000 YUYV pixels converted to grayscale in 93 microseconds, 5376 million pixels/s
  13. 500000 YUYV pixels converted to grayscale in 100 microseconds, 5000 million pixels/s
  14. 500000 YUYV pixels converted to grayscale in 102 microseconds, 4901 million pixels/s
  15. 500000 YUYV pixels converted to grayscale in 94 microseconds, 5319 million pixels/s
  16. kfir@GentooB0X ~/Programming/sse2 $ gcc sse2convertyuyv_8_perf_asm.c --std=c99 -msse2
  17.  
  18. Standard version:
  19. 500000 YUYV pixels converted to grayscale in 839 microseconds, 595 million pixels/s
  20. 500000 YUYV pixels converted to grayscale in 389 microseconds, 1285 million pixels/s
  21. 500000 YUYV pixels converted to grayscale in 380 microseconds, 1315 million pixels/s
  22. 500000 YUYV pixels converted to grayscale in 383 microseconds, 1305 million pixels/s
  23. 500000 YUYV pixels converted to grayscale in 380 microseconds, 1315 million pixels/s
  24. 500000 YUYV pixels converted to grayscale in 384 microseconds, 1302 million pixels/s
  25. 500000 YUYV pixels converted to grayscale in 383 microseconds, 1305 million pixels/s
  26. 500000 YUYV pixels converted to grayscale in 379 microseconds, 1319 million pixels/s
  27. 500000 YUYV pixels converted to grayscale in 379 microseconds, 1319 million pixels/s
  28. 500000 YUYV pixels converted to grayscale in 379 microseconds, 1319 million pixels/s
  29. 500000 YUYV pixels converted to grayscale in 382 microseconds, 1308 million pixels/s
  30. 500000 YUYV pixels converted to grayscale in 380 microseconds, 1315 million pixels/s
RAW Paste Data
Top