README.libaom 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. Name: libyuv
  2. URL: https://chromium.googlesource.com/libyuv/libyuv/
  3. Version: dfaf7534e0e536f7e5ef8ddd7326797bd09b8622
  4. License: BSD
  5. License File: LICENSE
  6. Description:
  7. libyuv is an open source project that includes YUV conversion and scaling
  8. functionality.
  9. The optimized scaler in libyuv is used in multiple resolution encoder example,
  10. which down-samples the original input video (f.g. 1280x720) a number of times
  11. in order to encode multiple resolution bit streams.
  12. Local Modifications:
  13. diff --git a/third_party/libyuv/source/cpu_id.cc b/third_party/libyuv/source/cpu_id.cc
  14. index fe89452b7..72a7fb82f 100644
  15. --- a/third_party/libyuv/source/cpu_id.cc
  16. +++ b/third_party/libyuv/source/cpu_id.cc
  17. @@ -108,7 +108,7 @@ void CpuId(int eax, int ecx, int* cpu_info) {
  18. // }
  19. // For VS2013 and earlier 32 bit, the _xgetbv(0) optimizer produces bad code.
  20. // https://code.google.com/p/libyuv/issues/detail?id=529
  21. -#if defined(_M_IX86) && (_MSC_VER < 1900)
  22. +#if defined(_M_IX86) && defined(_MSC_VER) && (_MSC_VER < 1900)
  23. #pragma optimize("g", off)
  24. #endif
  25. #if (defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || \
  26. @@ -129,7 +129,7 @@ int GetXCR0() {
  27. #define GetXCR0() 0
  28. #endif // defined(_M_IX86) || defined(_M_X64) ..
  29. // Return optimization to previous setting.
  30. -#if defined(_M_IX86) && (_MSC_VER < 1900)
  31. +#if defined(_M_IX86) && defined(_MSC_VER) && (_MSC_VER < 1900)
  32. #pragma optimize("g", on)
  33. #endif