From 3a45ca65030aa34739035d9c00e70af548d65540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 13:35:37 +0300 Subject: [PATCH] U6: ec-h264 ZIGZAG_4X4 re-exported from ec_h264_syntax::sps instead of a local copy (same table, one source) --- crates/ec-h264/src/tables.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/ec-h264/src/tables.rs b/crates/ec-h264/src/tables.rs index 78471ba8..55a9296d 100644 --- a/crates/ec-h264/src/tables.rs +++ b/crates/ec-h264/src/tables.rs @@ -625,9 +625,6 @@ pub const TC0: [[u8; 52]; 3] = [ ], ]; -/// 4x4 zig-zag scan: scan position -> raster index (Table 8-13, frame scan). -pub const ZIGZAG_4X4: [u8; 16] = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15]; - /// 4x4 field scan: scan position -> raster index (Table 8-13, field scan). pub const FIELD_4X4: [u8; 16] = [0, 4, 1, 8, 12, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15]; @@ -640,7 +637,7 @@ pub const FIELD_8X8: [u8; 64] = [ /// 8x8 zig-zag scan: scan position -> raster index (Table 8-14, frame scan). /// Shared with the scaling-list parser, which reads the same scan. -pub use ec_h264_syntax::sps::ZIGZAG_8X8; +pub use ec_h264_syntax::sps::{ZIGZAG_4X4, ZIGZAG_8X8}; /// luma4x4BlkIdx -> (x, y) position in 4-sample units within the macroblock /// (spec 6.4.3 inverse 4x4 luma block scan).