forge
Explore
Log in

Don't you dare go Hollow

U6: ec-h264 ZIGZAG_4X4 re-exported from ec_h264_syntax::sps instead of a local copy (same table, one source)

Browse files at this commit

3a45ca65030aa34739035d9c00e70af548d65540Ahmet Kaan GümüşParent: c2b1112
crates/ec-h264/src/tables.rsmodified+1 -4
@@ -625,9 +625,6 @@ pub const TC0: [[u8; 52]; 3] = [
625 ],625 ],
626 ];626 ];
627 627
628-/// 4x4 zig-zag scan: scan position -> raster index (Table 8-13, frame scan).
629-pub const ZIGZAG_4X4: [u8; 16] = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15];
630-
631 /// 4x4 field scan: scan position -> raster index (Table 8-13, field scan).628 /// 4x4 field scan: scan position -> raster index (Table 8-13, field scan).
632 pub const FIELD_4X4: [u8; 16] = [0, 4, 1, 8, 12, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15];629 pub const FIELD_4X4: [u8; 16] = [0, 4, 1, 8, 12, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15];
633 630
@@ -640,7 +637,7 @@ pub const FIELD_8X8: [u8; 64] = [
640 637
641 /// 8x8 zig-zag scan: scan position -> raster index (Table 8-14, frame scan).638 /// 8x8 zig-zag scan: scan position -> raster index (Table 8-14, frame scan).
642 /// Shared with the scaling-list parser, which reads the same scan.639 /// Shared with the scaling-list parser, which reads the same scan.
643-pub use ec_h264_syntax::sps::ZIGZAG_8X8;640+pub use ec_h264_syntax::sps::{ZIGZAG_4X4, ZIGZAG_8X8};
644 641
645 /// luma4x4BlkIdx -> (x, y) position in 4-sample units within the macroblock642 /// luma4x4BlkIdx -> (x, y) position in 4-sample units within the macroblock
646 /// (spec 6.4.3 inverse 4x4 luma block scan).643 /// (spec 6.4.3 inverse 4x4 luma block scan).