You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/exe/cimbar/cimbar.cpp
+48-20Lines changed: 48 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -101,9 +101,11 @@ namespace {
101
101
}
102
102
103
103
template <typename FilenameIterable>
104
-
intencode(const FilenameIterable& infiles, const std::string& outpath, int ecc, int color_bits, int compression_level, bool no_fountain)
104
+
intencode(const FilenameIterable& infiles, const std::string& outpath, int ecc, int color_bits, int compression_level, boollegacy_mode, boolno_fountain)
("m,mode", "Select a cimbar mode. B (the default) is new to 0.6.x. 4C is the 0.5.x config. [B,4C]", cxxopts::value<string>()->default_value("B"))
180
185
("z,compression", "Compression level. 0 == no compression.", cxxopts::value<int>()->default_value(turbo::str::str(compressionLevel)))
181
-
("color-correct", "Toggle decoding color correction. 1 == on. 0 == off.", cxxopts::value<int>()->default_value("1"))
186
+
("color-correct", "Toggle decoding color correction. 2 == full (fountain mode only). 1 == simple. 0 == off.", cxxopts::value<int>()->default_value("2"))
187
+
("color-correction-file", "Debug -- save color correction matrix generated during fountain decode, or use it for non-fountain decodes", cxxopts::value<string>())
182
188
("encode", "Run the encoder!", cxxopts::value<bool>())
183
189
("no-deskew", "Skip the deskew step -- treat input image as already extracted.", cxxopts::value<bool>())
184
190
("no-fountain", "Disable fountain encode/decode. Will also disable compression.", cxxopts::value<bool>())
@@ -216,48 +222,70 @@ int main(int argc, char** argv)
0 commit comments