Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
libjpeg-turbo
/
90d6c3824bb2dbc98ac04522704c2b4a276cb3f5
/
java
/
TJUnitTest.java
c33347c
Add @Deprecated to the deprecated Java methods, so javac will actually print deprecation warnings, as opposed to just listing the methods as deprecated in javadoc; remove the use of the deprecated methods by our own test programs.
by DRC
· 10 years ago
a15f19f
Wordsmithing & formatting tweaks
by DRC
· 10 years ago
2c0c807
Fix an issue that prevented tjEncodeYUV2() and TJCompressor.encodeYUV() from working properly if the source image was very tiny. Basically, jpeg_start_compress() was attempting to write the JPEG headers, which was overrunning the YUV buffer. This patch removes the call to jpeg_start_compress() in tjEncodeYUV2() and replaces it with calls to the individual routines that are necessary to initialize the color converter and downsampler. TJUnitTest has also been modified to test for this condition (the buffer size regression test now works in YUV mode.)
by DRC
· 10 years ago
49df783
Clean up the output of tjunittest and TJUnitTest
by DRC
· 11 years ago
67bee86
Code formatting tweaks
by DRC
· 11 years ago
cac1051
Fix the behavior of the alpha-enabled colorspace constants whenever libjpeg-turbo is built without SIMD support and merged upsampling is used.
by DRC
· 12 years ago
67ce3b2
Added new alpha channel colorspace constants/pixel formats, so applications can specify that they need the unused byte in a 4-component RGB output buffer set to 0xFF when decompressing.
by DRC
· 13 years ago
c08e8c1
When decompressing to a 4-byte RGB buffer, set the unused byte to 0xFF so it can be interpreted as an opaque alpha channel.
by DRC
· 13 years ago
724c56b
Use random noise to ensure that the JPEG image generated in the buffer size test exceeds the size of the uncompressed source image.
by DRC
· 13 years ago
9b49f0e
Re-work TJBUFSIZE() to take into account the level of chrominance subsampling
by DRC
· 13 years ago
215aa8b
Re-factor checkBufYUV() function to more closely resemble re-factored checkBuf() function
by DRC
· 13 years ago
f962fbb
Refactor slightly to match new C code
by DRC
· 13 years ago
b2f9415
Slight refactor to put ScalingFactor into its own class (mainly because the $ in the class name was wreaking havoc on the build scripts, but also to add a few convenience methods to it) and to create a separate loader class so we can provide a .jar file with the MinGW distribution that loads the correct DLL
by DRC
· 13 years ago
b6ed7d3
Use a different naming convention, to avoid conflict with jpegut
by DRC
· 13 years ago
4f8c295
Clean up compiler warnings
by DRC
· 13 years ago
2c74e51
More Java API cleanup
by DRC
· 13 years ago
92549de
Java code cleanup + Java docs
by DRC
· 13 years ago
d0a8136
Handle 4:4:0 (transposed 4:2:2 subsampling)
by DRC
· 13 years ago
2e2358e
Print stack trace on error
by DRC
· 13 years ago
f7f3ea4
Use consistent formatting conventions
by DRC
· 13 years ago
109a578
tjGetScaledSize() would never be able to accommodate scaling factors > 1, so replace it with a function that returns a list of fractional scaling factors that TurboJPEG supports.
by DRC
· 13 years ago
438affe
by DRC
· 13 years ago
4f1580c
Implement YUV encode/decode methods at the Java level; Remove some of the arguments from the Java API and replace with get/set methods; General API cleanup; Fix BufferedImage grayscale tests in TJUnitTest
by DRC
· 13 years ago
84a1bcc
Support for compressing from/decompressing to a BufferedImage in the Java wrapper
by DRC
· 13 years ago
3bad53f
More JNI cleanup + added unit test and fixed bugs uncovered by it
by DRC
· 13 years ago