• Home
  • Raw
  • Download

Lines Matching refs:ecl

154 	pub fn encode_text(text: &str, ecl: QrCodeEcc) -> Result<Self,DataTooLong> {  in encode_text()
157 QrCode::encode_segments(&segs, ecl) in encode_text()
169 pub fn encode_binary(data: &[u8], ecl: QrCodeEcc) -> Result<Self,DataTooLong> { in encode_binary()
171 QrCode::encode_segments(&segs, ecl) in encode_binary()
188 pub fn encode_segments(segs: &[QrSegment], ecl: QrCodeEcc) -> Result<Self,DataTooLong> { in encode_segments()
189 QrCode::encode_segments_advanced(segs, ecl, Version::MIN, Version::MAX, None, true) in encode_segments()
207 pub fn encode_segments_advanced(segs: &[QrSegment], mut ecl: QrCodeEcc, in encode_segments_advanced()
215 let datacapacitybits: usize = QrCode::get_num_data_codewords(version, ecl) * 8; in encode_segments_advanced()
234 ecl = newecl; in encode_segments_advanced()
248 let datacapacitybits: usize = QrCode::get_num_data_codewords(version, ecl) * 8; in encode_segments_advanced()
271 Ok(QrCode::encode_codewords(version, ecl, &datacodewords, mask)) in encode_segments_advanced()
282 …pub fn encode_codewords(ver: Version, ecl: QrCodeEcc, datacodewords: &[u8], mut mask: Option<Mask>… in encode_codewords()
289 errorcorrectionlevel: ecl, in encode_codewords()
515 let ecl: QrCodeEcc = self.errorcorrectionlevel; in add_ecc_and_interleave() localVariable
516 assert_eq!(data.len(), QrCode::get_num_data_codewords(ver, ecl), "Illegal argument"); in add_ecc_and_interleave()
519 let numblocks: usize = QrCode::table_get(&NUM_ERROR_CORRECTION_BLOCKS, ver, ecl); in add_ecc_and_interleave()
520 let blockecclen: usize = QrCode::table_get(&ECC_CODEWORDS_PER_BLOCK , ver, ecl); in add_ecc_and_interleave()
731 fn get_num_data_codewords(ver: Version, ecl: QrCodeEcc) -> usize { in get_num_data_codewords()
733 - QrCode::table_get(&ECC_CODEWORDS_PER_BLOCK , ver, ecl) in get_num_data_codewords()
734 * QrCode::table_get(&NUM_ERROR_CORRECTION_BLOCKS, ver, ecl) in get_num_data_codewords()
739 fn table_get(table: &'static [[i8; 41]; 4], ver: Version, ecl: QrCodeEcc) -> usize { in table_get()
740 table[ecl.ordinal()][usize::from(ver.value())] as usize