dmx.duration = ddmx.duration;
dmx.tb_den = ddmx.tb_den;
std::mem::swap(&mut dmx.pal, &mut ddmx.pal);
-
+
Ok(size)
}
break;
}
}
- name += if self.be { "be" } else { "le" };
+ name += if self.be { "be" } else { "le" };
return Some(name);
}
if depth == 24 || depth != 8 * self.components {
name.push('p');
}
if self.get_max_depth() > 8 {
- name += if self.be { "be" } else { "le" };
+ name += if self.be { "be" } else { "le" };
}
Some(name)
},
}
}
}
-
+
Ok(if has_skips { FrameType::P } else { FrameType::I })
}
}
}
}
-
Ok(if has_skips { FrameType::P } else { FrameType::I })
}
let idx = br.read(8) as usize;
validate!(idx < self.tables.mod3.len());
for i in 0..5 {
- let k = self.tables.mod3[idx][i] as usize;
+ let k = self.tables.mod3[idx][i] as usize;
samples[i * 2] = QUANT_1BIT[jstereo as usize][k];
}
}
let idx = br.read(8) as usize;
validate!(idx < self.tables.mod3.len());
for i in 0..5 {
- let k = self.tables.mod3[idx][i] as usize;
+ let k = self.tables.mod3[idx][i] as usize;
samples[i] = QUANT_1BIT[jstereo as usize][k];
}
}
let idx = br.read(7) as usize;
validate!(idx < self.tables.mod5.len());
for i in 0..3 {
- let k = self.tables.mod5[idx][i] as usize;
+ let k = self.tables.mod5[idx][i] as usize;
samples[i] = ((k as f32) - 2.0) * 0.5;
}
} else {
let (w, h) = if plane == 0 {
((self.width + 15) & !15, (self.height + 15) & !15)
} else {
- ((self.width / 4 + 15) & !15, (self.height / 4 + 15) & !15)
+ ((self.width / 4 + 15) & !15, (self.height / 4 + 15) & !15)
};
let mvstride = w / 8;
self.mvs.truncate(0);
}
}
}
-
+
Ok(())
}
fn do_mc_p(&mut self, br: &mut BitReader, mb_type: usize, sstate: &mut SState, dframe: &mut NASimpleVideoFrame<u8>) -> DecoderResult<()> {