Lines Matching refs:read_ptr
72 png_structp read_ptr, png_infop read_info, in read_png() argument
79 png_read_info(read_ptr, read_info); in read_png()
81 png_get_IHDR(read_ptr, read_info, &outImageInfo->width, in read_png()
90 png_set_palette_to_rgb(read_ptr); in read_png()
93 png_set_gray_1_2_4_to_8(read_ptr); in read_png()
95 if (png_get_valid(read_ptr, read_info, PNG_INFO_tRNS)) { in read_png()
97 png_set_tRNS_to_alpha(read_ptr); in read_png()
101 png_set_strip_16(read_ptr); in read_png()
104 png_set_add_alpha(read_ptr, 0xFF, PNG_FILLER_AFTER); in read_png()
107 png_set_gray_to_rgb(read_ptr); in read_png()
109 png_read_update_info(read_ptr, read_info); in read_png()
116 png_set_rows(read_ptr, read_info, outImageInfo->rows); in read_png()
121 malloc(png_get_rowbytes(read_ptr, read_info)); in read_png()
124 png_read_image(read_ptr, outImageInfo->rows); in read_png()
126 png_read_end(read_ptr, read_info); in read_png()
134 png_get_IHDR(read_ptr, read_info, &outImageInfo->width, in read_png()
1143 png_structp read_ptr = NULL; in preProcessImage() local
1162 read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, 0, (png_error_ptr)NULL, in preProcessImage()
1164 if (!read_ptr) { in preProcessImage()
1168 read_info = png_create_info_struct(read_ptr); in preProcessImage()
1173 if (setjmp(png_jmpbuf(read_ptr))) { in preProcessImage()
1177 png_init_io(read_ptr, fp); in preProcessImage()
1179 read_png(printableName.string(), read_ptr, read_info, &imageInfo); in preProcessImage()
1226 if (read_ptr) { in preProcessImage()
1227 png_destroy_read_struct(&read_ptr, &read_info, (png_infopp)NULL); in preProcessImage()
1245 png_structp read_ptr = NULL; in preProcessImageToCache() local
1269 read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); in preProcessImageToCache()
1270 if (!read_ptr) { in preProcessImageToCache()
1272 png_destroy_read_struct(&read_ptr, &read_info,NULL); in preProcessImageToCache()
1277 read_info = png_create_info_struct(read_ptr); in preProcessImageToCache()
1280 png_destroy_read_struct(&read_ptr, &read_info,NULL); in preProcessImageToCache()
1285 if (setjmp(png_jmpbuf(read_ptr))) { in preProcessImageToCache()
1287 png_destroy_read_struct(&read_ptr, &read_info,NULL); in preProcessImageToCache()
1292 png_init_io(read_ptr,fp); in preProcessImageToCache()
1295 read_png(source.string(), read_ptr, read_info, &imageInfo); in preProcessImageToCache()
1302 png_destroy_read_struct(&read_ptr, &read_info,NULL); in preProcessImageToCache()