- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IDAT (0.16 sec)
-
src/image/png/reader.go
} // Read presents one or more IDAT chunks as one continuous stream (minus the // intermediate chunk headers and footers). If the PNG data looked like: // // ... len0 IDAT xxx crc0 len1 IDAT yy crc1 len2 IEND crc2 // // then this reader presents xxxyy. For well-formed PNG data, the decoder state // immediately before the first Read call is that d.r is positioned between the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 26K bytes - Viewed (0) -
src/image/png/writer.go
e.tmp[3*256+i] = c1.A } e.writeChunk(e.tmp[:3*len(p)], "PLTE") if last != -1 { e.writeChunk(e.tmp[3*256:3*256+1+last], "tRNS") } } // An encoder is an io.Writer that satisfies writes by writing PNG IDAT chunks, // including an 8-byte header and 4-byte CRC checksum per Write call. Such calls // should be relatively infrequent, since writeIDATs uses a [bufio.Writer]. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 15.4K bytes - Viewed (0) -
src/image/png/writer_test.go
switch name { case "IHDR": bitdepth := data[i+8+8] if bitdepth != tc.bitdepth { t.Errorf("got bitdepth %d, want %d", bitdepth, tc.bitdepth) } case "IDAT": // Uncompress the image data r, err := zlib.NewReader(bytes.NewReader(data[i+8 : i+8+int(length)])) if err != nil { t.Error(err) return } n, err := io.Copy(io.Discard, r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 14 08:14:05 UTC 2022 - 8.9K bytes - Viewed (0)