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

NDK libjpeg-turbo shared library build faild with armeabi

I use sorccu's Github code to build shared library by just editing the .mk file last line to "include $(BUILD_SHARED_LIBRARY)". https://github.com/openstf/android-libjpeg-turbo But it failed with: ....... [armeabi] Compile thumb :…
W. X
  • 129
  • 2
  • 7
0
votes
1 answer

How to compile libjpeg-turbo for Android on OS X?

I'm trying to build libjpeg-turbo for Android on OS X. Here is the script that I'm using: # Set these variables to suit your…
Buddy
  • 1,808
  • 3
  • 19
  • 28
0
votes
1 answer

JPEG source-code and quantization mode change - C language

I'm assigned to do a project that consists in changing the quantization in the JPEG source-code, from the quantization tables to Lloyd-Max quantization. The problem is not knowing what to do (I know how to change the quantization), but where to find…
0
votes
1 answer

Libjpeg write text at some specific position

Is there a way to output a text at some (x,y) position having a certain "size", such as a numeral '1'? For example in gnuplot, we can use plot ... using x:y:size w labels center... Is there something similar which I can use with the libjpeg…
0
votes
0 answers

How to save a JPEG file from RGB buffer in the easiest way (VS2008 C++)?

I've seen many guides and there always seem to be something missing. If someone can post here a complete "idiot's" guide it will be great! In any case, I will provide here what I've tried to do so far: I've tried to download libjpeg and got confused…
brkeyal
  • 1,317
  • 1
  • 16
  • 22
0
votes
1 answer

Unable to install libjpeg-turbo8-dev on Ubuntu

I tried to install libjpeg-turbo8-dev like this. feng@HP:~$ sudo apt-get install libjpeg-turbo8-dev [sudo] password for feng: Reading package lists... Done Building dependency tree Reading state information... Done The following packages…
fengyl
  • 1
  • 1
  • 2
0
votes
1 answer

libjpeg-turbo for Android: how to organize runtime selection of NEON / non-NEON code?

I'm using a libjpeg-turbo port for Android. It's not much different from the base jpeg-turbo in terms of source code: http://git.linaro.org/gitweb?p=people/tomgall/libjpeg-turbo/libjpeg-turbo.git;a=shortlog;h=refs/heads/android There is a module…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
0
votes
1 answer

How to replace libjpeg with libjpeg-turbo when using gstreamer sdk android?

The project https://github.com/iiordanov/bVNC using gstreamer sdk(http://docs.gstreamer.com/display/GstSDK/Installing+for+Android+development). the jpeg library used by it is jpeglib. I want to replace jpeglib with libjpeg-turbo to improve mjpeg…
linuxqc
  • 1
  • 1
0
votes
1 answer

Shared library truncated when i run build script

I want to use libjpeg.so in my android project. I have precompiled shared library. Build script in my project: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libjpeg LOCAL_SRC_FILES :=../lib1/libjpeg.so include…
ego
  • 63
  • 1
  • 7
0
votes
1 answer

realloc image buffer in turbojpeg cpp

I'm using turbojpeg for reading images. I'm doing something along these lines: m_data = tjAlloc(MAX_RAW_SIZE); c_jpeg_buffer = tjAlloc(MAX_RAW_SIZE); tjDecompressHeader2(jpegDecompressor, c_jpeg_buffer, _jpegSize, &tj_width, &tj_height,…
mousomer
  • 2,632
  • 2
  • 24
  • 25
0
votes
1 answer

libjpeg-turbo java encode jpeg

Ive installed libjpeg-turbo on my mac and added the jar and libs to my eclipse project. Im trying to create jpeg byte[] from my bufferedimage: TJCompressor tj = new TJCompressor(); tj.compress(image, TJ.PF_BGR); The error I get is:…
user2076941
  • 153
  • 2
  • 11
-1
votes
2 answers

libjpeg not exact pixel values even with quality of 100

I am writing a program to read some text files and write it to a JPEG file using libjpeg. When I set the quality to 100 (withjpeg_set_quality), there is actually no quality degradation in grayscale. However, when I move to RGB, even with a quality…
makhlaghi
  • 3,856
  • 6
  • 27
  • 34
-1
votes
1 answer

Why read_JPEG_file() fails to write image (libjpeg/jpeg-turbo) in C?

It is slightly modified code from example.c from jpeg-trubo (that code contained errors). When I try to write image data to file it fails when cinfo.next_scanline==9 it crashes on line with jpeg_write_scanlines. Error: SigSegv error.…
John Boe
  • 3,501
  • 10
  • 37
  • 71
-1
votes
1 answer

Android NDK - How can I decode, modify and then encode a JPG on a bytearray?

Tonight I'm working on Android. I've to decode, modify and then encode a JPG on a bytearray. I'm using NDK. Some people told me to use libjpeg-turbo. But I can't figure out how to add this lib to NDK. Any help please ?
Luca D'Amico
  • 3,192
  • 2
  • 26
  • 38
1 2 3 4 5 6
7