- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for cbP8 (0.03 sec)
-
src/image/png/writer.go
binary.BigEndian.PutUint32(e.tmp[4:8], uint32(b.Dy())) // Set bit depth and color type. switch e.cb { case cbG8: e.tmp[8] = 8 e.tmp[9] = ctGrayscale case cbTC8: e.tmp[8] = 8 e.tmp[9] = ctTrueColor case cbP8: e.tmp[8] = 8 e.tmp[9] = ctPaletted case cbP4: e.tmp[8] = 4 e.tmp[9] = ctPaletted case cbP2: e.tmp[8] = 2
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/reader.go
) // A cb is a combination of color type and bit depth. const ( cbInvalid = iota cbG1 cbG2 cbG4 cbG8 cbGA8 cbTC8 cbP1 cbP2 cbP4 cbP8 cbTCA8 cbG16 cbGA16 cbTC16 cbTCA16 ) func cbPaletted(cb int) bool { return cbP1 <= cb && cb <= cbP8 } func cbTrueColor(cb int) bool { return cb == cbTC8 || cb == cbTC16 } // Filter type, as per the PNG spec.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 26K bytes - Viewed (0)