• Home
  • Raw
  • Download

Lines Matching refs:mainprog_ptr

170 int readpng2_init(mainprog_info *mainprog_ptr)  in readpng2_init()  argument
178 png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, mainprog_ptr, in readpng2_init()
200 if (setjmp(mainprog_ptr->jmpbuf)) { in readpng2_init()
241 png_set_progressive_read_fn(png_ptr, mainprog_ptr, in readpng2_init()
276 if (mainprog_ptr->nommxfilters) in readpng2_init()
281 if (mainprog_ptr->nommxcombine) in readpng2_init()
283 if (mainprog_ptr->nommxinterlace) in readpng2_init()
337 mainprog_ptr->png_ptr = png_ptr; in readpng2_init()
338 mainprog_ptr->info_ptr = info_ptr; in readpng2_init()
351 int readpng2_decode_data(mainprog_info *mainprog_ptr, uch *rawbuf, ulg length) in readpng2_decode_data() argument
353 png_structp png_ptr = (png_structp)mainprog_ptr->png_ptr; in readpng2_decode_data()
354 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in readpng2_decode_data()
360 if (setjmp(mainprog_ptr->jmpbuf)) { in readpng2_decode_data()
362 mainprog_ptr->png_ptr = NULL; in readpng2_decode_data()
363 mainprog_ptr->info_ptr = NULL; in readpng2_decode_data()
380 mainprog_info *mainprog_ptr; in readpng2_info_callback() local
399 mainprog_ptr = png_get_progressive_ptr(png_ptr); in readpng2_info_callback()
401 if (mainprog_ptr == NULL) { /* we be hosed */ in readpng2_info_callback()
420 mainprog_ptr->width = (ulg)width; in readpng2_info_callback()
421 mainprog_ptr->height = (ulg)height; in readpng2_info_callback()
427 if (mainprog_ptr->need_bgcolor && in readpng2_info_callback()
440 mainprog_ptr->bg_red = pBackground->red >> 8; in readpng2_info_callback()
441 mainprog_ptr->bg_green = pBackground->green >> 8; in readpng2_info_callback()
442 mainprog_ptr->bg_blue = pBackground->blue >> 8; in readpng2_info_callback()
445 mainprog_ptr->bg_red = mainprog_ptr->bg_green = in readpng2_info_callback()
446 mainprog_ptr->bg_blue = pBackground->gray? 255 : 0; in readpng2_info_callback()
448 mainprog_ptr->bg_red = mainprog_ptr->bg_green = in readpng2_info_callback()
449 mainprog_ptr->bg_blue = (255/3) * pBackground->gray; in readpng2_info_callback()
451 mainprog_ptr->bg_red = mainprog_ptr->bg_green = in readpng2_info_callback()
452 mainprog_ptr->bg_blue = (255/15) * pBackground->gray; in readpng2_info_callback()
454 mainprog_ptr->bg_red = (uch)pBackground->red; in readpng2_info_callback()
455 mainprog_ptr->bg_green = (uch)pBackground->green; in readpng2_info_callback()
456 mainprog_ptr->bg_blue = (uch)pBackground->blue; in readpng2_info_callback()
495 png_set_gamma(png_ptr, mainprog_ptr->display_exponent, gamma); in readpng2_info_callback()
497 png_set_gamma(png_ptr, mainprog_ptr->display_exponent, 0.45455); in readpng2_info_callback()
502 mainprog_ptr->passes = png_set_interlace_handling(png_ptr); in readpng2_info_callback()
510 mainprog_ptr->rowbytes = (int)png_get_rowbytes(png_ptr, info_ptr); in readpng2_info_callback()
511 mainprog_ptr->channels = png_get_channels(png_ptr, info_ptr); in readpng2_info_callback()
519 (*mainprog_ptr->mainprog_init)(); in readpng2_info_callback()
534 mainprog_info *mainprog_ptr; in readpng2_row_callback() local
547 mainprog_ptr = png_get_progressive_ptr(png_ptr); in readpng2_row_callback()
552 mainprog_ptr->pass = pass; in readpng2_row_callback()
559 png_progressive_combine_row(png_ptr, mainprog_ptr->row_pointers[row_num], in readpng2_row_callback()
566 (*mainprog_ptr->mainprog_display_row)(row_num); in readpng2_row_callback()
580 mainprog_info *mainprog_ptr; in readpng2_end_callback() local
585 mainprog_ptr = png_get_progressive_ptr(png_ptr); in readpng2_end_callback()
595 (*mainprog_ptr->mainprog_finish_display)(); in readpng2_end_callback()
607 void readpng2_cleanup(mainprog_info *mainprog_ptr) in readpng2_cleanup() argument
609 png_structp png_ptr = (png_structp)mainprog_ptr->png_ptr; in readpng2_cleanup()
610 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in readpng2_cleanup()
615 mainprog_ptr->png_ptr = NULL; in readpng2_cleanup()
616 mainprog_ptr->info_ptr = NULL; in readpng2_cleanup()
625 mainprog_info *mainprog_ptr; in readpng2_error_handler() local
639 mainprog_ptr = png_get_error_ptr(png_ptr); in readpng2_error_handler()
640 if (mainprog_ptr == NULL) { /* we are completely hosed now */ in readpng2_error_handler()
647 longjmp(mainprog_ptr->jmpbuf, 1); in readpng2_error_handler()