From: DRC Date: Wed, 16 Nov 2016 21:08:16 +0000 (-0600) Subject: TJBench: Fix regression/-nowrite always enabled X-Git-Tag: 1.5.2~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74e4c793cd769d5bcead0a816cb85f71663e6889;p=libjpeg-turbo TJBench: Fix regression/-nowrite always enabled Introduced by eb59b6e72d8098a1f7b8c7e0c710b32eb6f5dc45 --- diff --git a/ChangeLog.md b/ChangeLog.md index 71ddcaa..75bb040 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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 ===== diff --git a/java/TJBench.java b/java/TJBench.java index 19db789..23fab61 100644 --- a/java/TJBench.java +++ b/java/TJBench.java @@ -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"