diff --git a/ChangeLog.md b/ChangeLog.md index 731500b3..d59e90f5 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -60,6 +60,11 @@ immediately halt a compression/decompression/transform operation if it encounters a warning from the underlying libjpeg API (the default behavior is to allow the operation to complete unless a fatal error is encountered.) +5. Introduced a new flag in the TurboJPEG C and Java APIs (`TJFLAG_PROGRESSIVE` +and `TJ.FLAG_PROGRESSIVE`, respectively) that causes the library to use +progressive entropy coding in JPEG images generated by compression and +transform operations. + 1.5.2 ===== diff --git a/doc/html/group___turbo_j_p_e_g.html b/doc/html/group___turbo_j_p_e_g.html index f5f63990..8c66c4b5 100644 --- a/doc/html/group___turbo_j_p_e_g.html +++ b/doc/html/group___turbo_j_p_e_g.html @@ -131,6 +131,9 @@ Macros
Disable buffer (re)allocation.
If passed to one of the JPEG compression or transform functions, this flag will cause those functions to generate an error if the JPEG image buffer is invalid or too small rather than attempting to allocate or reallocate that buffer. This reproduces the behavior of earlier versions of TurboJPEG.
+ + + +| #define TJFLAG_PROGRESSIVE | +
Use progressive entropy coding in JPEG images generated by the compression and transform functions.
+Progressive entropy coding will generally improve compression relative to baseline entropy coding (the default), but it will reduce compression and decompression performance considerably.
+128public static final intFLAG_PROGRESSIVE16384public static final intFLAG_STOPONWARNING8192public static final intNUMCS5public static final intNUMERR2public static final intNUMPF12public static final intNUMSAMP6public static final intPF_ABGR9public static final intPF_ARGB10public static final intPF_BGR1public static final intPF_BGRA8public static final intPF_BGRX3public static final intPF_CMYK11public static final intPF_GRAY6public static final intPF_RGB0public static final intPF_RGBA7public static final intPF_RGBX2public static final intPF_XBGR4public static final intPF_XRGB5public static final intSAMP_4115public static final intSAMP_4202public static final intSAMP_4221public static final intSAMP_4404public static final intSAMP_4440public static final intstatic intFLAG_PROGRESSIVE
+static intFLAG_STOPONWARNING
static intNUMCS
static intNUMERR
static intNUMPF
static intNUMSAMP
static intPF_ABGR
static intPF_ARGB
static intPF_BGR
static intPF_BGRA
static intPF_BGRX
static intPF_CMYK
static intPF_GRAY
static intPF_RGB
static intPF_RGBA
static intPF_RGBX
static intPF_XBGR
static intPF_XRGB
static intSAMP_411
static intSAMP_420
static intSAMP_422
static intSAMP_440
static intSAMP_444
static intSAMP_GRAY
public static final int FLAG_PROGRESSIVE+