Using -lnvjpeg and libjpeg-turbo at the same time?

Hello,

how can i use the hardeware accelerated -lnvjpeg and the software libjpeg-turbo(because of speed, quality and JCS_EXT_BGRA input color space) at the same time in one application but in different functions? I’m having problems with the linker because the function names are the same an only one library is selected.

Hi,
It is not supported as you describe that libjpeg.so and libnvjpeg.so are with same function names. It cannot co-exist together.

Hi,

okay thanks! Okay then i need to load libjpeg.so dynamically with dlopen.