hi all,now i test jpeg enc and dec ,i found that if i create the encoder or decoder use the createJPEGEncoder or the createJPEGDecoder ,then if i use the opencv to encode at the same time ,then it will have the following error:
Thread 6 “test_video_enco” received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fb1aa5f30 (LWP 17069)]
0x0000007fb74a795c in jpeg_CreateCompress () from /usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so
(gdb) bt
#0 0x0000007fb74a795c in jpeg_CreateCompress () from /usr/lib/aarch64-linux-gnu/tegra/libnvjpeg.so
#1 0x0000007fb7add7e4 in cv::JpegEncoder::write(cv::Mat const&, std::vector<int, std::allocator > const&) () from /usr/lib/aarch64-linux-gnu/libopencv_imgcodecs.so.4.1
#2 0x0000007fb7ad1d94 in cv::imencode(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator >&, std::vector<int, std::allocator > const&) () from /usr/lib/aarch64-linux-gnu/libopencv_imgcodecs.so.4.1
#3 0x0000005555558cc0 in test_opencvenc (pm=0x0) at cvenctest.cpp:31
#4 0x0000007fb7f89088 in start_thread (arg=0x7ffffff08f) at pthread_create.c:463
#5 0x0000007fb787a4ec in thread_start () at …/sysdeps/unix/sysv/linux/aarch64/clone.S:78
(gdb) q
so whether that have some conflict with the opencv