Home
last modified time | relevance | path

Searched refs:bytes_per_px (Results 1 - 2 of 2) sorted by relevance

/third_party/skia/third_party/externals/libwebp/imageio/
H A 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 * in WebPWriteBMP()
369 const uint8_t bytes_per_px = has_alpha ? 4 : 3; WebPWriteTIFF() local
[all...]
H A 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()

Completed in 2 milliseconds