Notes.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Notes:
  2. * Source code for libyuv from https://chromium.googlesource.com/libyuv/libyuv/ dated 17 November 2017.
  3. * All code is compilable, except for compare_win.cc
  4. - Use older version (https://chromium.googlesource.com/libyuv/libyuv/+/baf6a3c1bd385e7ffe6b7634560e71fb49e4f589%5E%21/)
  5. Since there's a compiler error on (VS2005):
  6. --------------------------------------------------------------------------------------
  7. pmulld xmm0,xmm6
  8. --------------------------------------------------------------------------------------
  9. - On VS2015, error C2024: 'alignas' attribute applies to variables, data members and tag types only
  10. --------------------------------------------------------------------------------------
  11. __declspec(naked) __declspec(align(16))
  12. Change to :
  13. __declspec(naked)
  14. --------------------------------------------------------------------------------------
  15. * Added these lines to file include/libyuv/basic_types.h:
  16. --
  17. #if _MSC_VER==1400
  18. # include <stdint.h> // for uint8_t
  19. #endif
  20. ...
  21. #if defined(_MSC_VER)
  22. # pragma warning(disable:4996) // This function or variable may be unsafe.
  23. #endif
  24. --
  25. * Modify compare_row.h:
  26. - VS2005 doesn't support SSE42, resulting error on HammingDistance_SSE42().
  27. --------------------------------------------------------------------------------------
  28. diff += __popcnt(x);
  29. --------------------------------------------------------------------------------------
  30. So, we use the default method HammingDistance_C() to calculate Hamming Distance.