Setup encoder window size. @param lgwin log2(LZ window size), or -1 for default
(int lgwin)
| 84 | * @param lgwin log2(LZ window size), or -1 for default |
| 85 | */ |
| 86 | public Parameters setWindow(int lgwin) { |
| 87 | if ((lgwin != -1) && ((lgwin < 10) || (lgwin > 24))) { |
| 88 | throw new IllegalArgumentException("lgwin should be in range [10, 24], or -1"); |
| 89 | } |
| 90 | this.lgwin = lgwin; |
| 91 | return this; |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Setup encoder compression mode. |