mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
internal/png: Update
This commit is contained in:
parent
864eebbcd9
commit
42757b735b
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
// Package png implements a PNG image decoder and encoder.
|
// Package png implements a PNG image decoder and encoder.
|
||||||
//
|
//
|
||||||
// The PNG specification is at http://www.w3.org/TR/PNG/.
|
// The PNG specification is at https://www.w3.org/TR/PNG/.
|
||||||
package png
|
package png
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -75,7 +75,7 @@ type interlaceScan struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// interlacing defines Adam7 interlacing, with 7 passes of reduced images.
|
// interlacing defines Adam7 interlacing, with 7 passes of reduced images.
|
||||||
// See http://www.w3.org/TR/PNG/#8Interlace
|
// See https://www.w3.org/TR/PNG/#8Interlace
|
||||||
var interlacing = []interlaceScan{
|
var interlacing = []interlaceScan{
|
||||||
{8, 8, 0, 0},
|
{8, 8, 0, 0},
|
||||||
{8, 8, 4, 0},
|
{8, 8, 4, 0},
|
||||||
@ -91,7 +91,7 @@ var interlacing = []interlaceScan{
|
|||||||
// present), IDAT and IEND chunks must appear in that order. There may be
|
// present), IDAT and IEND chunks must appear in that order. There may be
|
||||||
// multiple IDAT chunks, and IDAT chunks must be sequential (i.e. they may not
|
// multiple IDAT chunks, and IDAT chunks must be sequential (i.e. they may not
|
||||||
// have any other chunks between them).
|
// have any other chunks between them).
|
||||||
// http://www.w3.org/TR/PNG/#5ChunkOrdering
|
// https://www.w3.org/TR/PNG/#5ChunkOrdering
|
||||||
const (
|
const (
|
||||||
dsStart = iota
|
dsStart = iota
|
||||||
dsSeenIHDR
|
dsSeenIHDR
|
||||||
|
Loading…
Reference in New Issue
Block a user