Undocument TJ*PARAM_RESTARTBLOCKS for lossless

TJ*PARAM_RESTARTBLOCKS technically works with lossless compression, but
it is not useful, since the value must be equal to the number of samples
in a row.  (In other words, it is no different than
TJ*PARAM_RESTARTINROWS, except that it requires the user to do more
math.)
This commit is contained in:
DRC
2024-08-28 18:36:37 -04:00
parent d62079717c
commit 5cf7960678
8 changed files with 15 additions and 20 deletions

View File

@@ -765,8 +765,7 @@ public final class TJ {
*/
public static final int PARAM_LOSSLESSPT = 17;
/**
* JPEG restart marker interval in MCU blocks (lossy) or samples (lossless)
* [compression only]
* JPEG restart marker interval in MCU blocks [lossy compression only]
*
* <p>The nature of entropy coding is such that a corrupt JPEG image cannot
* be decompressed beyond the point of corruption unless it contains restart
@@ -778,8 +777,8 @@ public final class TJ {
*
* <p><b>Value</b>
* <ul>
* <li> the number of MCU blocks or samples between each restart marker
* <i>[default: <code>0</code> (no restart markers)]</i>
* <li> the number of MCU blocks between each restart marker <i>[default:
* <code>0</code> (no restart markers)]</i>
* </ul>
*
* <p> Setting this parameter to a non-zero value sets