impl MBType {
pub fn is_intra(&self) -> bool {
- match *self {
- MBType::Intra(_, _) |
- MBType::Intra4x4(_, _, _) => true,
- _ => false,
- }
+ matches!(*self, MBType::Intra(_, _) | MBType::Intra4x4(_, _, _))
}
pub fn get_last(&self) -> bool {
match *self {
}
pub fn apply_ipred_luma(&self, mode: PredMode, ipred: &IPredContext, dst: &mut Residue) {
let mut tmp = [0; 256];
- (&mut tmp).ipred16(16, mode, ipred);
+ tmp.ipred16(16, mode, ipred);
dst.set_luma_from_diff(&self.luma, &tmp);
}
pub fn fill_ipred_luma(&mut self, mode: PredMode, ipred: &IPredContext) {