Lines Matching refs:write_ptr
1139 png_structp write_ptr, png_infop write_info, in write_png() argument
1165 png_set_compression_level(write_ptr, Z_BEST_COMPRESSION); in write_png()
1219 png_set_IHDR(write_ptr, write_info, imageInfo.width, imageInfo.height, in write_png()
1224 png_set_PLTE(write_ptr, write_info, rgbPalette, paletteEntries); in write_png()
1226 png_set_tRNS(write_ptr, write_info, alphaPalette, alphaPaletteEntries, in write_png()
1229 png_set_filter(write_ptr, 0, PNG_NO_FILTERS); in write_png()
1231 png_set_filter(write_ptr, 0, PNG_ALL_FILTERS); in write_png()
1278 png_set_keep_unknown_chunks(write_ptr, PNG_HANDLE_CHUNK_ALWAYS, in write_png()
1280 png_set_unknown_chunks(write_ptr, write_info, unknowns, chunk_count); in write_png()
1284 png_write_info(write_ptr, write_info); in write_png()
1289 png_set_filler(write_ptr, 0, PNG_FILLER_AFTER); in write_png()
1295 png_write_image(write_ptr, rows); in write_png()
1302 png_write_end(write_ptr, write_info); in write_png()
1312 png_get_IHDR(write_ptr, write_info, &width, &height, in write_png()
1346 static bool write_png_protected(png_structp write_ptr, String8& printableName, png_infop write_info, in write_png_protected() argument
1348 if (setjmp(png_jmpbuf(write_ptr))) { in write_png_protected()
1352 write_png(printableName.string(), write_ptr, write_info, *imageInfo, bundle); in write_png_protected()
1383 png_structp write_ptr = NULL; in preProcessImage() local
1409 write_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, 0, (png_error_ptr)NULL, in preProcessImage()
1411 if (!write_ptr) in preProcessImage()
1416 write_info = png_create_info_struct(write_ptr); in preProcessImage()
1422 png_set_write_fn(write_ptr, (void*)file.get(), in preProcessImage()
1425 if (!write_png_protected(write_ptr, printableName, write_info, &imageInfo, bundle)) { in preProcessImage()
1447 if (write_ptr) { in preProcessImage()
1448 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImage()
1467 png_structp write_ptr = NULL; in preProcessImageToCache() local
1529 write_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); in preProcessImageToCache()
1530 if (!write_ptr) { in preProcessImageToCache()
1531 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()
1537 write_info = png_create_info_struct(write_ptr); in preProcessImageToCache()
1539 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()
1547 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()
1552 png_init_io(write_ptr, fp); in preProcessImageToCache()
1555 if (setjmp(png_jmpbuf(write_ptr))) { in preProcessImageToCache()
1557 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()
1562 write_png(dest.string(), write_ptr, write_info, imageInfo, bundle); in preProcessImageToCache()
1579 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()