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
是对libjpeg的fork
。然后在此基础上进行了优化,使得运行效率大幅提升。所以,现在大多数使用者倾向于使用libjpeg-turbo
而不是libjpeg
, 很多的包管理器中也只有libjpeg-turbo
,而没有提供libjpeg
。
1.2、通过包管理器安装libjpeg-turbo
操作系统 | 包管理器 | 安装命令 |
---|
All | vcpkg | vcpkg install libjpeg-turbo
vcpkg install libjpeg-turbo:x64-osx
vcpkg install libjpeg-turbo:x64-linux
vcpkg install libjpeg-turbo:x64-windows
|
macOS | HomeBrew | brew install libjpeg-turbo |
GNU/Linux | HomeBrew | brew install libjpeg-turbo |
| apt | sudo apt-get install -y libjpeg-turbo8 libjpeg-turbo8-dev |
CentOS | yum | sudo yum install -y libjpeg-turbo libjpeg-turbo-devel |
| dnf | sudo dnf install -y libjpeg-turbo libjpeg-turbo-devel |
openSUSE | zypper | sudo zypper install -y libjpeg-turbo |
Alpine Linux | apk | sudo apk add libjpeg-turbo libjpeg-turbo-dev |
Arch Linux ArcoLinux Manjaro Linux | pacman | sudo pacman -Syyu --noconfirm sudo pacman -S --noconfirm libjpeg-turbo |
Gentoo Linux | Portage | sudo 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}