Home
last modified time | relevance | path

Searched refs:bytes_per_px (Results 1 – 6 of 6) sorted by relevance

/third_party/flutter/skia/third_party/externals/libwebp/imageio/
Dpnmdec.c36 int bytes_per_px; // 1, 3, 4 member
98 info->bytes_per_px = 4; in ReadPAMFields()
101 info->bytes_per_px = 3; in ReadPAMFields()
104 info->bytes_per_px = 1; in ReadPAMFields()
122 info->bytes_per_px = info->depth * (info->max_value > 255 ? 2 : 1); in ReadPAMFields()
145 info->bytes_per_px = 0; in ReadHeader()
163 info->bytes_per_px = info->depth * (info->max_value > 255 ? 2 : 1); in ReadHeader()
169 info->bytes_per_px < info->depth || in ReadHeader()
207 pixel_bytes = (uint64_t)info.width * info.height * info.bytes_per_px; in ReadPNM()
213 (uint64_t)(info.bytes_per_px < 3 ? 3 : info.bytes_per_px) * info.width; in ReadPNM()
[all …]
Dimage_enc.c229 const size_t bytes_per_px = alpha ? 4 : 3; in WritePPMPAM() local
241 if (fwrite(row, width, bytes_per_px, fout) != bytes_per_px) { in WritePPMPAM()
267 const uint32_t bytes_per_px = 2; in WebPWrite16bAsPGM() local
272 fprintf(fout, "P5\n%u %u\n255\n", width * bytes_per_px, height); in WebPWrite16bAsPGM()
274 if (fwrite(rgba, width, bytes_per_px, fout) != bytes_per_px) { in WebPWrite16bAsPGM()
302 const uint32_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteBMP() local
304 const uint32_t line_size = bytes_per_px * width; in WebPWriteBMP()
321 PutLE16(bmp_header + 28, bytes_per_px * 8); // bits per pixel in WebPWriteBMP()
369 const uint8_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteTIFF() local
382 0x02, 0x01, 3, 0, bytes_per_px, 0, 0, 0, // 34: BitsPerSample: 8888 in WebPWriteTIFF()
[all …]
/third_party/skia/third_party/externals/libwebp/imageio/
Dimage_enc.c229 const size_t bytes_per_px = alpha ? 4 : 3; in WritePPMPAM() local
241 if (fwrite(row, width, bytes_per_px, fout) != bytes_per_px) { in WritePPMPAM()
267 const uint32_t bytes_per_px = 2; in WebPWrite16bAsPGM() local
272 fprintf(fout, "P5\n%u %u\n255\n", width * bytes_per_px, height); in WebPWrite16bAsPGM()
274 if (fwrite(rgba, width, bytes_per_px, fout) != bytes_per_px) { in WebPWrite16bAsPGM()
302 const uint32_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteBMP() local
304 const uint32_t line_size = bytes_per_px * width; in WebPWriteBMP()
321 PutLE16(bmp_header + 28, bytes_per_px * 8); // bits per pixel in WebPWriteBMP()
369 const uint8_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteTIFF() local
382 0x02, 0x01, 3, 0, bytes_per_px, 0, 0, 0, // 34: BitsPerSample: 8888 in WebPWriteTIFF()
[all …]
Dpnmdec.c36 int bytes_per_px; member
150 info->bytes_per_px = 0; in ReadHeader()
176 info->bytes_per_px = info->depth * (info->max_value > 255 ? 2 : 1); in ReadHeader()
211 pixel_bytes = (uint64_t)info.width * info.height * info.bytes_per_px; in ReadPNM()
233 offset += info.bytes_per_px * info.width; in ReadPNM()
/third_party/skia/third_party/externals/libwebp/
DChangeLog563 20a94186 pnmdec,PAM: validate depth before calculating bytes_per_px
656 481e91eb Merge "pnmdec,PAM: set bytes_per_px based on depth when missing"
658 645f0c53 pnmdec,PAM: set bytes_per_px based on depth when missing
/third_party/flutter/skia/third_party/externals/libwebp/
DChangeLog358 20a94186 pnmdec,PAM: validate depth before calculating bytes_per_px
451 481e91eb Merge "pnmdec,PAM: set bytes_per_px based on depth when missing"
453 645f0c53 pnmdec,PAM: set bytes_per_px based on depth when missing