3#include "reader_2d_config_base.hpp"
11 using namespace Internal;
52 if(minRows < MinRowsLimit_ ||
55 if(minRows_ != minRows)
57 minRows_ =
static_cast<short>(minRows);
68 return static_cast<int>(minRows_);
79 if(maxRows < minRows_ ||
80 maxRows > MaxRowsLimit_)
82 if(maxRows_ != maxRows)
84 maxRows_ =
static_cast<short>(maxRows);
95 return static_cast<int>(maxRows_);
107 if(minColumns < MinColumnsLimit_ ||
108 minColumns > maxColumns_)
110 if(minColumns_ != minColumns)
112 minColumns_ =
static_cast<short>(minColumns);
123 return static_cast<int>(minColumns_);
134 if(maxColumns< minColumns_ ||
135 maxColumns > MaxColumnsLimit_)
137 if(maxColumns_ != maxColumns)
139 maxColumns_ =
static_cast<short>(maxColumns);
150 return static_cast<int>(maxColumns_);
162 const short MinRowsLimit_ = 3;
163 const short MaxRowsLimit_ = 90;
165 const short MinColumnsLimit_ = 1;
166 const short MaxColumnsLimit_ = 30;
182 isActiveOut = pConfig->ReadFromHandle(guard);
187 virtual bool ReadFromHandle_(
const HandleGuard<ReaderConfig>& guard)
override
189 unsigned short tmpLevels;
190 CVB_CALL_CAPI(CvcBcGetPDF417(
reinterpret_cast<std::intptr_t>(guard.Handle()),
199 return tmpLevels != 0;
202 virtual void WriteToHandle_(
bool active, HandleGuard<ReaderConfig>& guard)
override
206 Internal::DoResCall([&]()
208 return CVB_CALL_CAPI(CvcBcSetPDF417(
reinterpret_cast<std::intptr_t>(guard.Handle()),
209 static_cast<unsigned short>(levels_),
220 : Reader2DConfigBase()
Configuration to access parameters of Reader2DConfigBase.
Definition: reader_2d_config_base.hpp:19
Configuration to access parameters of Pdf417.
Definition: pdf417.hpp:17
void SetMaxRows(int maxRows)
Sets the maximum number of data rows.
Definition: pdf417.hpp:77
Pdf417Levels Levels() const
Returns the bit field which specifies the permitted error correction level.
Definition: pdf417.hpp:39
static std::unique_ptr< Pdf417 > FromHandle(const HandleGuard< ReaderConfig > &guard, bool &isActiveOut)
Create object from handle.
Definition: pdf417.hpp:179
int MaxColumns() const
Returns the maximum number of data columns.
Definition: pdf417.hpp:148
void SetLevels(Pdf417Levels levels)
Bit field which specifies the permitted error correction level.
Definition: pdf417.hpp:26
int MinColumns() const
Returns the minimum number of data columns.
Definition: pdf417.hpp:121
void SetMinRows(int minRows)
Sets the minimum number of data rows.
Definition: pdf417.hpp:50
void SetMinColumns(int minColumns)
Sets the minimum number of data columns.
Definition: pdf417.hpp:105
int MaxRows() const
Returns the maximum number of data rows.
Definition: pdf417.hpp:93
int MinRows() const
Returns the minimum number of data rows.
Definition: pdf417.hpp:66
void SetMaxColumns(int maxColumns)
Sets the maximum number of data columns.
Definition: pdf417.hpp:132
Symbology
The symbologies supported by Barcode.
Definition: barcode.hpp:97
@ Pdf417
PDF417 Matrix Code.
Pdf417Levels
Available PDF417 levels.
Definition: barcode.hpp:371
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24