Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zxing-cpp/wrappers/ios/Sources/Wrapper/Writer/ZXIWriterOptions.mm @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 // Copyright 2023 KURZ Digital Solutions GmbH | |
| 2 // | |
| 3 // SPDX-License-Identifier: Apache-2.0 | |
| 4 | |
| 5 #import "ZXIWriterOptions.h" | |
| 6 | |
| 7 const int AZTEC_ERROR_CORRECTION_0 = 0; | |
| 8 const int AZTEC_ERROR_CORRECTION_12 = 1; | |
| 9 const int AZTEC_ERROR_CORRECTION_25 = 2; | |
| 10 const int AZTEC_ERROR_CORRECTION_37 = 3; | |
| 11 const int AZTEC_ERROR_CORRECTION_50 = 4; | |
| 12 const int AZTEC_ERROR_CORRECTION_62 = 5; | |
| 13 const int AZTEC_ERROR_CORRECTION_75 = 6; | |
| 14 const int AZTEC_ERROR_CORRECTION_87 = 7; | |
| 15 const int AZTEC_ERROR_CORRECTION_100 = 8; | |
| 16 const int QR_ERROR_CORRECTION_LOW = 2; | |
| 17 const int QR_ERROR_CORRECTION_MEDIUM = 4; | |
| 18 const int QR_ERROR_CORRECTION_QUARTILE = 6; | |
| 19 const int QR_ERROR_CORRECTION_HIGH = 8; | |
| 20 const int PDF417_ERROR_CORRECTION_0 = 0; | |
| 21 const int PDF417_ERROR_CORRECTION_1 = 1; | |
| 22 const int PDF417_ERROR_CORRECTION_2 = 2; | |
| 23 const int PDF417_ERROR_CORRECTION_3 = 3; | |
| 24 const int PDF417_ERROR_CORRECTION_4 = 4; | |
| 25 const int PDF417_ERROR_CORRECTION_5 = 5; | |
| 26 const int PDF417_ERROR_CORRECTION_6 = 6; | |
| 27 const int PDF417_ERROR_CORRECTION_7 = 7; | |
| 28 const int PDF417_ERROR_CORRECTION_8 = 8; | |
| 29 | |
| 30 @implementation ZXIWriterOptions | |
| 31 | |
| 32 - (instancetype)initWithFormat:(ZXIFormat)format { | |
| 33 self = [super init]; | |
| 34 self.format = format; | |
| 35 self.width = 0; | |
| 36 self.height = 0; | |
| 37 self.ecLevel = -1; | |
| 38 self.margin = -1; | |
| 39 return self; | |
| 40 } | |
| 41 | |
| 42 - (instancetype)initWithFormat:(ZXIFormat)format | |
| 43 width:(int)width | |
| 44 height:(int)height | |
| 45 ecLevel:(int)ecLevel | |
| 46 margin:(int)margin { | |
| 47 self = [super init]; | |
| 48 self.format = format; | |
| 49 self.width = width; | |
| 50 self.height = height; | |
| 51 self.ecLevel = ecLevel; | |
| 52 self.margin = margin; | |
| 53 return self; | |
| 54 } | |
| 55 | |
| 56 @end |
