Skip to content

Commit d270b3f

Browse files
committed
ZXingWriter: update supported formats list in EXPERIMENTAL_API case
1 parent a76ba53 commit d270b3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

example/ZXingWriter.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ static void PrintUsage(const char* exePath)
4040
<< " -version Print version information\n"
4141
<< "\n"
4242
<< "Supported formats are:\n";
43+
#ifdef ZXING_EXPERIMENTAL_API
44+
for (auto f : BarcodeFormats::all())
45+
#else
4346
for (auto f : BarcodeFormatsFromString("Aztec Codabar Code39 Code93 Code128 DataMatrix EAN8 EAN13 ITF PDF417 QRCode UPCA UPCE"))
47+
#endif
4448
std::cout << " " << ToString(f) << "\n";
4549

4650
std::cout << "Format can be lowercase letters, with or without '-'.\n"

0 commit comments

Comments
 (0)