Lines Matching refs:write_ptr

1140                       png_structp write_ptr, png_infop write_info,  in write_png()  argument
1166 png_set_compression_level(write_ptr, Z_BEST_COMPRESSION); in write_png()
1220 png_set_IHDR(write_ptr, write_info, imageInfo.width, imageInfo.height, in write_png()
1225 png_set_PLTE(write_ptr, write_info, rgbPalette, paletteEntries); in write_png()
1227 png_set_tRNS(write_ptr, write_info, alphaPalette, alphaPaletteEntries, in write_png()
1230 png_set_filter(write_ptr, 0, PNG_NO_FILTERS); in write_png()
1232 png_set_filter(write_ptr, 0, PNG_ALL_FILTERS); in write_png()
1279 png_set_keep_unknown_chunks(write_ptr, PNG_HANDLE_CHUNK_ALWAYS, in write_png()
1281 png_set_unknown_chunks(write_ptr, write_info, unknowns, chunk_count); in write_png()
1285 png_write_info(write_ptr, write_info); in write_png()
1290 png_set_filler(write_ptr, 0, PNG_FILLER_AFTER); in write_png()
1296 png_write_image(write_ptr, rows); in write_png()
1303 png_write_end(write_ptr, write_info); in write_png()
1313 png_get_IHDR(write_ptr, write_info, &width, &height, in write_png()
1347 static bool write_png_protected(png_structp write_ptr, String8& printableName, png_infop write_info, in write_png_protected() argument
1349 if (setjmp(png_jmpbuf(write_ptr))) { in write_png_protected()
1353 write_png(printableName.c_str(), write_ptr, write_info, *imageInfo, bundle); in write_png_protected()
1384 png_structp write_ptr = NULL; in preProcessImage() local
1410 write_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, 0, (png_error_ptr)NULL, in preProcessImage()
1412 if (!write_ptr) in preProcessImage()
1417 write_info = png_create_info_struct(write_ptr); in preProcessImage()
1423 png_set_write_fn(write_ptr, (void*)file.get(), in preProcessImage()
1426 if (!write_png_protected(write_ptr, printableName, write_info, &imageInfo, bundle)) { in preProcessImage()
1448 if (write_ptr) { in preProcessImage()
1449 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImage()
1468 png_structp write_ptr = NULL; in preProcessImageToCache() local
1530 write_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); in preProcessImageToCache()
1531 if (!write_ptr) { in preProcessImageToCache()
1532 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()
1538 write_info = png_create_info_struct(write_ptr); in preProcessImageToCache()
1540 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()
1548 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()
1553 png_init_io(write_ptr, fp); in preProcessImageToCache()
1556 if (setjmp(png_jmpbuf(write_ptr))) { in preProcessImageToCache()
1558 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()
1563 write_png(dest.c_str(), write_ptr, write_info, imageInfo, bundle); in preProcessImageToCache()
1580 png_destroy_write_struct(&write_ptr, &write_info); in preProcessImageToCache()