Skip to content
Snippets Groups Projects
Commit 14ba13b0 authored by Vojtech Moravec's avatar Vojtech Moravec
Browse files

Code formatting.

parent 8b9e7a6c
No related branches found
No related tags found
No related merge requests found
package azgracompress.compression;
import azgracompress.cache.ICacheFile;
import azgracompress.data.V3i;
import azgracompress.fileformat.QuantizationType;
import azgracompress.io.InputData;
......@@ -59,13 +60,20 @@ public class CompressionOptions {
/**
* Flag whether the CLI app should be verbose while running.
*/
private boolean verbose;
private boolean verbose = false;
public CompressionOptions() {
int cores = Runtime.getRuntime().availableProcessors();
this.workerCount = (cores / 2);
}
public CompressionOptions(final ICacheFile codebookCacheFile) {
this();
quantizationType = codebookCacheFile.getHeader().getQuantizationType();
codebookType = CodebookType.Global;
}
public void setVerbose(boolean verbose) {
this.verbose = verbose;
}
......@@ -140,5 +148,7 @@ public class CompressionOptions {
this.codebookType = codebookType;
}
public boolean isConsoleApplication() {return false;}
public boolean isConsoleApplication() {
return false;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment