Hi Rigaya, i'm trying to compile QSVEncc on Linux Ubuntu 19.04 and it trow some errors and stop could u take a look for me?
make
g++ -c -Wall -Wno-attributes -Wno-missing-braces -Wno-unknown-pragmas -Wno-unused -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64 -D__USE_LARGEFILE64 -D__STDC_CONSTANT_MACROS -I. -I./mfx_dispatch/include -I./MediaSDK/include -I./QSVPipeline -I./QSVPlugins -I./tinyxml2 -I./ChapterRW -I./ttmath -DLINUX64 -m64 -pthread -std=c++11 -march=native -mtune=native -O3 -DNDEBUG=1 -mfpmath=sse -fexcess-precision=fast -ffast-math -fomit-frame-pointer -DLIBVA_SUPPORT -DLIBVA_DRM_SUPPORT -o QSVPipeline/convert_csp_sse2.o QSVPipeline/convert_csp_sse2.cpp
QSVPipeline/convert_csp_sse2.cpp: In function ‘void convert_gbr_to_rgb32_sse2(void**, const void**, int, int, int, int, int, int, int, int, int*)’:
QSVPipeline/convert_csp_sse2.cpp:62:172: error: no matching function for call to ‘convert_rgb_to_rgb32_simd<((((-1 << 24) | (2 << 16)) | (0 << 8)) | 1)>(void**&, const void**&, int&, int&, int&, int&, int&, int&, int&, int&, int*&)’
_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^
In file included from QSVPipeline/convert_csp_sse2.cpp:33:
QSVPipeline/convert_csp_simd.h:676:27: note: candidate: ‘template void convert_rgb_to_rgb32_simd(void**, const void**, int, int, int, int, int, int, int, int, int*)’
static void __forceinline convert_rgb_to_rgb32_simd(void **dst, const void **src, int width, int src_y_pitch_byte, int src_uv_pitch_byte, int dst_y_pitch_byte, int height, int dst_height, int thread_id, int thread_n, int *crop) {
^~~~~~~~~~~~~~~~~~~~~~~~~
QSVPipeline/convert_csp_simd.h:676:27: note: template argument deduction/substitution failed:
QSVPipeline/convert_csp_simd.h:389:42: error: left operand of shift expression ‘(-1 << 24)’ is negative [-fpermissive]
#define RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~^~~~~~
QSVPipeline/convert_csp_sse2.cpp:62:31: note: in expansion of macro ‘RGB_PLANE’
convert_rgb_to_rgb32_simd<RGB_PLANE(1, 0, 2, -1)>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_simd.h:389:78: note: in template argument for type ‘unsigned int’
e RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
QSVPipeline/convert_csp_sse2.cpp:62:31: note: in expansion of macro ‘RGB_PLANE’
convert_rgb_to_rgb32_simd<RGB_PLANE(1, 0, 2, -1)>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_sse2.cpp: In function ‘void convert_rgb32_to_rgb_sse2(void**, const void**, int, int, int, int, int, int, int, int, int*)’:
QSVPipeline/convert_csp_sse2.cpp:66:179: error: no matching function for call to ‘convert_rgb32_to_rgb_simd<((((-1 << 24) | (0 << 16)) | (1 << 8)) | 2), false>(void**&, const void**&, int&, int&, int&, int&, int&, int&, int&, int&, int*&)’
_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^
In file included from QSVPipeline/convert_csp_sse2.cpp:33:
QSVPipeline/convert_csp_simd.h:607:27: note: candidate: ‘template<unsigned int plane_from, bool source_reverse> void convert_rgb32_to_rgb_simd(void**, const void**, int, int, int, int, int, int, int, int, int*)’
static void __forceinline convert_rgb32_to_rgb_simd(void **dst, const void **src, int width, int src_y_pitch_byte, int src_uv_pitch_byte, int dst_y_pitch_byte, int height, int dst_height, int thread_id, int thread_n, int *crop) {
^~~~~~~~~~~~~~~~~~~~~~~~~
QSVPipeline/convert_csp_simd.h:607:27: note: template argument deduction/substitution failed:
QSVPipeline/convert_csp_simd.h:389:42: error: left operand of shift expression ‘(-1 << 24)’ is negative [-fpermissive]
#define RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~^~~~~~
QSVPipeline/convert_csp_sse2.cpp:66:31: note: in expansion of macro ‘RGB_PLANE’
convert_rgb32_to_rgb_simd<RGB_PLANE(2, 1, 0, -1), false>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_simd.h:389:78: note: in template argument for type ‘unsigned int’
e RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
QSVPipeline/convert_csp_sse2.cpp:66:31: note: in expansion of macro ‘RGB_PLANE’
convert_rgb32_to_rgb_simd<RGB_PLANE(2, 1, 0, -1), false>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_sse2.cpp: In function ‘void convert_bgr32_to_rgb_sse2(void**, const void**, int, int, int, int, int, int, int, int, int*)’:
QSVPipeline/convert_csp_sse2.cpp:70:179: error: no matching function for call to ‘convert_rgb32_to_rgb_simd<((((-1 << 24) | (2 << 16)) | (1 << 8)) | 0), false>(void**&, const void**&, int&, int&, int&, int&, int&, int&, int&, int&, int*&)’
_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^
In file included from QSVPipeline/convert_csp_sse2.cpp:33:
QSVPipeline/convert_csp_simd.h:607:27: note: candidate: ‘template<unsigned int plane_from, bool source_reverse> void convert_rgb32_to_rgb_simd(void**, const void**, int, int, int, int, int, int, int, int, int*)’
static void __forceinline convert_rgb32_to_rgb_simd(void **dst, const void **src, int width, int src_y_pitch_byte, int src_uv_pitch_byte, int dst_y_pitch_byte, int height, int dst_height, int thread_id, int thread_n, int *crop) {
^~~~~~~~~~~~~~~~~~~~~~~~~
QSVPipeline/convert_csp_simd.h:607:27: note: template argument deduction/substitution failed:
QSVPipeline/convert_csp_simd.h:389:42: error: left operand of shift expression ‘(-1 << 24)’ is negative [-fpermissive]
#define RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~^~~~~~
QSVPipeline/convert_csp_sse2.cpp:70:31: note: in expansion of macro ‘RGB_PLANE’
convert_rgb32_to_rgb_simd<RGB_PLANE(0, 1, 2, -1), false>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_simd.h:389:78: note: in template argument for type ‘unsigned int’
e RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
QSVPipeline/convert_csp_sse2.cpp:70:31: note: in expansion of macro ‘RGB_PLANE’
convert_rgb32_to_rgb_simd<RGB_PLANE(0, 1, 2, -1), false>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_sse2.cpp: In function ‘void convert_rgb32r_to_rgb_sse2(void**, const void**, int, int, int, int, int, int, int, int, int*)’:
QSVPipeline/convert_csp_sse2.cpp:74:178: error: no matching function for call to ‘convert_rgb32_to_rgb_simd<((((-1 << 24) | (0 << 16)) | (1 << 8)) | 2), true>(void**&, const void**&, int&, int&, int&, int&, int&, int&, int&, int&, int*&)’
_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^
In file included from QSVPipeline/convert_csp_sse2.cpp:33:
QSVPipeline/convert_csp_simd.h:607:27: note: candidate: ‘template<unsigned int plane_from, bool source_reverse> void convert_rgb32_to_rgb_simd(void**, const void**, int, int, int, int, int, int, int, int, int*)’
static void __forceinline convert_rgb32_to_rgb_simd(void **dst, const void **src, int width, int src_y_pitch_byte, int src_uv_pitch_byte, int dst_y_pitch_byte, int height, int dst_height, int thread_id, int thread_n, int *crop) {
^~~~~~~~~~~~~~~~~~~~~~~~~
QSVPipeline/convert_csp_simd.h:607:27: note: template argument deduction/substitution failed:
QSVPipeline/convert_csp_simd.h:389:42: error: left operand of shift expression ‘(-1 << 24)’ is negative [-fpermissive]
#define RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~^~~~~~
QSVPipeline/convert_csp_sse2.cpp:74:31: note: in expansion of macro ‘RGB_PLANE’
convert_rgb32_to_rgb_simd<RGB_PLANE(2, 1, 0, -1), true>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_simd.h:389:78: note: in template argument for type ‘unsigned int’
e RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
QSVPipeline/convert_csp_sse2.cpp:74:31: note: in expansion of macro ‘RGB_PLANE’
convert_rgb32_to_rgb_simd<RGB_PLANE(2, 1, 0, -1), true>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_sse2.cpp: In function ‘void copy_rgb_to_rgb_sse2(void**, const void**, int, int, int, int, int, int, int, int, int*)’:
QSVPipeline/convert_csp_sse2.cpp:94:162: error: no matching function for call to ‘copy_rgb_to_rgb<((((-1 << 24) | (2 << 16)) | (1 << 8)) | 0)>(void**&, const void**&, int&, int&, int&, int&, int&, int&, int&, int&, int*&)’
_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^
In file included from QSVPipeline/convert_csp_sse2.cpp:33:
QSVPipeline/convert_csp_simd.h:891:6: note: candidate: ‘template void copy_rgb_to_rgb(void**, const void**, int, int, int, int, int, int, int, int, int*)’
void copy_rgb_to_rgb(void **dst, const void **src, int width, int src_y_pitch_byte, int src_uv_pitch_byte, int dst_y_pitch_byte, int height, int dst_height, int thread_id, int thread_n, int *crop) {
^~~~~~~~~~~~~~~
QSVPipeline/convert_csp_simd.h:891:6: note: template argument deduction/substitution failed:
QSVPipeline/convert_csp_simd.h:389:42: error: left operand of shift expression ‘(-1 << 24)’ is negative [-fpermissive]
#define RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~^~~~~~
QSVPipeline/convert_csp_sse2.cpp:94:21: note: in expansion of macro ‘RGB_PLANE’
copy_rgb_to_rgb<RGB_PLANE(0, 1, 2, -1)>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_simd.h:389:78: note: in template argument for type ‘unsigned int’
e RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
QSVPipeline/convert_csp_sse2.cpp:94:21: note: in expansion of macro ‘RGB_PLANE’
copy_rgb_to_rgb<RGB_PLANE(0, 1, 2, -1)>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_sse2.cpp: In function ‘void copy_gbr_to_rgb_sse2(void**, const void**, int, int, int, int, int, int, int, int, int*)’:
QSVPipeline/convert_csp_sse2.cpp:98:162: error: no matching function for call to ‘copy_rgb_to_rgb<((((-1 << 24) | (1 << 16)) | (0 << 8)) | 2)>(void**&, const void**&, int&, int&, int&, int&, int&, int&, int&, int&, int*&)’
_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^
In file included from QSVPipeline/convert_csp_sse2.cpp:33:
QSVPipeline/convert_csp_simd.h:891:6: note: candidate: ‘template void copy_rgb_to_rgb(void**, const void**, int, int, int, int, int, int, int, int, int*)’
void copy_rgb_to_rgb(void **dst, const void **src, int width, int src_y_pitch_byte, int src_uv_pitch_byte, int dst_y_pitch_byte, int height, int dst_height, int thread_id, int thread_n, int *crop) {
^~~~~~~~~~~~~~~
QSVPipeline/convert_csp_simd.h:891:6: note: template argument deduction/substitution failed:
QSVPipeline/convert_csp_simd.h:389:42: error: left operand of shift expression ‘(-1 << 24)’ is negative [-fpermissive]
#define RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~^~~~~~
QSVPipeline/convert_csp_sse2.cpp:98:21: note: in expansion of macro ‘RGB_PLANE’
copy_rgb_to_rgb<RGB_PLANE(2, 0, 1, -1)>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
QSVPipeline/convert_csp_simd.h:389:78: note: in template argument for type ‘unsigned int’
e RGB_PLANE(x0, x1, x2, x3) (((x3) << 24) | ((x2) << 16) | ((x1) << 8) | (x0))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
QSVPipeline/convert_csp_sse2.cpp:98:21: note: in expansion of macro ‘RGB_PLANE’
copy_rgb_to_rgb<RGB_PLANE(2, 0, 1, -1)>(dst, src, width, src_y_pitch_byte, src_uv_pitch_byte, dst_y_pitch_byte, height, dst_height, thread_id, thread_n, crop);
^~~~~~~~~
make: *** [makefile:16: QSVPipeline/convert_csp_sse2.o] Error 1
Thank You