Home
last modified time | relevance | path

Searched refs:numalign (Results 1 – 3 of 3) sorted by relevance

/third_party/qrcodegen/python/
Dqrcodegen.py248 numalign: int = len(alignpatpos)
249 skips: Sequence[Tuple[int,int]] = ((0, 0), (0, numalign - 1), (numalign - 1, 0))
250 for i in range(numalign):
251 for j in range(numalign):
486 numalign: int = ver // 7 + 2
488 (ver * 4 + numalign * 2 + 1) // (numalign * 2 - 2) * 2
489 result: List[int] = [(self._size - 7 - i * step) for i in range(numalign - 1)] + [6]
502 numalign: int = ver // 7 + 2
503 result -= (25 * numalign - 10) * numalign - 55
/third_party/qrcodegen/rust/src/
Dlib.rs394 let numalign: usize = alignpatpos.len(); in draw_function_patterns() localVariable
395 for i in 0 .. numalign { in draw_function_patterns()
396 for j in 0 .. numalign { in draw_function_patterns()
398 if !(i == 0 && j == 0 || i == 0 && j == numalign - 1 || i == numalign - 1 && j == 0) { in draw_function_patterns()
703 let numalign = i32::from(ver) / 7 + 2; in get_alignment_pattern_positions() localVariable
705 {(i32::from(ver) * 4 + numalign * 2 + 1) / (numalign * 2 - 2) * 2}; in get_alignment_pattern_positions()
706 let mut result: Vec<i32> = (0 .. numalign-1).map( in get_alignment_pattern_positions()
722 let numalign: usize = ver / 7 + 2; in get_num_raw_data_modules() localVariable
723 result -= (25 * numalign - 10) * numalign - 55; in get_num_raw_data_modules()
/third_party/qrcodegen/rust-no-heap/src/
Dlib.rs798 let numalign: u8 = ver / 7 + 2; localVariable
800 {(ver * 4 + numalign * 2 + 1) / (numalign * 2 - 2) * 2};
801 let result = &mut resultbuf[ .. usize::from(numalign)];
802 for i in 0 .. numalign-1 {
819 let numalign: usize = ver / 7 + 2; in get_num_raw_data_modules() localVariable
820 result -= (25 * numalign - 10) * numalign - 55; in get_num_raw_data_modules()