Home
last modified time | relevance | path

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

/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/
A 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()
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()
225 assert(offset + info.bytes_per_px * info.width <= data_size); in ReadPNM()
[all …]
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()
369 const uint8_t bytes_per_px = has_alpha ? 4 : 3; in WebPWriteTIFF() local
390 bytes_per_px, 0, 0, 0, in WebPWriteTIFF()
414 PutLE32(tiff_header + 118 + 8, width * bytes_per_px * height); in WebPWriteTIFF()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/
A DChangeLog307 20a94186 pnmdec,PAM: validate depth before calculating bytes_per_px
400 481e91eb Merge "pnmdec,PAM: set bytes_per_px based on depth when missing"
402 645f0c53 pnmdec,PAM: set bytes_per_px based on depth when missing

Completed in 10 milliseconds