Searched refs:n_slice (Results 1 – 2 of 2) sorted by relevance
507 for n_slice in 1..=4 { in test_message_reader()509 let expect = vec![len as u8; len * n_slice]; in test_message_reader()511 let mut reader = new_message_reader(source.clone(), n_slice); in test_message_reader()520 n_slice in test_message_reader()531 n_slice in test_message_reader()535 let mut reader = new_message_reader(source.clone(), n_slice); in test_message_reader()538 assert_eq!(dest, expect, "len: {}, nslice: {}", len, n_slice); in test_message_reader()544 let mut reader = new_message_reader(source.clone(), n_slice); in test_message_reader()545 reader.consume(source.len() * (n_slice - 1)); in test_message_reader()553 n_slice in test_message_reader()[all …]
169 unsigned int n_slice = 0; in iterate() local212 for (n_slice = 0; n_slice < sizeof(slice_pixels_ptr) / sizeof(slice_pixels_ptr[0]); ++n_slice) in iterate()214 slice_pixels_ptr[n_slice][0] = 0; in iterate()215 slice_pixels_ptr[n_slice][1] = (unsigned char)(n_slice * 255 / 4); in iterate()216 slice_pixels_ptr[n_slice][2] = (unsigned char)(n_slice * 255 / 8); in iterate()217 slice_pixels_ptr[n_slice][3] = (unsigned char)(n_slice * 255 / 12); in iterate()234 for (n_slice = 0; n_slice < sizeof(slice_pixels_ptr) / sizeof(slice_pixels_ptr[0]); ++n_slice) in iterate()236 unsigned char* ref_slice_ptr = ref_slice_pixels_ptr[n_slice]; in iterate()237 unsigned char* slice_ptr = slice_pixels_ptr[n_slice]; in iterate()