Lines Matching refs:read_ptr

101                      png_structp read_ptr, png_infop read_info,  in read_png()  argument
108 png_set_error_fn(read_ptr, const_cast<char*>(imageName), in read_png()
110 png_read_info(read_ptr, read_info); in read_png()
112 png_get_IHDR(read_ptr, read_info, &outImageInfo->width, in read_png()
121 png_set_palette_to_rgb(read_ptr); in read_png()
124 png_set_expand_gray_1_2_4_to_8(read_ptr); in read_png()
126 if (png_get_valid(read_ptr, read_info, PNG_INFO_tRNS)) { in read_png()
128 png_set_tRNS_to_alpha(read_ptr); in read_png()
132 png_set_strip_16(read_ptr); in read_png()
135 png_set_add_alpha(read_ptr, 0xFF, PNG_FILLER_AFTER); in read_png()
138 png_set_gray_to_rgb(read_ptr); in read_png()
140 png_set_interlace_handling(read_ptr); in read_png()
142 png_read_update_info(read_ptr, read_info); in read_png()
149 png_set_rows(read_ptr, read_info, outImageInfo->rows); in read_png()
154 malloc(png_get_rowbytes(read_ptr, read_info)); in read_png()
157 png_read_image(read_ptr, outImageInfo->rows); in read_png()
159 png_read_end(read_ptr, read_info); in read_png()
169 png_get_IHDR(read_ptr, read_info, &outImageInfo->width, in read_png()
1324 static bool read_png_protected(png_structp read_ptr, String8& printableName, png_infop read_info, in read_png_protected() argument
1326 if (setjmp(png_jmpbuf(read_ptr))) { in read_png_protected()
1330 png_init_io(read_ptr, fp); in read_png_protected()
1332 read_png(printableName.c_str(), read_ptr, read_info, imageInfo); in read_png_protected()
1378 png_structp read_ptr = NULL; in preProcessImage() local
1395 read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, 0, (png_error_ptr)NULL, in preProcessImage()
1397 if (!read_ptr) { in preProcessImage()
1401 read_info = png_create_info_struct(read_ptr); in preProcessImage()
1406 if (!read_png_protected(read_ptr, printableName, read_info, file, fp, &imageInfo)) { in preProcessImage()
1442 if (read_ptr) { in preProcessImage()
1443 png_destroy_read_struct(&read_ptr, &read_info, (png_infopp)NULL); in preProcessImage()
1461 png_structp read_ptr = NULL; in preProcessImageToCache() local
1485 read_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); in preProcessImageToCache()
1486 if (!read_ptr) { in preProcessImageToCache()
1488 png_destroy_read_struct(&read_ptr, &read_info,NULL); in preProcessImageToCache()
1493 read_info = png_create_info_struct(read_ptr); in preProcessImageToCache()
1496 png_destroy_read_struct(&read_ptr, &read_info,NULL); in preProcessImageToCache()
1501 if (setjmp(png_jmpbuf(read_ptr))) { in preProcessImageToCache()
1503 png_destroy_read_struct(&read_ptr, &read_info,NULL); in preProcessImageToCache()
1508 png_init_io(read_ptr,fp); in preProcessImageToCache()
1511 read_png(source.c_str(), read_ptr, read_info, &imageInfo); in preProcessImageToCache()
1518 png_destroy_read_struct(&read_ptr, &read_info,NULL); in preProcessImageToCache()