Debian Codegraph @

Xpjproject/third_party/build/yuv/Notes.txt

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