aboutsummaryrefslogtreecommitdiff
path: root/jpegtran.c
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-03-04 03:20:34 +0000
committerDRC <dcommander@users.sourceforge.net>2011-03-04 03:20:34 +0000
commitba5ea5143e48b71234414139e3b4cb244599e875 (patch)
treeb024a941311e884fc703fc69ec7607fd32f94411 /jpegtran.c
parentf2cef492b141e085841acbfd89a98c2eb782781f (diff)
downloadlibjpeg-turbo-ba5ea5143e48b71234414139e3b4cb244599e875.tar.gz
Tile generation did not work with TJXFORM_HFLIP, because the underlying transform code was using an in-place algorithm, which modified the source coefficients after the first tile was generated. Thus, create a new option which allows TurboJPEG to turn off the in-place horizontal flip if there are multiple transforms being performed from the same set of coefficients.
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@495 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jpegtran.c')
-rw-r--r--jpegtran.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/jpegtran.c b/jpegtran.c
index 73dbe530..f861464b 100644
--- a/jpegtran.c
+++ b/jpegtran.c
@@ -142,6 +142,7 @@ parse_switches (j_compress_ptr cinfo, int argc, char **argv,
transformoption.trim = FALSE;
transformoption.force_grayscale = FALSE;
transformoption.crop = FALSE;
+ transformoption.slow_hflip = FALSE;
cinfo->err->trace_level = 0;
/* Scan command line options, adjust parameters */