diff options
author | metamuffin <metamuffin@disroot.org> | 2025-05-07 17:49:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-05-07 17:49:48 +0200 |
commit | f8df7f3ff8028164f45953e3491e943e0ce7f642 (patch) | |
tree | 2ba262a46fb48926f71ac087f601f4ab84a06139 /test2/src/main.rs | |
parent | 24ecbd5e91f125bd68a4d538eeb5a9839f16a4e6 (diff) | |
download | video-codec-experiments-f8df7f3ff8028164f45953e3491e943e0ce7f642.tar video-codec-experiments-f8df7f3ff8028164f45953e3491e943e0ce7f642.tar.bz2 video-codec-experiments-f8df7f3ff8028164f45953e3491e943e0ce7f642.tar.zst |
fix nv12 bug
Diffstat (limited to 'test2/src/main.rs')
-rw-r--r-- | test2/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test2/src/main.rs b/test2/src/main.rs index bbbf8d3..0b69026 100644 --- a/test2/src/main.rs +++ b/test2/src/main.rs @@ -82,7 +82,7 @@ impl Frame { .saturating_add_signed(buf[(i + x) as usize] as i8 - 127); } } - (BLOCK_SIZE * BLOCK_SIZE + BLOCK_SIZE * BLOCK_SIZE / 4) as usize + (BLOCK_SIZE * BLOCK_SIZE + BLOCK_SIZE * BLOCK_SIZE / 2) as usize } fn copy_block(aframe: &Frame, bframe: &mut Frame, aoff: IVec2, boff: IVec2) { assert_eq!(aframe.res, bframe.res); |