Home | History | Annotate | Download | only in compile

Lines Matching defs:infoPtr

102 static bool readPng(IDiagnostics* diag, png_structp readPtr, png_infop infoPtr, PngInfo* outInfo) {
109 png_read_info(readPtr, infoPtr);
112 png_get_IHDR(readPtr, infoPtr, &outInfo->width, &outInfo->height, &bitDepth, &colorType,
123 if (png_get_valid(readPtr, infoPtr, PNG_INFO_tRNS)) {
140 png_read_update_info(readPtr, infoPtr);
142 const uint32_t rowBytes = png_get_rowbytes(readPtr, infoPtr);
149 png_read_end(readPtr, infoPtr);
412 static bool writePng(IDiagnostics* diag, png_structp writePtr, png_infop infoPtr, PngInfo* info,
486 png_set_IHDR(writePtr, infoPtr, info->width, info->height, 8, colorType,
490 png_set_PLTE(writePtr, infoPtr, rgbPalette, paletteEntries);
492 png_set_tRNS(writePtr, infoPtr, alphaPalette, paletteEntries, (png_color_16p) 0);
545 png_set_unknown_chunks(writePtr, infoPtr, unknowns, chunkCount);
549 png_set_unknown_chunk_location(writePtr, infoPtr, 0, PNG_HAVE_PLTE);
551 png_set_unknown_chunk_location(writePtr, infoPtr, 1, PNG_HAVE_PLTE);
556 png_write_info(writePtr, infoPtr);
574 png_write_end(writePtr, infoPtr);
584 png_get_IHDR(writePtr, infoPtr, &width, &height, &bitDepth, &colorType, &interlaceType,
1211 png_infop infoPtr = nullptr;
1222 infoPtr = png_create_info_struct(readPtr);
1223 if (!infoPtr) {
1233 if (!readPng(mDiag, readPtr, infoPtr, &pngInfo)) {
1269 png_destroy_read_struct(&readPtr, &infoPtr, nullptr);