1
0
mirror of https://github.com/libjpeg-turbo/libjpeg-turbo.git synced 2026-10-23 11:48:53 +03:00

22 Commits

Author SHA1 Message Date
DRC
174da652ef indexedcolortest: Test GIF, Targa, and OS/2 BMP 2026-03-26 15:45:53 -04:00
DRC
285744829a rdpng.c: Autodetect grayscale indexed PNG images 2026-03-26 15:45:53 -04:00
DRC
c3b9e94d48 Support reading indexed-color PNG files
+ create an automated test for both color quantization and indexed-color
packed-pixel image I/O
2026-03-25 16:09:44 -04:00
DRC
fa789edffe TJ: Support 4:1:0 and 2:4 subsampling
Closes #436
2026-03-14 14:56:36 -04:00
DRC
54bd58cc30 PNG image I/O support
Note that this changes the behavior of tj3GetICCProfile() in the
following ways:

- It can now be called with a compression instance, thus allowing the
  caller to retrieve an ICC profile (or the size thereof) extracted from
  a PNG image by tj3LoadImage*().
- The ICC profile extracted from a JPEG image can now be retrieved
  multiple times.  If I recall, I didn't allow this in TurboJPEG 3.1
  because there were already two buffer copies, one in
  jpeg_read_icc_profile() and another in the JNI wrapper.  That is no
  longer relevant, since the TurboJPEG Java API is now a separate
  project.

These changes should be backward-compatible.  Applications that treat
tj3GetICCProfile() as a mailbox rather than a newsstand will still work.
The changes were necessary in order to:

- allow decompression programs to both extract the ICC profile from a
  JPEG image and embed it into a PNG output image, and
- allow compression programs to retrieve the ICC profile size from a PNG
  input image (which is important when computing the worst-case JPEG
  destination buffer size.)

Closes #645
2026-03-12 17:45:51 -04:00
DRC
d42e297442 Merge branch 'main' into dev 2026-03-12 12:34:12 -04:00
DRC
24f4b78e37 tj*test/croptest: Redirect stderr to test logs
Otherwise CMake will swallow any error messages that may be printed,
which makes it difficult to diagnose test failures.
2026-03-11 10:10:34 -04:00
DRC
4d0df37232 Allow 12-bit output when decompressing 8-bit JPEG
Referring to #867, this is useful for shadow recovery in underexposed
images generated by certain digital cameras.
2026-03-03 16:27:49 -05:00
DRC
ec3e6dcf46 Replace the TurboJPEG Java API with a JNA wrapper
Closes #832
2026-02-25 22:07:45 -05:00
DRC
f38f78943a TurboJPEG example tests: Fix error if WITH_JAVA==0 2026-02-23 22:54:50 -05:00
DRC
d6bacdc3f0 croptest: Use modern ImageMagick syntax 2026-01-04 12:22:16 -05:00
DRC
1b1356a565 TJComp: Explicitly specify data precision
This is just a code readability thing.  The logic effectively caused the
data precision to default to 8 if -precision was not specified, but that
was not obvious.

This commit also modifies tjcomptest so that it tests TJComp with no
-precision argument, to ensure that the data precision defaults to 8.
2024-09-23 15:24:48 -04:00
DRC
a272858212 TurboJPEG: ICC profile support 2024-09-06 19:55:41 -04:00
DRC
8db41dad22 Merge branch 'main' into dev 2024-09-05 15:15:08 -04:00
DRC
e4c67aff50 TJBench: More argument consistification
-copynone --> -copy none

Add '-copy all', even though it's the default.

-rgb, -bgr, -rgbx, -bgrx, -xbgr, -xrgb, -gray, -cmyk -->
-pixelformat {rgb|bgr|rgbx|bgrx|xbgr|xrgb|gray|cmyk}
(This is mainly so -gray won't interfere with -grayscale.)

Fix an ArrayIndexOutOfBoundsException that occurred when passing -dct
to the Java version without specifying the DCT algorithm (oversight from
24fbf64d31a0758c63bcc27cf5d92fc5611717d0.)
2024-09-04 12:41:15 -04:00
DRC
d43ed7a1ff Merge branch 'main' into dev 2024-09-04 08:38:13 -04:00
DRC
37851a32c0 TurboJPEG: Add restart markers when transforming 2024-09-03 09:26:33 -04:00
DRC
a66398fee8 Move md5cmp/md5sum into ${CMAKE_BINARY_DIR}/test 2024-09-02 17:31:56 -04:00
DRC
f0bc90d9e0 Test: Move test logs into ${CMAKE_BINARY_DIR}/test 2024-09-02 17:31:34 -04:00
DRC
df04d26a99 Test: Clean up TurboJPEG example test logs 2024-09-02 17:31:30 -04:00
DRC
fad6100704 Replace TJExample with IJG workalike programs 2024-09-01 14:05:15 -04:00
DRC
9b1198968b Move test scripts into test/ 2024-08-31 18:07:13 -04:00