bw.write_buf(&self.zbuf)?;
}
-
+
Ok(())
}
}
NACodecTypeInfo::Video(vinfo) => {
self.width = vinfo.width;
self.height = vinfo.height;
-
+
let out_info = NAVideoInfo::new(vinfo.width, vinfo.height, false, vinfo.format);
let info = NACodecInfo::new("zmbv", NACodecTypeInfo::Video(out_info), None);
let mut stream = NAStream::new(StreamType::Video, stream_id, info, encinfo.tb_num, encinfo.tb_den, 0);
},
0xFC => {
const MV_PART: [i8; 16] = [ 0, 4, 8, 12, 16, 20, 24, 28, -32, -4, -8, -12, -16, -20, -24, -28 ];
-
+
let idx = br.read_byte()? as usize;
let x = MV_PART[(idx & 0xF) as usize] as isize;
let y = MV_PART[(idx >> 4) as usize] as isize;
_ => 256 << (bsz_id - 8),
};
let pts = u64::from(read_utf8(&buf[4..])?);
-
+
validate!(idx < buf.len());
-
+
(blksamps, pts)
};
clip_tab[(32 + i) as usize] = i;
}
for i in lim..q {
- let val = q - i;
+ let val = q - i;
clip_tab[(32 - i) as usize] = -val;
clip_tab[(32 + i) as usize] = val;
}