let dst = &mut data[x + y * stride..];
let mut dst_idx = stride;
for line in 0..4 {
- for x in 0..4 {
- let top = dst[dst_idx - stride + x * 2];
- let cur = cell[(line + 1) * 4 + x];
- dst[dst_idx + x * 2] = (top + cur) >> 1;
- dst[dst_idx + x * 2 + 1] = (top + cur) >> 1;
- dst[dst_idx + stride + x * 2] = cur;
- dst[dst_idx + stride + x * 2 + 1] = cur;
+ for x in 0..8 {
+ let top = dst[dst_idx - stride + x];
+ let cur = cell[(line + 1) * 4 + x / 2];
+ dst[dst_idx + x] = (top + cur) >> 1;
+ dst[dst_idx + stride + x] = cur;
}
dst_idx += stride * 2;
}
let enc_options = &[
NAOption { name: super::TRY_AGAIN_OPTION, value: NAValue::Bool(true) },
];
- encode_test("indeo3.avi", enc_options, Some(4), &[0xc23464a1, 0xd319a38f, 0x7421165e, 0x42786e50]);
+ encode_test("indeo3.avi", enc_options, Some(4), &[0x17d742bc, 0x6f4c1200, 0x79422bac, 0xc46b5dd0]);
}
/*#[test]
fn test_indeo3_roundtrip() {