| Index: xfa/src/fxbarcode/oned/BC_OnedCode128Reader.h
|
| diff --git a/xfa/src/fxbarcode/oned/BC_OnedCode128Reader.h b/xfa/src/fxbarcode/oned/BC_OnedCode128Reader.h
|
| index a99c0e89f8d9fb04bef14dfb3931720c8e62aa9d..1d2c6a1ce0e012618808a49012a578f9f749eabf 100644
|
| --- a/xfa/src/fxbarcode/oned/BC_OnedCode128Reader.h
|
| +++ b/xfa/src/fxbarcode/oned/BC_OnedCode128Reader.h
|
| @@ -17,26 +17,28 @@ class CBC_OnedCode128Reader : public CBC_OneDReader {
|
| CBC_CommonBitArray* row,
|
| int32_t hints,
|
| int32_t& e);
|
| - const static int32_t CODE_PATTERNS[107][7];
|
| - const static int32_t MAX_AVG_VARIANCE;
|
| - const static int32_t MAX_INDIVIDUAL_VARIANCE;
|
| -
|
| - const static int32_t CODE_SHIFT;
|
| - const static int32_t CODE_CODE_C;
|
| - const static int32_t CODE_CODE_B;
|
| - const static int32_t CODE_CODE_A;
|
| - const static int32_t CODE_FNC_1;
|
| - const static int32_t CODE_FNC_2;
|
| - const static int32_t CODE_FNC_3;
|
| - const static int32_t CODE_FNC_4_A;
|
| - const static int32_t CODE_FNC_4_B;
|
| -
|
| - const static int32_t CODE_START_A;
|
| - const static int32_t CODE_START_B;
|
| - const static int32_t CODE_START_C;
|
| - const static int32_t CODE_STOP;
|
| +
|
| + static const int32_t CODE_PATTERNS[107][7];
|
|
|
| private:
|
| + static const int32_t MAX_AVG_VARIANCE = (int32_t)(256 * 0.25f);
|
| + static const int32_t MAX_INDIVIDUAL_VARIANCE = (int32_t)(256 * 0.7f);
|
| +
|
| + static const int32_t CODE_SHIFT = 98;
|
| + static const int32_t CODE_CODE_C = 99;
|
| + static const int32_t CODE_CODE_B = 100;
|
| + static const int32_t CODE_CODE_A = 101;
|
| + static const int32_t CODE_FNC_1 = 102;
|
| + static const int32_t CODE_FNC_2 = 97;
|
| + static const int32_t CODE_FNC_3 = 96;
|
| + static const int32_t CODE_FNC_4_A = 101;
|
| + static const int32_t CODE_FNC_4_B = 100;
|
| +
|
| + static const int32_t CODE_START_A = 103;
|
| + static const int32_t CODE_START_B = 104;
|
| + static const int32_t CODE_START_C = 105;
|
| + static const int32_t CODE_STOP = 106;
|
| +
|
| CFX_Int32Array* FindStartPattern(CBC_CommonBitArray* row, int32_t& e);
|
| int32_t DecodeCode(CBC_CommonBitArray* row,
|
| CFX_Int32Array* counters,
|
|
|