Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parsetRNS (0.1 sec)

  1. src/image/png/reader.go

    		// ignorable) for the ctTrueColor and ctTrueColorAlpha color types (section 4.1.2).
    	default:
    		return FormatError("PLTE, color type mismatch")
    	}
    	return d.verifyChecksum()
    }
    
    func (d *decoder) parsetRNS(length uint32) error {
    	switch d.cb {
    	case cbG1, cbG2, cbG4, cbG8, cbG16:
    		if length != 2 {
    			return FormatError("bad tRNS length")
    		}
    		n, err := io.ReadFull(d.r, d.tmp[:length])
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 26K bytes
    - Viewed (0)
Back to top