Lines Matching refs:read_ptr
99 png_structp read_ptr, png_infop read_info,
106 png_set_error_fn(read_ptr, const_cast<char*>(imageName),
108 png_read_info(read_ptr, read_info);
110 png_get_IHDR(read_ptr, read_info, &outImageInfo->width,
119 png_set_palette_to_rgb(read_ptr);
122 png_set_expand_gray_1_2_4_to_8(read_ptr);
124 if (png_get_valid(read_ptr, read_info, PNG_INFO_tRNS)) {
126 png_set_tRNS_to_alpha(read_ptr);
130 png_set_strip_16(read_ptr);
133 png_set_add_alpha(read_ptr, 0xFF, PNG_FILLER_AFTER);
136 png_set_gray_to_rgb(read_ptr);
138 png_set_interlace_handling(read_ptr);
140 png_read_update_info(read_ptr, read_info);
147 png_set_rows(read_ptr, read_info, outImageInfo->rows);
152 malloc(png_get_rowbytes(read_ptr, read_info));
155 png_read_image(read_ptr, outImageInfo->rows);
157 png_read_end(read_ptr, read_info);
165 png_get_IHDR(read_ptr, read_info, &outImageInfo->width,
1259 png_structp read_ptr = NULL;
1278 read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, 0, (png_error_ptr)NULL,
1280 if (!read_ptr) {
1284 read_info = png_create_info_struct(read_ptr);
1289 if (setjmp(png_jmpbuf(read_ptr))) {
1293 png_init_io(read_ptr, fp);
1295 read_png(printableName.string(), read_ptr, read_info, &imageInfo);
1342 if (read_ptr) {
1343 png_destroy_read_struct(&read_ptr, &read_info, (png_infopp)NULL);
1361 png_structp read_ptr = NULL;
1385 read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
1386 if (!read_ptr) {
1388 png_destroy_read_struct(&read_ptr, &read_info,NULL);
1393 read_info = png_create_info_struct(read_ptr);
1396 png_destroy_read_struct(&read_ptr, &read_info,NULL);
1401 if (setjmp(png_jmpbuf(read_ptr))) {
1403 png_destroy_read_struct(&read_ptr, &read_info,NULL);
1408 png_init_io(read_ptr,fp);
1411 read_png(source.string(), read_ptr, read_info, &imageInfo);
1418 png_destroy_read_struct(&read_ptr, &read_info,NULL);