libjpeg-turbo
1.1、libjpeg-turbo简介
是什么 ?:a JPEG image codec that uses SIMD instructions (MMX, SSE2, AVX2, NEON, AltiVec) to accelerate baseline JPEG compression and decompression on x86, x86-64, ARM, and PowerPC systems
开发语言:C++
官方主页:https://www.libjpeg-turbo.org
源码仓库:https://github.com/libjpeg-turbo/libjpeg-turbo

libjpeg-turbo是对libjpegfork。然后在此基础上进行了优化,使得运行效率大幅提升。所以,现在大多数使用者倾向于使用libjpeg-turbo而不是libjpeg, 很多的包管理器中也只有libjpeg-turbo,而没有提供libjpeg

1.2、通过包管理器安装libjpeg-turbo
操作系统包管理器安装命令
Allvcpkg
vcpkg install libjpeg-turbo
vcpkg install libjpeg-turbo:x64-osx
vcpkg install libjpeg-turbo:x64-linux
vcpkg install libjpeg-turbo:x64-windows
macOSHomeBrewbrew install libjpeg-turbo
GNU/LinuxLinuxBrewbrew install libjpeg-turbo
aptsudo apt-get install -y libjpeg-turbo8 libjpeg-turbo8-dev
CentOSyumsudo yum install -y libjpeg-turbo libjpeg-turbo-devel
dnfsudo dnf install -y libjpeg-turbo libjpeg-turbo-devel
openSUSEzyppersudo zypper install -y libjpeg-turbo
Alpine Linuxapksudo apk add libjpeg-turbo libjpeg-turbo-dev

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm libjpeg-turbo
Gentoo LinuxPortagesudo emerge libjpeg-turbo
1.3、通过编译源码安装libjpeg-turbo
1.4、libjpeg-turbo中包含的命令
1.5、libjpeg-turbo中包含的头文件
1.6、libjpeg-turbo中包含的库文件
  • libjpeg.{a | so | dylib}
  • libturbojpeg.{a | so | dylib}