Home
last modified time | relevance | path

Searched refs:ecl (Results 1 – 22 of 22) sorted by relevance

/third_party/qrcodegen/java-fast/io/nayuki/fastqrcodegen/
DQrCode.java69 public static QrCode encodeText(String text, Ecc ecl) { in encodeText() argument
71 Objects.requireNonNull(ecl); in encodeText()
73 return encodeSegments(segs, ecl); in encodeText()
89 public static QrCode encodeBinary(byte[] data, Ecc ecl) { in encodeBinary() argument
91 Objects.requireNonNull(ecl); in encodeBinary()
93 return encodeSegments(Arrays.asList(seg), ecl); in encodeBinary()
114 public static QrCode encodeSegments(List<QrSegment> segs, Ecc ecl) { in encodeSegments() argument
115 return encodeSegments(segs, ecl, MIN_VERSION, MAX_VERSION, -1, true); in encodeSegments()
143 …public static QrCode encodeSegments(List<QrSegment> segs, Ecc ecl, int minVersion, int maxVersion,… in encodeSegments() argument
145 Objects.requireNonNull(ecl); in encodeSegments()
[all …]
DQrSegmentAdvanced.java63 …public static List<QrSegment> makeSegmentsOptimally(String text, QrCode.Ecc ecl, int minVersion, i… in makeSegmentsOptimally() argument
66 Objects.requireNonNull(ecl); in makeSegmentsOptimally()
79 …int dataCapacityBits = QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bits avail… in makeSegmentsOptimally()
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
DQrCode.java69 public static QrCode encodeText(CharSequence text, Ecc ecl) { in encodeText() argument
71 Objects.requireNonNull(ecl); in encodeText()
73 return encodeSegments(segs, ecl); in encodeText()
89 public static QrCode encodeBinary(byte[] data, Ecc ecl) { in encodeBinary() argument
91 Objects.requireNonNull(ecl); in encodeBinary()
93 return encodeSegments(Arrays.asList(seg), ecl); in encodeBinary()
114 public static QrCode encodeSegments(List<QrSegment> segs, Ecc ecl) { in encodeSegments() argument
115 return encodeSegments(segs, ecl, MIN_VERSION, MAX_VERSION, -1, true); in encodeSegments()
143 …public static QrCode encodeSegments(List<QrSegment> segs, Ecc ecl, int minVersion, int maxVersion,… in encodeSegments() argument
145 Objects.requireNonNull(ecl); in encodeSegments()
[all …]
DQrSegmentAdvanced.java63 …public static List<QrSegment> makeSegmentsOptimally(CharSequence text, QrCode.Ecc ecl, int minVers… in makeSegmentsOptimally() argument
66 Objects.requireNonNull(ecl); in makeSegmentsOptimally()
79 …int dataCapacityBits = QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bits avail… in makeSegmentsOptimally()
/third_party/qrcodegen/rust-no-heap/src/
Dlib.rs164 …pub fn encode_text<'b>(text: &str, tempbuffer: &'b mut [u8], mut outbuffer: &'a mut [u8], ecl: QrC… in encode_text()
172 …let (datacodewordslen, ecl, version) = QrCode::encode_segments_to_codewords(&[], outbuffer, ecl, m… in encode_text()
173 return Ok(Self::encode_codewords(outbuffer, datacodewordslen, tempbuffer, ecl, version, mask)); in encode_text()
187 …let (datacodewordslen, ecl, version) = QrCode::encode_segments_to_codewords(&[seg], outbuffer, ecl in encode_text()
188 Ok(Self::encode_codewords(outbuffer, datacodewordslen, tempbuffer, ecl, version, mask)) in encode_text()
220 …y<'b>(dataandtempbuffer: &'b mut [u8], datalen: usize, mut outbuffer: &'a mut [u8], ecl: QrCodeEcc, in encode_binary()
231 …let (datacodewordslen, ecl, version) = QrCode::encode_segments_to_codewords(&[seg], outbuffer, ecl in encode_binary()
232 Ok(Self::encode_codewords(outbuffer, datacodewordslen, dataandtempbuffer, ecl, version, mask)) in encode_binary()
251 mut ecl: QrCodeEcc, minversion: Version, maxversion: Version, boostecl: bool) in encode_segments_to_codewords()
255 …assert!(outbuffer.len() >= QrCode::get_num_data_codewords(maxversion, ecl), "Invalid buffer length… in encode_segments_to_codewords()
[all …]
/third_party/qrcodegen/c/
Dqrcodegen.c57 testable void addEccAndInterleave(uint8_t data[], int version, enum qrcodegen_Ecc ecl, uint8_t resu…
58 testable int getNumDataCodewords(int version, enum qrcodegen_Ecc ecl);
68 static void drawFormatBits(enum qrcodegen_Ecc ecl, enum qrcodegen_Mask mask, uint8_t qrcode[]);
130 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl) { in qrcodegen_encodeText() argument
134 …return qrcodegen_encodeSegmentsAdvanced(NULL, 0, ecl, minVersion, maxVersion, mask, boostEcl, temp… in qrcodegen_encodeText()
158 …return qrcodegen_encodeSegmentsAdvanced(&seg, 1, ecl, minVersion, maxVersion, mask, boostEcl, temp… in qrcodegen_encodeText()
168 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl) { in qrcodegen_encodeBinary() argument
179 …return qrcodegen_encodeSegmentsAdvanced(&seg, 1, ecl, minVersion, maxVersion, mask, boostEcl, data… in qrcodegen_encodeBinary()
197 enum qrcodegen_Ecc ecl, uint8_t tempBuffer[], uint8_t qrcode[]) { in qrcodegen_encodeSegments() argument
198 return qrcodegen_encodeSegmentsAdvanced(segs, len, ecl, in qrcodegen_encodeSegments()
[all …]
Dqrcodegen.h188 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl);
227 enum qrcodegen_Ecc ecl, int minVersion, int maxVersion, enum qrcodegen_Mask mask, bool boostEcl);
264 enum qrcodegen_Ecc ecl, uint8_t tempBuffer[], uint8_t qrcode[]);
302 …n_encodeSegmentsAdvanced(const struct qrcodegen_Segment segs[], size_t len, enum qrcodegen_Ecc ecl,
Dqrcodegen-test.c49 void addEccAndInterleave(uint8_t data[], int version, enum qrcodegen_Ecc ecl, uint8_t result[]);
50 int getNumDataCodewords(int version, enum qrcodegen_Ecc ecl);
108 …c uint8_t *addEccAndInterleaveReference(const uint8_t *data, int version, enum qrcodegen_Ecc ecl) { in addEccAndInterleaveReference() argument
110 size_t numBlocks = (size_t)NUM_ERROR_CORRECTION_BLOCKS[(int)ecl][version]; in addEccAndInterleaveReference()
111 size_t blockEccLen = (size_t)ECC_CODEWORDS_PER_BLOCK[(int)ecl][version]; in addEccAndInterleaveReference()
162 for (int ecl = 0; ecl < 4; ecl++) { in testAddEccAndInterleave() local
163 size_t dataLen = (size_t)getNumDataCodewords(version, (enum qrcodegen_Ecc)ecl); in testAddEccAndInterleave()
171 uint8_t *expectOutput = addEccAndInterleaveReference(pureData, version, (enum qrcodegen_Ecc)ecl); in testAddEccAndInterleave()
185 addEccAndInterleave(paddedData, version, (enum qrcodegen_Ecc)ecl, actualOutput); in testAddEccAndInterleave()
/third_party/qrcodegen/rust/src/
Dlib.rs159 pub fn encode_text(text: &str, ecl: QrCodeEcc) -> Result<Self,DataTooLong> { in encode_text()
161 QrCode::encode_segments(&segs, ecl) in encode_text()
173 pub fn encode_binary(data: &[u8], ecl: QrCodeEcc) -> Result<Self,DataTooLong> { in encode_binary()
175 QrCode::encode_segments(&segs, ecl) in encode_binary()
192 pub fn encode_segments(segs: &[QrSegment], ecl: QrCodeEcc) -> Result<Self,DataTooLong> { in encode_segments()
193 QrCode::encode_segments_advanced(segs, ecl, Version::MIN, Version::MAX, None, true) in encode_segments()
211 pub fn encode_segments_advanced(segs: &[QrSegment], mut ecl: QrCodeEcc, in encode_segments_advanced()
220 …let datacapacitybits: usize = QrCode::get_num_data_codewords(version, ecl) * 8; // Number of data… in encode_segments_advanced()
237 ecl = newecl; in encode_segments_advanced()
251 let datacapacitybits: usize = QrCode::get_num_data_codewords(version, ecl) * 8; in encode_segments_advanced()
[all …]
/third_party/qrcodegen/cpp/
Dqrcodegen.hpp252 private: static int getFormatBits(Ecc ecl);
265 public: static QrCode encodeText(const char *text, Ecc ecl);
274 public: static QrCode encodeBinary(const std::vector<std::uint8_t> &data, Ecc ecl);
290 public: static QrCode encodeSegments(const std::vector<QrSegment> &segs, Ecc ecl,
334 public: QrCode(int ver, Ecc ecl, const std::vector<std::uint8_t> &dataCodewords, int msk);
451 private: static int getNumDataCodewords(int ver, Ecc ecl);
Dqrcodegen.cpp236 int QrCode::getFormatBits(Ecc ecl) { in getFormatBits() argument
237 switch (ecl) { in getFormatBits()
247 QrCode QrCode::encodeText(const char *text, Ecc ecl) { in encodeText() argument
249 return encodeSegments(segs, ecl); in encodeText()
253 QrCode QrCode::encodeBinary(const vector<uint8_t> &data, Ecc ecl) { in encodeBinary() argument
255 return encodeSegments(segs, ecl); in encodeBinary()
259 QrCode QrCode::encodeSegments(const vector<QrSegment> &segs, Ecc ecl, in encodeSegments() argument
267 int dataCapacityBits = getNumDataCodewords(version, ecl) * 8; // Number of data bits available in encodeSegments()
287 ecl = newEcl; in encodeSegments()
300 size_t dataCapacityBits = static_cast<size_t>(getNumDataCodewords(version, ecl)) * 8; in encodeSegments()
[all …]
/third_party/qrcodegen/typescript-javascript/
Dqrcodegen.ts61 public static encodeText(text: string, ecl: QrCode.Ecc): QrCode {
63 return QrCode.encodeSegments(segs, ecl);
71 public static encodeBinary(data: Readonly<Array<byte>>, ecl: QrCode.Ecc): QrCode {
73 return QrCode.encodeSegments([seg], ecl);
88 public static encodeSegments(segs: Readonly<Array<QrSegment>>, ecl: QrCode.Ecc,
100 …const dataCapacityBits: int = QrCode.getNumDataCodewords(version, ecl) * 8; // Number of data bit…
113 ecl = newEcl;
127 const dataCapacityBits: int = QrCode.getNumDataCodewords(version, ecl) * 8;
145 return new QrCode(version, ecl, dataCodewords, mask);
364 const ecl: QrCode.Ecc = this.errorCorrectionLevel; constant
[all …]
Dqrcodegen-input-demo.ts78 const ecl: qrcodegen.QrCode.Ecc = getInputErrorCorrectionLevel(); constant
85 …const qr: qrcodegen.QrCode = qrcodegen.QrCode.encodeSegments(segs, ecl, minVer, maxVer, mask, boos…
/third_party/qrcodegen/rust-no-heap/examples/
Dqrcodegen-demo.rs125 let (datacodewordslen, ecl, version) = QrCode::encode_segments_to_codewords( in do_segment_demo()
128 …let qr = QrCode::encode_codewords(&mut outbuffer, datacodewordslen, &mut tempbuffer, ecl, version,… in do_segment_demo()
148 let (datacodewordslen, ecl, version) = QrCode::encode_segments_to_codewords( in do_segment_demo()
150 …let qr = QrCode::encode_codewords(&mut outbuffer, datacodewordslen, &mut tempbuffer, ecl, version,… in do_segment_demo()
180 let (datacodewordslen, ecl, version) = QrCode::encode_segments_to_codewords( in do_segment_demo()
182 …let qr = QrCode::encode_codewords(&mut outbuffer, datacodewordslen, &mut tempbuffer, ecl, version,… in do_segment_demo()
/third_party/qrcodegen/python/
Dqrcodegen.py51 def encode_text(text: str, ecl: QrCode.Ecc) -> QrCode:
58 return QrCode.encode_segments(segs, ecl)
62 def encode_binary(data: Union[bytes,Sequence[int]], ecl: QrCode.Ecc) -> QrCode:
67 return QrCode.encode_segments([QrSegment.make_bytes(data)], ecl)
73 …def encode_segments(segs: Sequence[QrSegment], ecl: QrCode.Ecc, minversion: int = 1, maxversion: i…
89 …datacapacitybits: int = QrCode._get_num_data_codewords(version, ecl) * 8 # Number of data bits av…
103 ecl = newecl
114 datacapacitybits = QrCode._get_num_data_codewords(version, ecl) * 8
132 return QrCode(version, ecl, datacodewords, mask)
511 def _get_num_data_codewords(ver: int, ecl: QrCode.Ecc) -> int:
[all …]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DAstroTest.java151 Ecliptic ecl = new Ecliptic(eclLat, eclLong); in TestCoverage() local
152 logln("ecliptic: " + ecl); in TestCoverage()
171 logln(" equ ecl: " + astro.eclipticToEquatorial(ecl)); in TestCoverage()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DAstroTest.java154 Ecliptic ecl = new Ecliptic(eclLat, eclLong); in TestCoverage() local
155 logln("ecliptic: " + ecl); in TestCoverage()
174 logln(" equ ecl: " + astro.eclipticToEquatorial(ecl)); in TestCoverage()
/third_party/icu/icu4c/source/test/intltest/
Dastrotst.cpp170 CalendarAstronomer::Ecliptic ecl(eclLat, eclLong); in TestCoverage() local
174 logln("ecliptic: " + ecl.toString()); in TestCoverage()
190 logln((UnicodeString)" equ ecl: " + (anAstro->eclipticToEquatorial(eq,ecl)).toString()); in TestCoverage()
/third_party/FatFs/source/
Dff.c1163 DWORD scl = clst, ecl = clst; in remove_chain() local
1200 if (ecl + 1 == nxt) { /* Is next cluster contiguous? */ in remove_chain()
1201 ecl = nxt; in remove_chain()
1204 rt[1] = clst2sect(fs, ecl) + fs->csize - 1; /* End of data area to be freed */ in remove_chain()
1206 scl = ecl = nxt; in remove_chain()
/third_party/skia/third_party/externals/icu/source/data/misc/
DsupplementalData.txt8758 "ecl~p",
20806 "ecl",
/third_party/icu/icu4c/source/data/misc/
DsupplementalData.txt8965 "ecl~p",
21286 "ecl",
/third_party/chromium/patch/
D0001-cve.patch69473 zNVSs7Y7T%qAk}5C_RX+rH>D1b;%z)d6Z*ecl!a+=DaZ3ERQhI<p&6Jxx5fiBw-74a