mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 00:55:11 +01:00
Tighten png.INTERLACING type refinement
This commit is contained in:
1 parent
0a7168fd64
commit
00b329872a
1 file changed
+1
-1
@@ -965,7 +965,7 @@ pub func decoder.workbuf_len() base.range_ii_u64 {
|
|||||||
// 3: log2(y_stride)
|
// 3: log2(y_stride)
|
||||||
// 4: y_stride - y_offset - 1
|
// 4: y_stride - y_offset - 1
|
||||||
// 5: y_offset
|
// 5: y_offset
|
||||||
pri const INTERLACING : array[8] array[6] base.u8[..= 8] = [
|
pri const INTERLACING : array[8] array[6] base.u8[..= 7] = [
|
||||||
[0, 0, 0, 0, 0, 0], // non-interlaced; xy_stride=1, xy_offset=0
|
[0, 0, 0, 0, 0, 0], // non-interlaced; xy_stride=1, xy_offset=0
|
||||||
[3, 7, 0, 3, 7, 0], // interlace_pass == 1
|
[3, 7, 0, 3, 7, 0], // interlace_pass == 1
|
||||||
[3, 3, 4, 3, 7, 0], // interlace_pass == 2
|
[3, 3, 4, 3, 7, 0], // interlace_pass == 2
|
||||||
|
|||||||
Reference in new issue
Block a user