Home
last modified time | relevance | path

Searched refs:mainprog_ptr (Results 1 – 4 of 4) sorted by relevance

/external/libpng/contrib/gregbook/
Dwritepng.c84 int writepng_init(mainprog_info *mainprog_ptr) in writepng_init() argument
93 png_ptr = png_create_write_struct(png_get_libpng_ver(NULL), mainprog_ptr, in writepng_init()
111 if (setjmp(mainprog_ptr->jmpbuf)) { in writepng_init()
119 png_init_io(png_ptr, mainprog_ptr->outfile); in writepng_init()
142 if (mainprog_ptr->pnmtype == 5) in writepng_init()
144 else if (mainprog_ptr->pnmtype == 6) in writepng_init()
146 else if (mainprog_ptr->pnmtype == 8) in writepng_init()
153 interlace_type = mainprog_ptr->interlaced? PNG_INTERLACE_ADAM7 : in writepng_init()
156 png_set_IHDR(png_ptr, info_ptr, mainprog_ptr->width, mainprog_ptr->height, in writepng_init()
157 mainprog_ptr->sample_depth, color_type, interlace_type, in writepng_init()
[all …]
Dreadpng2.c104 int readpng2_init(mainprog_info *mainprog_ptr) in readpng2_init() argument
112 png_ptr = png_create_read_struct(png_get_libpng_ver(NULL), mainprog_ptr, in readpng2_init()
134 if (setjmp(mainprog_ptr->jmpbuf)) { in readpng2_init()
169 png_set_progressive_read_fn(png_ptr, mainprog_ptr, in readpng2_init()
175 mainprog_ptr->png_ptr = png_ptr; in readpng2_init()
176 mainprog_ptr->info_ptr = info_ptr; in readpng2_init()
189 int readpng2_decode_data(mainprog_info *mainprog_ptr, uch *rawbuf, ulg length) in readpng2_decode_data() argument
191 png_structp png_ptr = (png_structp)mainprog_ptr->png_ptr; in readpng2_decode_data()
192 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in readpng2_decode_data()
198 if (setjmp(mainprog_ptr->jmpbuf)) { in readpng2_decode_data()
[all …]
Dwritepng.h125 int writepng_init(mainprog_info *mainprog_ptr);
127 int writepng_encode_image(mainprog_info *mainprog_ptr);
129 int writepng_encode_row(mainprog_info *mainprog_ptr);
131 int writepng_encode_finish(mainprog_info *mainprog_ptr);
133 void writepng_cleanup(mainprog_info *mainprog_ptr);
Dreadpng2.h112 int readpng2_init(mainprog_info *mainprog_ptr);
114 int readpng2_decode_data(mainprog_info *mainprog_ptr, uch *rawbuf, ulg length);
116 void readpng2_cleanup(mainprog_info *mainprog_ptr);