buf: [0; MAX_CELL_SIZE + 160],
rbuf: [0; MAX_CELL_SIZE + 160],
deltas: [0; MAX_CELL_SIZE],
- cell: Indeo3Cell::new(0, 0, false),
+ cell: Indeo3Cell::new(0, 0),
out: [0; MAX_CELL_SIZE / 2 + 1],
osize: 0,
}
}
self.out[0] = (mode << 4) | (idx as u8);
-
- if idx >= 8 {
- requant_idx = Some(idx - 8);
- }
} else {
self.out[0] = (mode << 4) | (cb_no1 as u8);
requant_idx = Some(cb_no1 - 8);
}
}
- if self.cell.get_y() == 0 {
+ if self.cell.get_y() == 0 || !matches!(mode, 0 | 3 | 10) {
requant_idx = None;
}