TurboJPEG: Opt. enable arithmetic entropy coding

This commit is contained in:
DRC
2022-11-15 23:10:35 -06:00
parent bc086c4427
commit 6002720c37
37 changed files with 476 additions and 293 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C)2011, 2013, 2018 D. R. Commander. All Rights Reserved.
* Copyright (C)2011, 2013, 2018, 2022 D. R. Commander. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@@ -131,7 +131,7 @@ public class TJTransform extends Rectangle {
* generated by this particular transform. Progressive entropy coding will
* generally improve compression relative to baseline entropy coding (the
* default), but it will reduce compression and decompression performance
* considerably.
* considerably. Can be combined with {@link #OPT_ARITHMETIC}.
*/
public static final int OPT_PROGRESSIVE = 32;
/**
@@ -140,6 +140,14 @@ public class TJTransform extends Rectangle {
* and ICC profile data) from the source image to the output image.
*/
public static final int OPT_COPYNONE = 64;
/**
* This option will enable arithmetic entropy coding in the output image
* generated by this particular transform. Arithmetic entropy coding will
* generally improve compression relative to Huffman entropy coding (the
* default), but it will reduce compression and decompression performance
* considerably. Can be combined with {@link #OPT_PROGRESSIVE}.
*/
public static final int OPT_ARITHMETIC = 128;
/**