Home
last modified time | relevance | path

Searched refs:info_ptr (Results 1 – 25 of 39) sorted by relevance

12

/external/libpng/
Dpngget.c21 png_get_valid(png_structp png_ptr, png_infop info_ptr, png_uint_32 flag) in png_get_valid() argument
23 if (png_ptr != NULL && info_ptr != NULL) in png_get_valid()
24 return(info_ptr->valid & flag); in png_get_valid()
31 png_get_rowbytes(png_structp png_ptr, png_infop info_ptr) in png_get_rowbytes() argument
33 if (png_ptr != NULL && info_ptr != NULL) in png_get_rowbytes()
34 return(info_ptr->rowbytes); in png_get_rowbytes()
42 png_get_rows(png_structp png_ptr, png_infop info_ptr) in png_get_rows() argument
44 if (png_ptr != NULL && info_ptr != NULL) in png_get_rows()
45 return(info_ptr->row_pointers); in png_get_rows()
55 png_get_image_width(png_structp png_ptr, png_infop info_ptr) in png_get_image_width() argument
[all …]
Dpngset.c26 png_set_bKGD(png_structp png_ptr, png_infop info_ptr, png_color_16p background) in png_set_bKGD() argument
30 if (png_ptr == NULL || info_ptr == NULL) in png_set_bKGD()
33 png_memcpy(&(info_ptr->background), background, png_sizeof(png_color_16)); in png_set_bKGD()
34 info_ptr->valid |= PNG_INFO_bKGD; in png_set_bKGD()
41 png_set_cHRM(png_structp png_ptr, png_infop info_ptr, in png_set_cHRM() argument
47 if (png_ptr == NULL || info_ptr == NULL) in png_set_cHRM()
50 info_ptr->x_white = (float)white_x; in png_set_cHRM()
51 info_ptr->y_white = (float)white_y; in png_set_cHRM()
52 info_ptr->x_red = (float)red_x; in png_set_cHRM()
53 info_ptr->y_red = (float)red_y; in png_set_cHRM()
[all …]
Dpng.c251 png_infop info_ptr; in png_create_info_struct() local
259 info_ptr = (png_infop)png_create_struct_2(PNG_STRUCT_INFO, in png_create_info_struct()
262 info_ptr = (png_infop)png_create_struct(PNG_STRUCT_INFO); in png_create_info_struct()
264 if (info_ptr != NULL) in png_create_info_struct()
265 png_info_init_3(&info_ptr, png_sizeof(png_info)); in png_create_info_struct()
267 return (info_ptr); in png_create_info_struct()
278 png_infop info_ptr = NULL; in png_destroy_info_struct() local
286 info_ptr = *info_ptr_ptr; in png_destroy_info_struct()
288 if (info_ptr != NULL) in png_destroy_info_struct()
290 png_info_destroy(png_ptr, info_ptr); in png_destroy_info_struct()
[all …]
Dpngwrite.c30 png_write_info_before_PLTE(png_structp png_ptr, png_infop info_ptr) in png_write_info_before_PLTE() argument
34 if (png_ptr == NULL || info_ptr == NULL) in png_write_info_before_PLTE()
49 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height, in png_write_info_before_PLTE()
50 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type, in png_write_info_before_PLTE()
51 info_ptr->filter_type, in png_write_info_before_PLTE()
53 info_ptr->interlace_type); in png_write_info_before_PLTE()
61 if (info_ptr->valid & PNG_INFO_gAMA) in png_write_info_before_PLTE()
64 png_write_gAMA(png_ptr, info_ptr->gamma); in png_write_info_before_PLTE()
67 png_write_gAMA_fixed(png_ptr, info_ptr->int_gamma); in png_write_info_before_PLTE()
73 if (info_ptr->valid & PNG_INFO_sRGB) in png_write_info_before_PLTE()
[all …]
Dexample.c86 png_infop info_ptr;
99 png_infop info_ptr;
120 info_ptr = png_create_info_struct(png_ptr);
121 if (info_ptr == NULL)
136 png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
167 png_read_png(png_ptr, info_ptr, png_transforms, png_voidp_NULL);
175 png_read_info(png_ptr, info_ptr);
177 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
214 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
226 if (png_get_bKGD(png_ptr, info_ptr, &image_background))
[all …]
Dpngread.c358 png_read_info(png_structp png_ptr, png_infop info_ptr) in png_read_info() argument
362 if (png_ptr == NULL || info_ptr == NULL) in png_read_info()
371 png_read_data(png_ptr, &(info_ptr->signature[num_checked]), num_to_check); in png_read_info()
374 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check)) in png_read_info()
377 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4)) in png_read_info()
456 png_handle_IHDR(png_ptr, info_ptr, length); in png_read_info()
458 png_handle_IEND(png_ptr, info_ptr, length); in png_read_info()
464 png_handle_unknown(png_ptr, info_ptr, length); in png_read_info()
479 png_handle_PLTE(png_ptr, info_ptr, length); in png_read_info()
494 png_handle_bKGD(png_ptr, info_ptr, length); in png_read_info()
[all …]
Dpngpread.c31 png_process_data(png_structp png_ptr, png_infop info_ptr, in png_process_data() argument
34 if (png_ptr == NULL || info_ptr == NULL) in png_process_data()
41 png_process_some_data(png_ptr, info_ptr); in png_process_data()
49 png_process_some_data(png_structp png_ptr, png_infop info_ptr) in png_process_some_data() argument
58 png_push_read_sig(png_ptr, info_ptr); in png_process_some_data()
64 png_push_read_chunk(png_ptr, info_ptr); in png_process_some_data()
77 png_push_read_tEXt(png_ptr, info_ptr); in png_process_some_data()
85 png_push_read_zTXt(png_ptr, info_ptr); in png_process_some_data()
93 png_push_read_iTXt(png_ptr, info_ptr); in png_process_some_data()
119 png_push_read_sig(png_structp png_ptr, png_infop info_ptr) in png_push_read_sig() argument
[all …]
Dpng.h1699 extern PNG_EXPORT(void,png_info_init) PNGARG((png_infop info_ptr))
1702 #define png_info_init(info_ptr) png_info_init_3(&info_ptr,\ argument
1706 extern PNG_EXPORT(void,png_info_init_3) PNGARG((png_infopp info_ptr,
1711 png_infop info_ptr));
1713 png_infop info_ptr));
1718 png_infop info_ptr));
1892 png_infop info_ptr));
1935 png_infop info_ptr));
1940 png_infop info_ptr));
1952 extern void png_read_destroy PNGARG((png_structp png_ptr, png_infop info_ptr,
[all …]
Dpngrutil.c457 png_handle_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) in png_handle_IHDR() argument
525 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, in png_handle_IHDR()
531 png_handle_PLTE(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) in png_handle_PLTE() argument
649 png_set_PLTE(png_ptr, info_ptr, palette, num); in png_handle_PLTE()
654 if (info_ptr != NULL && (info_ptr->valid & PNG_INFO_tRNS)) in png_handle_PLTE()
661 if (info_ptr->num_trans > (png_uint_16)num) in png_handle_PLTE()
664 info_ptr->num_trans = (png_uint_16)num; in png_handle_PLTE()
673 png_handle_IEND(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) in png_handle_IEND() argument
690 info_ptr = info_ptr; /* Quiet compiler warnings about unused info_ptr */ in png_handle_IEND()
695 png_handle_gAMA(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) in png_handle_gAMA() argument
[all …]
/external/qemu/distrib/libpng-1.2.19/
Dpngget.c17 png_get_valid(png_structp png_ptr, png_infop info_ptr, png_uint_32 flag) in png_get_valid() argument
19 if (png_ptr != NULL && info_ptr != NULL) in png_get_valid()
20 return(info_ptr->valid & flag); in png_get_valid()
26 png_get_rowbytes(png_structp png_ptr, png_infop info_ptr) in png_get_rowbytes() argument
28 if (png_ptr != NULL && info_ptr != NULL) in png_get_rowbytes()
29 return(info_ptr->rowbytes); in png_get_rowbytes()
36 png_get_rows(png_structp png_ptr, png_infop info_ptr) in png_get_rows() argument
38 if (png_ptr != NULL && info_ptr != NULL) in png_get_rows()
39 return(info_ptr->row_pointers); in png_get_rows()
48 png_get_image_width(png_structp png_ptr, png_infop info_ptr) in png_get_image_width() argument
[all …]
Dpngset.c23 png_set_bKGD(png_structp png_ptr, png_infop info_ptr, png_color_16p background) in png_set_bKGD() argument
26 if (png_ptr == NULL || info_ptr == NULL) in png_set_bKGD()
29 png_memcpy(&(info_ptr->background), background, png_sizeof(png_color_16)); in png_set_bKGD()
30 info_ptr->valid |= PNG_INFO_bKGD; in png_set_bKGD()
37 png_set_cHRM(png_structp png_ptr, png_infop info_ptr, in png_set_cHRM() argument
42 if (png_ptr == NULL || info_ptr == NULL) in png_set_cHRM()
64 info_ptr->x_white = (float)white_x; in png_set_cHRM()
65 info_ptr->y_white = (float)white_y; in png_set_cHRM()
66 info_ptr->x_red = (float)red_x; in png_set_cHRM()
67 info_ptr->y_red = (float)red_y; in png_set_cHRM()
[all …]
Dpng.c246 png_infop info_ptr; in png_create_info_struct() local
251 info_ptr = (png_infop)png_create_struct_2(PNG_STRUCT_INFO, in png_create_info_struct()
254 info_ptr = (png_infop)png_create_struct(PNG_STRUCT_INFO); in png_create_info_struct()
256 if (info_ptr != NULL) in png_create_info_struct()
257 png_info_init_3(&info_ptr, png_sizeof(png_info)); in png_create_info_struct()
259 return (info_ptr); in png_create_info_struct()
270 png_infop info_ptr = NULL; in png_destroy_info_struct() local
275 info_ptr = *info_ptr_ptr; in png_destroy_info_struct()
277 if (info_ptr != NULL) in png_destroy_info_struct()
279 png_info_destroy(png_ptr, info_ptr); in png_destroy_info_struct()
[all …]
Dpngwrite.c26 png_write_info_before_PLTE(png_structp png_ptr, png_infop info_ptr) in png_write_info_before_PLTE() argument
29 if (png_ptr == NULL || info_ptr == NULL) in png_write_info_before_PLTE()
42 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height, in png_write_info_before_PLTE()
43 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type, in png_write_info_before_PLTE()
44 info_ptr->filter_type, in png_write_info_before_PLTE()
46 info_ptr->interlace_type); in png_write_info_before_PLTE()
53 if (info_ptr->valid & PNG_INFO_gAMA) in png_write_info_before_PLTE()
56 png_write_gAMA(png_ptr, info_ptr->gamma); in png_write_info_before_PLTE()
59 png_write_gAMA_fixed(png_ptr, info_ptr->int_gamma); in png_write_info_before_PLTE()
65 if (info_ptr->valid & PNG_INFO_sRGB) in png_write_info_before_PLTE()
[all …]
Dpngread.c325 png_read_info(png_structp png_ptr, png_infop info_ptr) in png_read_info() argument
335 png_read_data(png_ptr, &(info_ptr->signature[num_checked]), num_to_check); in png_read_info()
338 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check)) in png_read_info()
341 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4)) in png_read_info()
429 png_handle_IHDR(png_ptr, info_ptr, length); in png_read_info()
431 png_handle_IEND(png_ptr, info_ptr, length); in png_read_info()
437 png_handle_unknown(png_ptr, info_ptr, length); in png_read_info()
452 png_handle_PLTE(png_ptr, info_ptr, length); in png_read_info()
467 png_handle_bKGD(png_ptr, info_ptr, length); in png_read_info()
471 png_handle_cHRM(png_ptr, info_ptr, length); in png_read_info()
[all …]
Dpng.h1502 extern PNG_EXPORT(void,png_info_init) PNGARG((png_infop info_ptr));
1504 #define png_info_init(info_ptr) png_info_init_3(&info_ptr,\ argument
1508 extern PNG_EXPORT(void,png_info_init_3) PNGARG((png_infopp info_ptr,
1513 png_infop info_ptr));
1515 png_infop info_ptr));
1520 png_infop info_ptr));
1696 png_infop info_ptr));
1731 png_infop info_ptr));
1736 png_infop info_ptr));
1748 extern void png_read_destroy PNGARG((png_structp png_ptr, png_infop info_ptr,
[all …]
Dpngpread.c28 png_process_data(png_structp png_ptr, png_infop info_ptr, in png_process_data() argument
36 png_process_some_data(png_ptr, info_ptr); in png_process_data()
44 png_process_some_data(png_structp png_ptr, png_infop info_ptr) in png_process_some_data() argument
51 png_push_read_sig(png_ptr, info_ptr); in png_process_some_data()
56 png_push_read_chunk(png_ptr, info_ptr); in png_process_some_data()
67 png_push_read_tEXt(png_ptr, info_ptr); in png_process_some_data()
74 png_push_read_zTXt(png_ptr, info_ptr); in png_process_some_data()
81 png_push_read_iTXt(png_ptr, info_ptr); in png_process_some_data()
105 png_push_read_sig(png_structp png_ptr, png_infop info_ptr) in png_push_read_sig() argument
115 png_push_fill_buffer(png_ptr, &(info_ptr->signature[num_checked]), in png_push_read_sig()
[all …]
Dpngrutil.c348 png_handle_IHDR(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) in png_handle_IHDR() argument
413 png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, in png_handle_IHDR()
419 png_handle_PLTE(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) in png_handle_PLTE() argument
533 png_set_PLTE(png_ptr, info_ptr, palette, num); in png_handle_PLTE()
538 if (info_ptr != NULL && (info_ptr->valid & PNG_INFO_tRNS)) in png_handle_PLTE()
545 if (info_ptr->num_trans > (png_uint_16)num) in png_handle_PLTE()
548 info_ptr->num_trans = (png_uint_16)num; in png_handle_PLTE()
557 png_handle_IEND(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) in png_handle_IEND() argument
574 info_ptr =info_ptr; /* quiet compiler warnings about unused info_ptr */ in png_handle_IEND()
579 png_handle_gAMA(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) in png_handle_gAMA() argument
[all …]
/external/libpng/contrib/gregbook/
Dwritepng.c86 png_infop info_ptr; in writepng_init() local
97 info_ptr = png_create_info_struct(png_ptr); in writepng_init()
98 if (!info_ptr) { in writepng_init()
110 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_init()
147 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_init()
154 png_set_IHDR(png_ptr, info_ptr, mainprog_ptr->width, mainprog_ptr->height, in writepng_init()
159 png_set_gAMA(png_ptr, info_ptr, mainprog_ptr->gamma); in writepng_init()
167 png_set_bKGD(png_ptr, info_ptr, &background); in writepng_init()
174 png_set_tIME(png_ptr, info_ptr, &modtime); in writepng_init()
217 png_set_text(png_ptr, info_ptr, text, num_text); in writepng_init()
[all …]
Dreadpng.c69 static png_infop info_ptr = NULL; variable
106 info_ptr = png_create_info_struct(png_ptr); in readpng_init()
107 if (!info_ptr) { in readpng_init()
122 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_init()
130 png_read_info(png_ptr, info_ptr); /* read all PNG info up to image data */ in readpng_init()
137 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, in readpng_init()
163 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_get_bgcolor()
168 if (!png_get_valid(png_ptr, info_ptr, PNG_INFO_bKGD)) in readpng_get_bgcolor()
175 png_get_bKGD(png_ptr, info_ptr, &pBackground); in readpng_get_bgcolor()
217 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_get_image()
[all …]
Dreadpng2.c65 static void readpng2_info_callback(png_structp png_ptr, png_infop info_ptr);
68 static void readpng2_end_callback(png_structp png_ptr, png_infop info_ptr);
173 png_infop info_ptr; in readpng2_init() local
183 info_ptr = png_create_info_struct(png_ptr); in readpng2_init()
184 if (!info_ptr) { in readpng2_init()
201 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng2_init()
338 mainprog_ptr->info_ptr = info_ptr; in readpng2_init()
354 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in readpng2_decode_data() local
361 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng2_decode_data()
363 mainprog_ptr->info_ptr = NULL; in readpng2_decode_data()
[all …]
/external/opencv/otherlibs/highgui/
Dgrfmt_png.cpp118 png_infop info_ptr = (png_infop)m_info_ptr; in Close() local
120 png_destroy_read_struct( &png_ptr, &info_ptr, &end_info ); in Close()
137 png_infop info_ptr = png_create_info_struct( png_ptr ); in ReadHeader() local
141 m_info_ptr = info_ptr; in ReadHeader()
144 if( info_ptr && end_info ) in ReadHeader()
155 png_read_info( png_ptr, info_ptr ); in ReadHeader()
157 png_get_IHDR( png_ptr, info_ptr, &width, &height, in ReadHeader()
192 png_infop info_ptr = (png_infop)m_info_ptr; in ReadData() local
227 png_read_update_info( png_ptr, info_ptr ); in ReadData()
270 png_infop info_ptr = 0; in WriteImage() local
[all …]
/external/skia/src/images/
DSkImageDecoder_libpng.cpp33 png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); in ~SkPNGImageIndex()
40 png_infop info_ptr; member in SkPNGImageIndex
67 bool decodePalette(png_structp png_ptr, png_infop info_ptr,
69 bool getBitmapConfig(png_structp png_ptr, png_infop info_ptr,
83 PNGAutoClean(png_structp p, png_infop i): png_ptr(p), info_ptr(i) {} in PNGAutoClean()
85 png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); in ~PNGAutoClean()
89 png_infop info_ptr; member
165 static bool hasTransparencyInPalette(png_structp png_ptr, png_infop info_ptr) { in hasTransparencyInPalette() argument
169 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) { in hasTransparencyInPalette()
170 png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, NULL); in hasTransparencyInPalette()
[all …]
/external/libpng/contrib/visupng/
DPngFile.c28 static png_infop info_ptr = NULL; variable
145 info_ptr = png_create_info_struct(png_ptr); in PngLoadImage()
146 if (!info_ptr) in PngLoadImage()
168 png_read_info(png_ptr, info_ptr); in PngLoadImage()
172 png_get_IHDR(png_ptr, info_ptr, piWidth, piHeight, &iBitDepth, in PngLoadImage()
184 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) in PngLoadImage()
191 if (png_get_bKGD(png_ptr, info_ptr, &pBackground)) in PngLoadImage()
204 if (png_get_gAMA(png_ptr, info_ptr, &dGamma)) in PngLoadImage()
209 png_read_update_info(png_ptr, info_ptr); in PngLoadImage()
213 png_get_IHDR(png_ptr, info_ptr, piWidth, piHeight, &iBitDepth, in PngLoadImage()
[all …]
/external/libpng/contrib/pngminus/
Dpng2pnm.c191 png_info *info_ptr = NULL; in png2pnm() local
225 info_ptr = png_create_info_struct (png_ptr); in png2pnm()
226 if (!info_ptr) in png2pnm()
234 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); in png2pnm()
243 png_read_info (png_ptr, info_ptr); in png2pnm()
246 png_get_IHDR (png_ptr, info_ptr, in png2pnm()
259 if (png_get_valid (png_ptr, info_ptr, PNG_INFO_tRNS)) in png2pnm()
271 if (png_get_gAMA (png_ptr, info_ptr, &file_gamma)) in png2pnm()
278 png_read_update_info (png_ptr, info_ptr); in png2pnm()
281 png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, in png2pnm()
[all …]
/external/e2fsprogs/ext2ed/
Ddir_com.c40 int init_dir_info (struct struct_file_info *info_ptr) in init_dir_info() argument
55 info_ptr->inode_ptr=ptr; in init_dir_info()
56 info_ptr->inode_offset=device_offset; /* device offset contains the inode's offset */ in init_dir_info()
60 info_ptr->global_block_num=ptr->i_block [0]; in init_dir_info()
61 info_ptr->global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_dir_info()
62 info_ptr->block_num=0; in init_dir_info()
63 info_ptr->file_offset=0; in init_dir_info()
66 info_ptr->blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_dir_info()
67 info_ptr->file_length=ptr->i_size; in init_dir_info()
69 info_ptr->level=0; /* We start using direct blocks */ in init_dir_info()
[all …]

12