Skip to content

Add support for DX Film Edge read #684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add support for DX Film Edge read
  • Loading branch information
Merinorus committed Dec 10, 2023
commit 51a11904a68a21df41f3b5bb816c587c6550590b
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ Thanks a lot for your contribution!
| EAN-8 | Code 128 | rMQR Code |
| EAN-13 | Codabar | Aztec |
| DataBar | DataBar Expanded | DataMatrix |
| | ITF | PDF417 |
| | | MaxiCode (partial) |
| | DX Film Edge | PDF417 |
| | ITF | MaxiCode (partial) |

[Note:]
* DataBar used to be called RSS.
* DataBar, MaxiCode, Micro QR Code and rMQR Code are not supported for writing.
* DataBar, DX Film Edge, MaxiCode, Micro QR Code and rMQR Code are not supported for writing.
* Building with C++20 (see [CMakeLists.txt](https://github.com/zxing-cpp/zxing-cpp/blob/d4b0f502775857f257d13efd25fb840ece1bca3e/CMakeLists.txt#L45)) changes the behaviour of the library: it then supports multi-symbol and position independent detection for DataMatrix. This comes at a noticable performace cost. C++20 is enabled by default for the Android, iOS, Python and WASM wrappers.

## Getting Started
Expand Down
2 changes: 2 additions & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ if (BUILD_READERS)
src/oned/ODDataBarExpandedBitDecoder.cpp
src/oned/ODDataBarExpandedReader.h
src/oned/ODDataBarExpandedReader.cpp
src/oned/ODDXFilmEdgeReader.h
src/oned/ODDXFilmEdgeReader.cpp
src/oned/ODITFReader.h
src/oned/ODITFReader.cpp
src/oned/ODMultiUPCEANReader.h
Expand Down
1 change: 1 addition & 0 deletions core/src/BarcodeFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ static BarcodeFormatName NAMES[] = {
{BarcodeFormat::DataBar, "DataBar"},
{BarcodeFormat::DataBarExpanded, "DataBarExpanded"},
{BarcodeFormat::DataMatrix, "DataMatrix"},
{BarcodeFormat::DXFilmEdge, "DXFilmEdge"},
{BarcodeFormat::EAN8, "EAN-8"},
{BarcodeFormat::EAN13, "EAN-13"},
{BarcodeFormat::ITF, "ITF"},
Expand Down
7 changes: 4 additions & 3 deletions core/src/BarcodeFormat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright 2016 Nu-book Inc.
* Copyright 2016 ZXing authors
*/
Expand Down Expand Up @@ -40,12 +40,13 @@ enum class BarcodeFormat
UPCE = (1 << 15), ///< UPC-E
MicroQRCode = (1 << 16), ///< Micro QR Code
RMQRCode = (1 << 17), ///< Rectangular Micro QR Code
DXFilmEdge = (1 << 18), ///< DX Film Edge Barcode

LinearCodes = Codabar | Code39 | Code93 | Code128 | EAN8 | EAN13 | ITF | DataBar | DataBarExpanded | UPCA | UPCE,
LinearCodes = Codabar | Code39 | Code93 | Code128 | EAN8 | EAN13 | ITF | DataBar | DataBarExpanded | DXFilmEdge | UPCA | UPCE,
MatrixCodes = Aztec | DataMatrix | MaxiCode | PDF417 | QRCode | MicroQRCode | RMQRCode,
Any = LinearCodes | MatrixCodes,

_max = RMQRCode, ///> implementation detail, don't use
_max = DXFilmEdge, ///> implementation detail, don't use
};

ZX_DECLARE_FLAGS(BarcodeFormats, BarcodeFormat)
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy