} else {
if single_mv { cur_mv } else { bi.mv_f[blk + 1] }
};
-
+
let mut obmcbuf = NASimpleVideoFrame::from_video_buf(&mut self.obmc_buf).unwrap();
if let Some(ref srcbuf) = self.ipbs.get_lastref() {
/// In the decoding process of many codecs there is a need to store some previously decoded information and only immediate top neighbours are used.
/// This can be done by storing either the full information for the whole frame or just the top line and move information for last decoded row to the top every time when row decoding is done.
/// `GenericCache` implements the second approach.
-///
+///
/// # Examples
///
/// Create a cache for one line and use top pixel for prediction:
*codes = ShortCodebookDesc { code: 0, bits: 0 };
}
}
-
+
Ok(())
}
}
macro_rules! idct_1d {
- ($c0: expr, $c1: expr, $c2: expr, $c3: expr, $c4: expr, $c5: expr, $c6: expr, $c7: expr) => {
+ ($c0: expr, $c1: expr, $c2: expr, $c3: expr, $c4: expr, $c5: expr, $c6: expr, $c7: expr) => {
let t0 = $c0 + $c4;
let t1 = $c0 - $c4;
let t2 = $c2 + $c6;