tar zxf
libjpeg-turbo-1.2.1.tar.gz
cd libjpeg-turbo-1.2.1/
./configure --prefix=$PWD/tmp/ --host=arm-linux
./configure --prefix=$PWD/tmp/ --host=arm-linux
make -j8
make install
cd tmp/lib/
cp *so* ~/work/TQ2440/arm-linux-gcc/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/ -rfd
cp *so* ~/work/TQ2440/rootfs/lib/ -rfd
cd ../include/
cp * ~/work/TQ2440/arm-linux-gcc/4.3.2/arm-none-linux-gnueabi/libc/usr/include/ -rf
cd ~/work/TQ2440/app/lib-jpeg/
arm-linux-gcc -o jpg2rgb jpg2rgb.c -ljpeg
将jpg2rgb复制到开发板的根文件系统,执行app:
./jpg2rgb mv3.jpg
Log输出:
image_width = 480
image_height = 272
num_components = 3
enter scale M/N:
输入缩放系数:1/1或者1/2,1/4(并不是所有的缩放系数都支持,不支持放大),即可在LCD上看到图片。
1/1效果 1/2效果
cd libjpeg-turbo-1.2.1/
./configure --prefix=$PWD/tmp/ --host=arm-linux
./configure --prefix=$PWD/tmp/ --host=arm-linux
make -j8
make install
cd tmp/lib/
cp *so* ~/work/TQ2440/arm-linux-gcc/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib/ -rfd
cp *so* ~/work/TQ2440/rootfs/lib/ -rfd
cd ../include/
cp * ~/work/TQ2440/arm-linux-gcc/4.3.2/arm-none-linux-gnueabi/libc/usr/include/ -rf
cd ~/work/TQ2440/app/lib-jpeg/
arm-linux-gcc -o jpg2rgb jpg2rgb.c -ljpeg
将jpg2rgb复制到开发板的根文件系统,执行app:
./jpg2rgb mv3.jpg
Log输出:
image_width = 480
image_height = 272
num_components = 3
enter scale M/N:
输入缩放系数:1/1或者1/2,1/4(并不是所有的缩放系数都支持,不支持放大),即可在LCD上看到图片。
1/1效果 1/2效果