mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
feat: ported qr-model1 support from zxing-cpp
This commit is contained in:
@@ -67,6 +67,8 @@ pub enum BarcodeFormat {
|
||||
|
||||
MICRO_QR_CODE,
|
||||
|
||||
RECTANGULAR_MICRO_QR_CODE,
|
||||
|
||||
/** RSS 14 */
|
||||
RSS_14,
|
||||
|
||||
@@ -108,6 +110,7 @@ impl Display for BarcodeFormat {
|
||||
BarcodeFormat::PDF_417 => "pdf 417",
|
||||
BarcodeFormat::QR_CODE => "qrcode",
|
||||
BarcodeFormat::MICRO_QR_CODE => "mqr",
|
||||
BarcodeFormat::RECTANGULAR_MICRO_QR_CODE => "rmqr",
|
||||
BarcodeFormat::RSS_14 => "rss 14",
|
||||
BarcodeFormat::RSS_EXPANDED => "rss expanded",
|
||||
BarcodeFormat::TELEPEN => "telepen",
|
||||
@@ -150,6 +153,9 @@ impl From<&str> for BarcodeFormat {
|
||||
"mqr" | "microqr" | "micro_qr" | "micro_qrcode" | "micro_qr_code" | "mqr_code" => {
|
||||
BarcodeFormat::MICRO_QR_CODE
|
||||
}
|
||||
"rmqr" | "rectangular_mqr" | "rectangular_micro_qr" | "rmqr_code" => {
|
||||
BarcodeFormat::RECTANGULAR_MICRO_QR_CODE
|
||||
}
|
||||
"rss 14" | "rss_14" | "rss14" | "gs1 databar" | "gs1 databar coupon"
|
||||
| "gs1_databar_coupon" => BarcodeFormat::RSS_14,
|
||||
"rss expanded" | "expanded rss" | "rss_expanded" => BarcodeFormat::RSS_EXPANDED,
|
||||
|
||||
Reference in New Issue
Block a user