Lines Matching refs:ihdr
102 uint8_t ihdr[13+4]; /* length should be 13, make room for type (IHDR) */
110 if (file_read(png, ihdr, 1, 13+4) != 13+4)
117 calc_crc = crc32(calc_crc, ihdr, 13+4);
123 png->width = get_ul(ihdr+4);
124 png->height = get_ul(ihdr+8);
125 png->depth = ihdr[12];
126 png->color_type = ihdr[13];
127 png->compression_method = ihdr[14];
128 png->filter_method = ihdr[15];
129 png->interlace_method = ihdr[16];