From f8df7f3ff8028164f45953e3491e943e0ce7f642 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 7 May 2025 17:49:48 +0200 Subject: fix nv12 bug --- test2/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test2/src/main.rs') 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); -- cgit v1.2.3-70-g09d2