TJBench: Fix regression/-nowrite always enabled

Introduced by eb59b6e72d
This commit is contained in:
DRC
2016-11-16 15:08:16 -06:00
parent a280fa630c
commit 74e4c793cd
2 changed files with 5 additions and 1 deletions

View File

@@ -9,6 +9,10 @@ building with Android NDK platforms prior to android-21 (5.0).
2. Fixed a regression introduced by 1.5.1[1] that prevented the MIPS DSPR2 SIMD
code in libjpeg-turbo from building.
3. Fixed a regression introduced by 1.5 beta1[11] that prevented the Java
version of TJBench from outputting any reference images (the `-nowrite` switch
was accidentally enabled by default.)
1.5.1
=====

View File

@@ -35,7 +35,7 @@ import org.libjpegturbo.turbojpeg.*;
class TJBench {
static int flags = 0, quiet = 0, pf = TJ.PF_BGR, yuvpad = 1, warmup = 1;
static boolean compOnly, decompOnly, doTile, doYUV, write;
static boolean compOnly, decompOnly, doTile, doYUV, write = true;
static final String[] pixFormatStr = {
"RGB", "BGR", "RGBX", "BGRX", "XBGR", "XRGB", "GRAY"