Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
libjpeg-turbo
/
393bac6de47b081593a2b5a293079c9daeb7a470
/
tjunittest.c
4798b7e
Add a blank line before the alpha-enabled colorspace tests in order to improve readability
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
· 11 years ago
49df783
Clean up the output of tjunittest and TJUnitTest
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
e835ee3
Windows doesn't have random()
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
c52c556
by DRC
· 13 years ago
215aa8b
Re-factor checkBufYUV() function to more closely resemble re-factored checkBuf() function
by DRC
· 13 years ago
b8b359a
"jpegut"="tjunittest" & "jpgtest"="tjbench"
by DRC
· 13 years ago