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
0
votes
0 answers

How to generate libjpeg-turbo.so files for different CPU architectures on Ubuntu 16.04?

I have downloaded the libjpeg-turbo library from https://github.com/libjpeg-turbo/libjpeg-turbo/ and executed the below CMake commands in Ubuntu 16.04: $ cd {path of my libjpeg-turbo library} $ cmake -G"Unix Makefiles" {path of my libjpeg-turbo…
Ingrid Cooper
  • 1,191
  • 3
  • 16
  • 27
0
votes
0 answers

jpegtran jpeg with -scale 8/16 can't be opened, smartscaling issue?

I m trying get a scaled down version of a jpeg with jpegtran by using the scaling feature. this works (it produces a jpeg that can be opened by any program) cjpeg.exe -scale 8/16 -outfile halfrez.jpg -optimize -progressive fullrez.ppm but this…
fred_
  • 1,486
  • 1
  • 19
  • 31
0
votes
1 answer

Building libjepeg-turbo from source doesn't build the library libturbojpeg.so*

I'm trying to build libjpeg-turbo from source to include 12 bit support. I downloaded the source code from here (2.0.1) then followed instruction given in Building.md cd libjpeg-turbo-2.0.1 mkdir build && cd build cmake -G"Unix…
spacemanspiff
  • 113
  • 12
0
votes
1 answer

Automator Script to watch folder and compress jpegs with Guetzli

I am trying to create a folder action to compress images with guetzli. I am watching the images folder and if there is an image without 'compp' in filename I run guetzli on it. Here is the script. It works great if I run it from automator but when I…
Yasin Yaqoobi
  • 1,888
  • 3
  • 27
  • 38
0
votes
1 answer

Resize jpeg images only where the quality >80 using either mozjpeg/jpegtran/jpegoptim

Hi I want to resize jpeg image that were uploaded as optimized, but because of a software error all recoded to 100% jpeg quality. (so we upload say 80% quality image and after upload it is 100% quality and the filesize is enormous!) So how can I -…
snh_nl
  • 2,877
  • 6
  • 32
  • 62
0
votes
2 answers

Link libjpeg-turbo in vs c++ 2017

my problem is fairly simple.. I'm not able to link libjpeg-turbo in my project. I'm looking to try this exemple, but i'm not able to compile : I'm not sure what i'm doing wrong :
WoofWoofDude
  • 617
  • 1
  • 7
  • 13
0
votes
1 answer

racket: manipulating jpeg files

I'm trying to manipulate jpeg files in racket lang. I failed to find any racket library with good cross-platform support (linux, mac osx, win10). Does exist any? Actions I want to perform are read exif, scale images and store it to database.
Jaro
  • 3,799
  • 5
  • 31
  • 47
0
votes
0 answers

Why I need the pixel format to decompress images with libjpeg turbo

Background story: Right now I am working on an image encode and decode service. I will attach the service to a sensor (ex. camera) like to compress the image, send it over the network to receive it at the end with a client service, where the image…
Mozi
  • 1
  • 1
0
votes
1 answer

Mozjpeg - Progressive jpeg image rendering showing a grayscale image first

I am using the following command to generate progressive JPEGs using mozjpeg (cjpeg utility) cjpeg -quality 85 -outfile outputfile.jpg inputfile.jpg On rendering this output image, a grayscale image is first shown which is then followed by a…
user7665040
0
votes
1 answer

Weird "border" with jpegtran when rotating an image

I'm using jpegtran to rotate my images, but it seems to be doing some weird stuff. The same code/logic worked on my other server. Here is a test case I've done: test.jpg is the original image, then I run: jpegtran -rotate 90 test1.jpg >…
Andrew Newby
  • 4,941
  • 6
  • 40
  • 81
0
votes
0 answers

tjDecompress2 takes more time to execute if called after a delay

The following code is written to test the perfomance of libjpeg-turbo on my system unsigned char *source; unsigned int _jpegSize = 0; unsigned long long GetTime( void ) { struct timeval tv; struct timezone tz; gettimeofday(&tv,…
Ahmed_Faraz
  • 615
  • 4
  • 25
0
votes
0 answers

How to build libjpeg-turbo with Neon(SIMP) on odroid with linux environment

I am trying to use libjpeg-turbo with NEON enabled on odroid having linux environment. I followed the instruction given in this http://cubieboard.blogspot.in/2013/02/raspbian-opencv-libjpeg-turbo.html post however didn't notice any change in image…
vasu gupta
  • 61
  • 3
  • 9
0
votes
1 answer

TurboJPEG API from libjpeg-turbo-1.5.1-vc.exe produces wrong output

I wrote a test-program in C in Visual Studio 2015 for testing libjpeg-turbo TurboJPEG-API. In this test-program I generate an image of 800x800 RGB pixels and write this to disk. When I use TJSAMP_GRAY at the tjCompress2 function the produced image…
Matthias
  • 948
  • 1
  • 6
  • 25
0
votes
2 answers

The compressing speed of libjpeg-turbo has no difference with libjpeg in my program

My program runs on the android device, and the device is ARM system with NEON supported. At first I used libjpeg to compress the RGB image(800*480) to jpeg. The speed was about 70ms for per image, but it was too slow for me. Later I found the…
gold_luck
  • 49
  • 8
0
votes
2 answers

Need example of jpeglib-turbo that works in VS2013 x64

I'm trying to learn how to use the jpeg-turbo library. And I'm have a devil of a time getting started. The example.c example in the doc folder, and every single example I find on the web, crashes in VS2013 when I try to read a .jpg file. They…
ScottA
  • 61
  • 1
  • 6