772
772
s->buf[10] = 0; /* compression type */
773
773
s->buf[11] = 0; /* filter type */
774
774
s->buf[12] = is_progressive; /* interlace type */
776
776
png_write_chunk(f, MKTAG('I', 'H', 'D', 'R'), s->buf, 13);
778
778
/* put the palette if needed */