Questions tagged [libjpeg-turbo]

libjpeg-turbo is a fork of libjpeg that uses SIMD instructions to accelerate baseline JPEG encoding and decoding.

Home page on SourceForge

libjpeg-turbo is a derivative of libjpeg that uses SIMD instructions (MMX, SSE2, NEON) to accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems. On such systems, libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal.

libjpeg-turbo was originally based on libjpeg/SIMD by Miyasaka Masaru, but the TigerVNC and VirtualGL projects made numerous enhancements to the codec in 2009, including improved support for Mac OS X, 64-bit support, support for 32-bit and big-endian pixel formats (RGBX, XBGR, etc.), accelerated Huffman encoding/decoding, and various bug fixes.

libjpeg-turbo generally achieves 80-120% of the performance of TurboJPEG/IPP. It is faster in some areas but slower in others.

104 questions
1
vote
0 answers

Performing multiple operations on image in memory with libjpeg

I have an an application where I would like to perform lossless swapping of tiles in a JPEG, resulting in a file such as this: To do so, I have been able to make a proof-of-concept python script that repeatedly calls the patched jpegtran with crop…
chocolatkey
  • 461
  • 5
  • 6
1
vote
2 answers

Decompressing jpeg using libjpegturbo returning "Empty input file"

As the title states, I'm trying to read a JPEG file using libjpeg-turbo. I tried this code on a mac at home and it worked, but now I'm on Windows and it's giving me a Empty input file error on calling jpeg_read_header. I have verified that the file…
Sid
  • 1,239
  • 2
  • 13
  • 36
1
vote
3 answers

libjpeg turbo tjCompressFromYUV

I'd like to compress a planar 4:2:0 YUV buffer to a jpeg image using libturbojpeg in C, but I'm having trouble using the tjCompressFromYUV() function. This is my code: #define PADDING 2 tjhandle tjh; unsigned long buf_size; unsigned char…
AleA
  • 13
  • 3
1
vote
1 answer

How is jpegtran related to libjpeg-turbo, jpegoptim, and mozjpeg?

From what I understand, jpegtran is included with libjpeg-turbo and it is used when saving an Image with optimize=True. Jpegoptim uses an identical algorithm as jpegtran, but requires the image to be temporarily saved to disk before it can be…
davidtgq
  • 3,780
  • 10
  • 43
  • 80
1
vote
1 answer

Why is "no code allowed to be all ones" in libjpeg's Huffman decoding?

I'm trying to satisfy myself that METEOSAT images I'm getting from their FTP server are actually valid images. My doubt arises because all the tools I've used so far complain about "Bogus Huffman table definition" - yet when I simply comment out…
Bernd Jendrissek
  • 1,088
  • 6
  • 15
1
vote
1 answer

libjpeg turbo android jpeg compression

Am using libjpeg-turbo from here to compress images using JPEG compression, since Bitmap.compress(Bitmap.CompressFormat.JPEG, quality, ByteArrayOutputStream); causes OOM for big Images in my Android Project. Previously i was using libjpeg-turbo…
Balamurugan G
  • 21
  • 1
  • 7
1
vote
1 answer

Technology -scans file in Libjpeg

Please explain, how does the technology -scans file in libjpeg
Lorents
  • 21
  • 1
1
vote
1 answer

YCbCr input directly from jpeg loader

I need to extract CbCr chroma data from JPEG images, for image analysis. (in C/C++) As I understand it, the JPEG "raw data" is compressed YCbCr. Am I correct in this assumption? How can I verify this for a given image? I am currently using…
mousomer
  • 2,632
  • 2
  • 24
  • 25
1
vote
0 answers

JPEG image color conversion issue

I have a JPEG image (say of size 10*10) and i want to perform a color conversion of some part of this JPEG image. For example I want to perform color conversion for the image width starting from column "1 to 10". In this case after conversion the…
1
vote
2 answers

Can't compile libjpeg-turbo for iOS on Xcode 5 / Clang toolchain with SIMD / NEON support

Looks like with Xcode 5 and the removal of LLVM-GCC-4.2 and its replacement by Clang, building libjpeg-turbo for iOS devices now fails during the compilation of NEON support. Configure step: export PLATFORM="iPhoneOS" export IPHONE_SDK="7.0" export…
Pol
  • 3,848
  • 1
  • 38
  • 55
1
vote
1 answer

Scaling using libjpegturbo in java

I have an image that I want to re-scale the size so that the file size will be small. By using libjpegturbo class TJScalingFactor and TJCompressor, I am still unable to re-scale the image as there is no method which allow height and width to be…
1
vote
0 answers

libjpeg-turbo in android app not using SIMD

I successfully compiled libjpeg-turbo libraries in my android app following the recipe here: libjpeg-turbo for android. Trying to assess the performance improvement of NEON SIMD instructions in the library, I tried to enable/disable NEON support.…
1
vote
1 answer

How to install libjpeg-turbo8 on Ubuntu 12.0.4

As suggested by Google, I'm trying to get http://jpegclub.org/jpegtran/ working on my Ubuntu server, but I'm getting the error: "jpegtran: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or…
DemiImp
  • 968
  • 8
  • 18
0
votes
0 answers

Outdated libjpeg-turbo Library Contains known Security Flaw ( BETA) for react-native android app

I have a native mobile app with react (react-native) and I see the message above only for the android saying libjpeg-turbo library in versions prior to 2.0.2 is affected by so and so. I did some research, could not find the library in the…
lonewolf
  • 31
  • 6
0
votes
0 answers

cant locate and install libjpeg.so.8 in my github actions

I want to use libjpeg.so.8 in my github actions workflow, but can't. I've tried installing libjpeg0 but im unable to. Maybe you could know any way around this? I've also tried installing libjpeg-turbo8 but get error: libjpeg-turbo8. I tried both…