Home
last modified time | relevance | path

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

12345

/third_party/flutter/skia/third_party/externals/libpng/
Dpngget.c20 png_get_valid(png_const_structrp png_ptr, png_const_inforp info_ptr, 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()
30 png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_rowbytes() argument
32 if (png_ptr != NULL && info_ptr != NULL) in png_get_rowbytes()
33 return(info_ptr->rowbytes); in png_get_rowbytes()
40 png_get_rows(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_rows() argument
42 if (png_ptr != NULL && info_ptr != NULL) in png_get_rows()
43 return(info_ptr->row_pointers); in png_get_rows()
52 png_get_image_width(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_image_width() argument
[all …]
Dpngset.c25 png_set_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_bKGD() argument
30 if (png_ptr == NULL || info_ptr == NULL || background == NULL) in png_set_bKGD()
33 info_ptr->background = *background; in png_set_bKGD()
34 info_ptr->valid |= PNG_INFO_bKGD; in png_set_bKGD()
40 png_set_cHRM_fixed(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_cHRM_fixed() argument
49 if (png_ptr == NULL || info_ptr == NULL) in png_set_cHRM_fixed()
61 if (png_colorspace_set_chromaticities(png_ptr, &info_ptr->colorspace, &xy, in png_set_cHRM_fixed()
63 info_ptr->colorspace.flags |= PNG_COLORSPACE_FROM_cHRM; in png_set_cHRM_fixed()
65 png_colorspace_sync_info(png_ptr, info_ptr); in png_set_cHRM_fixed()
69 png_set_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_cHRM_XYZ_fixed() argument
[all …]
Dpngwrite.c24 write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr, in write_unknown_chunks() argument
27 if (info_ptr->unknown_chunks_num != 0) in write_unknown_chunks()
33 for (up = info_ptr->unknown_chunks; in write_unknown_chunks()
34 up < info_ptr->unknown_chunks + info_ptr->unknown_chunks_num; in write_unknown_chunks()
84 png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr) in png_write_info_before_PLTE() argument
88 if (png_ptr == NULL || info_ptr == NULL) in png_write_info_before_PLTE()
107 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height, in png_write_info_before_PLTE()
108 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type, in png_write_info_before_PLTE()
109 info_ptr->filter_type, in png_write_info_before_PLTE()
111 info_ptr->interlace_type in png_write_info_before_PLTE()
[all …]
Dexample.c276 png_infop info_ptr;
289 png_infop info_ptr;
310 info_ptr = png_create_info_struct(png_ptr);
311 if (info_ptr == NULL)
325 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
355 png_read_png(png_ptr, info_ptr, png_transforms, NULL);
363 png_read_info(png_ptr, info_ptr);
365 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
410 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) != 0)
421 if (png_get_bKGD(png_ptr, info_ptr, &image_background) != 0)
[all …]
Dpng.h1011 PNG_EXPORTA(19, void, png_info_init_3, (png_infopp info_ptr,
1016 (png_structrp png_ptr, png_const_inforp info_ptr));
1018 (png_structrp png_ptr, png_const_inforp info_ptr));
1023 (png_structrp png_ptr, png_inforp info_ptr));
1368 png_inforp info_ptr));
1404 png_inforp info_ptr));
1408 PNG_EXPORT(62, void, png_read_end, (png_structrp png_ptr, png_inforp info_ptr));
1688 png_inforp info_ptr, png_bytep buffer, size_t buffer_size));
1731 png_inforp info_ptr, png_uint_32 free_me, int num));
1741 png_inforp info_ptr, int freer, png_uint_32 mask));
[all …]
Dpng.c356 png_inforp info_ptr; variable
368 info_ptr = png_voidcast(png_inforp, png_malloc_base(png_ptr,
369 (sizeof *info_ptr)));
371 if (info_ptr != NULL)
372 memset(info_ptr, 0, (sizeof *info_ptr));
374 return info_ptr;
388 png_inforp info_ptr = NULL; in png_destroy_info_struct() local
396 info_ptr = *info_ptr_ptr; in png_destroy_info_struct()
398 if (info_ptr != NULL) in png_destroy_info_struct()
408 png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1); in png_destroy_info_struct()
[all …]
/third_party/skia/third_party/externals/libpng/
Dpngget.c20 png_get_valid(png_const_structrp png_ptr, png_const_inforp info_ptr, 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()
30 png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_rowbytes() argument
32 if (png_ptr != NULL && info_ptr != NULL) in png_get_rowbytes()
33 return(info_ptr->rowbytes); in png_get_rowbytes()
40 png_get_rows(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_rows() argument
42 if (png_ptr != NULL && info_ptr != NULL) in png_get_rows()
43 return(info_ptr->row_pointers); in png_get_rows()
52 png_get_image_width(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_image_width() argument
[all …]
Dpngset.c25 png_set_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_bKGD() argument
30 if (png_ptr == NULL || info_ptr == NULL || background == NULL) in png_set_bKGD()
33 info_ptr->background = *background; in png_set_bKGD()
34 info_ptr->valid |= PNG_INFO_bKGD; in png_set_bKGD()
40 png_set_cHRM_fixed(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_cHRM_fixed() argument
49 if (png_ptr == NULL || info_ptr == NULL) in png_set_cHRM_fixed()
61 if (png_colorspace_set_chromaticities(png_ptr, &info_ptr->colorspace, &xy, in png_set_cHRM_fixed()
63 info_ptr->colorspace.flags |= PNG_COLORSPACE_FROM_cHRM; in png_set_cHRM_fixed()
65 png_colorspace_sync_info(png_ptr, info_ptr); in png_set_cHRM_fixed()
69 png_set_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_cHRM_XYZ_fixed() argument
[all …]
Dpngwrite.c24 write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr, in write_unknown_chunks() argument
27 if (info_ptr->unknown_chunks_num != 0) in write_unknown_chunks()
33 for (up = info_ptr->unknown_chunks; in write_unknown_chunks()
34 up < info_ptr->unknown_chunks + info_ptr->unknown_chunks_num; in write_unknown_chunks()
84 png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr) in png_write_info_before_PLTE() argument
88 if (png_ptr == NULL || info_ptr == NULL) in png_write_info_before_PLTE()
107 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height, in png_write_info_before_PLTE()
108 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type, in png_write_info_before_PLTE()
109 info_ptr->filter_type, in png_write_info_before_PLTE()
111 info_ptr->interlace_type in png_write_info_before_PLTE()
[all …]
Dexample.c276 png_infop info_ptr;
289 png_infop info_ptr;
310 info_ptr = png_create_info_struct(png_ptr);
311 if (info_ptr == NULL)
325 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
355 png_read_png(png_ptr, info_ptr, png_transforms, NULL);
363 png_read_info(png_ptr, info_ptr);
365 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
410 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) != 0)
421 if (png_get_bKGD(png_ptr, info_ptr, &image_background) != 0)
[all …]
Dpng.h1011 PNG_EXPORTA(19, void, png_info_init_3, (png_infopp info_ptr,
1016 (png_structrp png_ptr, png_const_inforp info_ptr));
1018 (png_structrp png_ptr, png_const_inforp info_ptr));
1023 (png_structrp png_ptr, png_inforp info_ptr));
1368 png_inforp info_ptr));
1404 png_inforp info_ptr));
1408 PNG_EXPORT(62, void, png_read_end, (png_structrp png_ptr, png_inforp info_ptr));
1688 png_inforp info_ptr, png_bytep buffer, size_t buffer_size));
1731 png_inforp info_ptr, png_uint_32 free_me, int num));
1741 png_inforp info_ptr, int freer, png_uint_32 mask));
[all …]
Dpng.c356 png_inforp info_ptr; variable
368 info_ptr = png_voidcast(png_inforp, png_malloc_base(png_ptr,
369 (sizeof *info_ptr)));
371 if (info_ptr != NULL)
372 memset(info_ptr, 0, (sizeof *info_ptr));
374 return info_ptr;
388 png_inforp info_ptr = NULL; in png_destroy_info_struct() local
396 info_ptr = *info_ptr_ptr; in png_destroy_info_struct()
398 if (info_ptr != NULL) in png_destroy_info_struct()
408 png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1); in png_destroy_info_struct()
[all …]
/third_party/libpng/
Dpngget.c20 png_get_valid(png_const_structrp png_ptr, png_const_inforp info_ptr, 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()
30 png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_rowbytes() argument
32 if (png_ptr != NULL && info_ptr != NULL) in png_get_rowbytes()
33 return(info_ptr->rowbytes); in png_get_rowbytes()
40 png_get_rows(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_rows() argument
42 if (png_ptr != NULL && info_ptr != NULL) in png_get_rows()
43 return(info_ptr->row_pointers); in png_get_rows()
52 png_get_image_width(png_const_structrp png_ptr, png_const_inforp info_ptr) in png_get_image_width() argument
[all …]
Dpngset.c25 png_set_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_bKGD() argument
30 if (png_ptr == NULL || info_ptr == NULL || background == NULL) in png_set_bKGD()
33 info_ptr->background = *background; in png_set_bKGD()
34 info_ptr->valid |= PNG_INFO_bKGD; in png_set_bKGD()
40 png_set_cHRM_fixed(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_cHRM_fixed() argument
49 if (png_ptr == NULL || info_ptr == NULL) in png_set_cHRM_fixed()
61 if (png_colorspace_set_chromaticities(png_ptr, &info_ptr->colorspace, &xy, in png_set_cHRM_fixed()
63 info_ptr->colorspace.flags |= PNG_COLORSPACE_FROM_cHRM; in png_set_cHRM_fixed()
65 png_colorspace_sync_info(png_ptr, info_ptr); in png_set_cHRM_fixed()
69 png_set_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_inforp info_ptr, in png_set_cHRM_XYZ_fixed() argument
[all …]
Dpngwrite.c24 write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr, in write_unknown_chunks() argument
27 if (info_ptr->unknown_chunks_num != 0) in write_unknown_chunks()
33 for (up = info_ptr->unknown_chunks; in write_unknown_chunks()
34 up < info_ptr->unknown_chunks + info_ptr->unknown_chunks_num; in write_unknown_chunks()
84 png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr) in png_write_info_before_PLTE() argument
88 if (png_ptr == NULL || info_ptr == NULL) in png_write_info_before_PLTE()
107 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height, in png_write_info_before_PLTE()
108 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type, in png_write_info_before_PLTE()
109 info_ptr->filter_type, in png_write_info_before_PLTE()
111 info_ptr->interlace_type in png_write_info_before_PLTE()
[all …]
Dexample.c276 png_infop info_ptr;
289 png_infop info_ptr;
310 info_ptr = png_create_info_struct(png_ptr);
311 if (info_ptr == NULL)
325 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
355 png_read_png(png_ptr, info_ptr, png_transforms, NULL);
363 png_read_info(png_ptr, info_ptr);
365 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
410 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) != 0)
421 if (png_get_bKGD(png_ptr, info_ptr, &image_background) != 0)
[all …]
Dpng.h1011 PNG_EXPORTA(19, void, png_info_init_3, (png_infopp info_ptr,
1016 (png_structrp png_ptr, png_const_inforp info_ptr));
1018 (png_structrp png_ptr, png_const_inforp info_ptr));
1023 (png_structrp png_ptr, png_inforp info_ptr));
1368 png_inforp info_ptr));
1404 png_inforp info_ptr));
1408 PNG_EXPORT(62, void, png_read_end, (png_structrp png_ptr, png_inforp info_ptr));
1688 png_inforp info_ptr, png_bytep buffer, size_t buffer_size));
1731 png_inforp info_ptr, png_uint_32 free_me, int num));
1741 png_inforp info_ptr, int freer, png_uint_32 mask));
[all …]
Dpng.c356 png_inforp info_ptr; variable
368 info_ptr = png_voidcast(png_inforp, png_malloc_base(png_ptr,
369 (sizeof *info_ptr)));
371 if (info_ptr != NULL)
372 memset(info_ptr, 0, (sizeof *info_ptr));
374 return info_ptr;
388 png_inforp info_ptr = NULL; in png_destroy_info_struct() local
396 info_ptr = *info_ptr_ptr; in png_destroy_info_struct()
398 if (info_ptr != NULL) in png_destroy_info_struct()
408 png_free_data(png_ptr, info_ptr, PNG_FREE_ALL, -1); in png_destroy_info_struct()
[all …]
/third_party/skia/third_party/externals/libpng/contrib/gregbook/
Dwritepng.c87 png_infop info_ptr; in writepng_init() local
98 info_ptr = png_create_info_struct(png_ptr); in writepng_init()
99 if (!info_ptr) { in writepng_init()
112 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_init()
149 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_init()
156 png_set_IHDR(png_ptr, info_ptr, mainprog_ptr->width, mainprog_ptr->height, in writepng_init()
161 png_set_gAMA(png_ptr, info_ptr, mainprog_ptr->gamma); in writepng_init()
169 png_set_bKGD(png_ptr, info_ptr, &background); in writepng_init()
176 png_set_tIME(png_ptr, info_ptr, &modtime); in writepng_init()
219 png_set_text(png_ptr, info_ptr, text, num_text); in writepng_init()
[all …]
Dreadpng2.c73 static void readpng2_info_callback(png_structp png_ptr, png_infop info_ptr);
76 static void readpng2_end_callback(png_structp png_ptr, png_infop info_ptr);
108 png_infop info_ptr; in readpng2_init() local
118 info_ptr = png_create_info_struct(png_ptr); in readpng2_init()
119 if (!info_ptr) { in readpng2_init()
136 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng2_init()
177 mainprog_ptr->info_ptr = info_ptr; in readpng2_init()
193 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in readpng2_decode_data() local
200 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng2_decode_data()
202 mainprog_ptr->info_ptr = NULL; in readpng2_decode_data()
[all …]
Dreadpng.c70 static png_infop info_ptr = NULL; variable
108 info_ptr = png_create_info_struct(png_ptr); in readpng_init()
109 if (!info_ptr) { in readpng_init()
124 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_init()
132 png_read_info(png_ptr, info_ptr); /* read all PNG info up to image data */ in readpng_init()
139 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, in readpng_init()
165 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_get_bgcolor()
170 if (!png_get_valid(png_ptr, info_ptr, PNG_INFO_bKGD)) in readpng_get_bgcolor()
177 png_get_bKGD(png_ptr, info_ptr, &pBackground); in readpng_get_bgcolor()
223 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_get_image()
[all …]
/third_party/libpng/contrib/gregbook/
Dwritepng.c87 png_infop info_ptr; in writepng_init() local
98 info_ptr = png_create_info_struct(png_ptr); in writepng_init()
99 if (!info_ptr) { in writepng_init()
112 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_init()
149 png_destroy_write_struct(&png_ptr, &info_ptr); in writepng_init()
156 png_set_IHDR(png_ptr, info_ptr, mainprog_ptr->width, mainprog_ptr->height, in writepng_init()
161 png_set_gAMA(png_ptr, info_ptr, mainprog_ptr->gamma); in writepng_init()
169 png_set_bKGD(png_ptr, info_ptr, &background); in writepng_init()
176 png_set_tIME(png_ptr, info_ptr, &modtime); in writepng_init()
219 png_set_text(png_ptr, info_ptr, text, num_text); in writepng_init()
[all …]
Dreadpng2.c73 static void readpng2_info_callback(png_structp png_ptr, png_infop info_ptr);
76 static void readpng2_end_callback(png_structp png_ptr, png_infop info_ptr);
108 png_infop info_ptr; in readpng2_init() local
118 info_ptr = png_create_info_struct(png_ptr); in readpng2_init()
119 if (!info_ptr) { in readpng2_init()
136 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng2_init()
177 mainprog_ptr->info_ptr = info_ptr; in readpng2_init()
193 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; in readpng2_decode_data() local
200 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng2_decode_data()
202 mainprog_ptr->info_ptr = NULL; in readpng2_decode_data()
[all …]
Dreadpng.c70 static png_infop info_ptr = NULL; variable
108 info_ptr = png_create_info_struct(png_ptr); in readpng_init()
109 if (!info_ptr) { in readpng_init()
124 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_init()
132 png_read_info(png_ptr, info_ptr); /* read all PNG info up to image data */ in readpng_init()
139 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, in readpng_init()
165 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_get_bgcolor()
170 if (!png_get_valid(png_ptr, info_ptr, PNG_INFO_bKGD)) in readpng_get_bgcolor()
177 png_get_bKGD(png_ptr, info_ptr, &pBackground); in readpng_get_bgcolor()
223 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); in readpng_get_image()
[all …]
/third_party/libpng/contrib/oss-fuzz/
Dlibpng_read_fuzzer.cc33 png_destroy_read_struct(&png_handler.png_ptr, &png_handler.info_ptr,\
35 else if (png_handler.info_ptr) \
36 png_destroy_read_struct(&png_handler.png_ptr, &png_handler.info_ptr,\
42 png_handler.info_ptr = nullptr; \
52 png_infop info_ptr = nullptr; member
62 png_destroy_read_struct(&png_ptr, &info_ptr, &end_info_ptr); in ~PngObjectHandler()
63 else if (info_ptr) in ~PngObjectHandler()
64 png_destroy_read_struct(&png_ptr, &info_ptr, nullptr); in ~PngObjectHandler()
100 png_handler.info_ptr = nullptr; in LLVMFuzzerTestOneInput()
109 png_handler.info_ptr = png_create_info_struct(png_handler.png_ptr); in LLVMFuzzerTestOneInput()
[all …]

12345