Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IDAT (0.03 sec)

  1. 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)
Back to top