/external/libpng/ |
pngget.c | 20 png_get_valid(png_const_structrp png_ptr, png_const_inforp info_ptr, 23 if (png_ptr != NULL && info_ptr != NULL) 24 return(info_ptr->valid & flag); 30 png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr) 32 if (png_ptr != NULL && info_ptr != NULL) 33 return(info_ptr->rowbytes); 40 png_get_rows(png_const_structrp png_ptr, png_const_inforp info_ptr) 42 if (png_ptr != NULL && info_ptr != NULL) 43 return(info_ptr->row_pointers); 52 png_get_image_width(png_const_structrp png_ptr, png_const_inforp info_ptr) [all...] |
pngset.c | 25 png_set_bKGD(png_const_structrp png_ptr, png_inforp info_ptr, 30 if (png_ptr == NULL || info_ptr == NULL || background == NULL) 33 info_ptr->background = *background; 34 info_ptr->valid |= PNG_INFO_bKGD; 40 png_set_cHRM_fixed(png_const_structrp png_ptr, png_inforp info_ptr, 49 if (png_ptr == NULL || info_ptr == NULL) 61 if (png_colorspace_set_chromaticities(png_ptr, &info_ptr->colorspace, &xy, 63 info_ptr->colorspace.flags |= PNG_COLORSPACE_FROM_cHRM; 65 png_colorspace_sync_info(png_ptr, info_ptr); 69 png_set_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_inforp info_ptr, [all...] |
pngwrite.c | 24 write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr, 27 if (info_ptr->unknown_chunks_num != 0) 33 for (up = info_ptr->unknown_chunks; 34 up < info_ptr->unknown_chunks + info_ptr->unknown_chunks_num; 78 * you to supply a PNG_INFO_ flag, and check info_ptr->valid before writing 84 png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr) 88 if (png_ptr == NULL || info_ptr == NULL) 107 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height 1464 png_infop info_ptr = png_create_info_struct(png_ptr); local 1923 png_inforp info_ptr = image->opaque->info_ptr; local [all...] |
pngpread.c | 36 png_process_data(png_structrp png_ptr, png_inforp info_ptr, 39 if (png_ptr == NULL || info_ptr == NULL) 46 png_process_some_data(png_ptr, info_ptr); 94 png_process_some_data(png_structrp png_ptr, png_inforp info_ptr) 103 png_push_read_sig(png_ptr, info_ptr); 109 png_push_read_chunk(png_ptr, info_ptr); 134 png_push_read_sig(png_structrp png_ptr, png_inforp info_ptr) 144 png_push_fill_buffer(png_ptr, &(info_ptr->signature[num_checked]), 148 if (png_sig_cmp(info_ptr->signature, num_checked, num_to_check)) 151 png_sig_cmp(info_ptr->signature, num_checked, num_to_check - 4) [all...] |
/external/pdfium/third_party/lpng_v163/ |
pngget.c | 19 png_get_valid(png_const_structrp png_ptr, png_const_inforp info_ptr,
22 if (png_ptr != NULL && info_ptr != NULL)
23 return(info_ptr->valid & flag);
29 png_get_rowbytes(png_const_structrp png_ptr, png_const_inforp info_ptr)
31 if (png_ptr != NULL && info_ptr != NULL)
32 return(info_ptr->rowbytes);
39 png_get_rows(png_const_structrp png_ptr, png_const_inforp info_ptr)
41 if (png_ptr != NULL && info_ptr != NULL)
42 return(info_ptr->row_pointers);
51 png_get_image_width(png_const_structrp png_ptr, png_const_inforp info_ptr)
[all...] |
pngset.c | 24 png_set_bKGD(png_const_structrp png_ptr, png_inforp info_ptr,
29 if (png_ptr == NULL || info_ptr == NULL || background == NULL)
32 info_ptr->background = *background;
33 info_ptr->valid |= PNG_INFO_bKGD;
39 png_set_cHRM_fixed(png_const_structrp png_ptr, png_inforp info_ptr,
48 if (png_ptr == NULL || info_ptr == NULL)
60 if (png_colorspace_set_chromaticities(png_ptr, &info_ptr->colorspace, &xy,
62 info_ptr->colorspace.flags |= PNG_COLORSPACE_FROM_cHRM;
64 png_colorspace_sync_info(png_ptr, info_ptr);
68 png_set_cHRM_XYZ_fixed(png_const_structrp png_ptr, png_inforp info_ptr,
[all...] |
pngwrite.c | 23 write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr,
26 if (info_ptr->unknown_chunks_num)
32 for (up = info_ptr->unknown_chunks;
33 up < info_ptr->unknown_chunks + info_ptr->unknown_chunks_num;
77 * you to supply a PNG_INFO_ flag, and check info_ptr->valid before writing
83 png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr)
87 if (png_ptr == NULL || info_ptr == NULL)
105 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height, 1574 png_infop info_ptr = png_create_info_struct(png_ptr); local 2023 png_inforp info_ptr = image->opaque->info_ptr; local [all...] |
/external/opencv3/3rdparty/libpng/ |
pngget.c | 20 png_get_valid(png_const_structp png_ptr, png_const_infop info_ptr, 23 if (png_ptr != NULL && info_ptr != NULL) 24 return(info_ptr->valid & flag); 30 png_get_rowbytes(png_const_structp png_ptr, png_const_infop info_ptr) 32 if (png_ptr != NULL && info_ptr != NULL) 33 return(info_ptr->rowbytes); 40 png_get_rows(png_const_structp png_ptr, png_const_infop info_ptr) 42 if (png_ptr != NULL && info_ptr != NULL) 43 return(info_ptr->row_pointers); 52 png_get_image_width(png_const_structp png_ptr, png_const_infop info_ptr) [all...] |
pngset.c | 25 png_set_bKGD(png_structp png_ptr, png_infop info_ptr, 30 if (png_ptr == NULL || info_ptr == NULL) 33 png_memcpy(&(info_ptr->background), background, png_sizeof(png_color_16)); 34 info_ptr->valid |= PNG_INFO_bKGD; 40 png_set_cHRM_fixed(png_structp png_ptr, png_infop info_ptr, 47 if (png_ptr == NULL || info_ptr == NULL) 55 info_ptr->x_white = white_x; 56 info_ptr->y_white = white_y; 57 info_ptr->x_red = red_x; 58 info_ptr->y_red = red_y [all...] |
pngwrite.c | 22 * you to supply a PNG_INFO_ flag, and check info_ptr->valid before writing 28 png_write_info_before_PLTE(png_structp png_ptr, png_infop info_ptr) 32 if (png_ptr == NULL || info_ptr == NULL) 50 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height, 51 info_ptr->bit_depth, info_ptr->color_type, info_ptr->compression_type, 52 info_ptr->filter_type, 54 info_ptr->interlace_type) 892 png_infop info_ptr = NULL; local [all...] |
pngread.c | 178 png_read_info(png_structp png_ptr, png_infop info_ptr) 182 if (png_ptr == NULL || info_ptr == NULL) 186 png_read_sig(png_ptr, info_ptr); 201 png_handle_IHDR(png_ptr, info_ptr, length); 204 png_handle_IEND(png_ptr, info_ptr, length); 213 png_handle_unknown(png_ptr, info_ptr, length); 232 png_handle_PLTE(png_ptr, info_ptr, length); 250 png_handle_bKGD(png_ptr, info_ptr, length); 255 png_handle_cHRM(png_ptr, info_ptr, length); 260 png_handle_gAMA(png_ptr, info_ptr, length) 947 png_infop info_ptr = NULL, end_info_ptr = NULL; local [all...] |
/external/libpng/contrib/libtests/ |
readpng.c | 38 png_infop info_ptr = NULL; local 46 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 54 info_ptr = png_create_info_struct(png_ptr); 55 if (info_ptr == NULL) 60 png_read_info(png_ptr, info_ptr); 63 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); 73 png_uint_32 height = png_get_image_height(png_ptr, info_ptr); 77 int passes = png_get_interlace_type(png_ptr, info_ptr) == 103 png_read_end(png_ptr, info_ptr); 104 png_destroy_read_struct(&png_ptr, &info_ptr, NULL) [all...] |
timepng.c | 41 png_infop info_ptr = NULL; local 49 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 57 info_ptr = png_create_info_struct(png_ptr); 58 if (info_ptr == NULL) 61 png_read_info(png_ptr, info_ptr); 64 png_size_t rowbytes = png_get_rowbytes(png_ptr, info_ptr); 73 png_uint_32 height = png_get_image_height(png_ptr, info_ptr); 93 png_read_end(png_ptr, info_ptr); 94 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
|
/external/pdfium/core/src/fxcodec/codec/ |
fx_codec_png.cpp | 27 png_infop info_ptr,
31 pAttribute->m_nXDPI = png_get_x_pixels_per_meter(png_ptr, info_ptr);
32 pAttribute->m_nYDPI = png_get_y_pixels_per_meter(png_ptr, info_ptr);
35 png_get_pHYs(png_ptr, info_ptr, &res_x, &res_y, &unit_type);
49 png_get_iCCP(png_ptr, info_ptr, &icc_name, &compress_type, &icc_profile,
55 png_get_tIME(png_ptr, info_ptr, &t);
71 png_get_text(png_ptr, info_ptr, &text, &num_text);
96 png_infop info_ptr;
member in struct:FXPNG_Context 113 static void _png_get_header_func(png_structp png_ptr, png_infop info_ptr) {
125 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bpc, &color_type, NULL, [all...] |
/external/opencv/otherlibs/highgui/ |
grfmt_png.cpp | 118 png_infop info_ptr = (png_infop)m_info_ptr; local 120 png_destroy_read_struct( &png_ptr, &info_ptr, &end_info ); 137 png_infop info_ptr = png_create_info_struct( png_ptr ); local 141 m_info_ptr = info_ptr; 144 if( info_ptr && end_info ) 155 png_read_info( png_ptr, info_ptr ); 157 png_get_IHDR( png_ptr, info_ptr, &width, &height, 192 png_infop info_ptr = (png_infop)m_info_ptr; local 227 png_read_update_info( png_ptr, info_ptr ); 270 png_infop info_ptr = 0 local [all...] |
/external/libpng/contrib/gregbook/ |
writepng.c | 87 png_infop info_ptr; local 98 info_ptr = png_create_info_struct(png_ptr); 99 if (!info_ptr) { 112 png_destroy_write_struct(&png_ptr, &info_ptr); 149 png_destroy_write_struct(&png_ptr, &info_ptr); 156 png_set_IHDR(png_ptr, info_ptr, mainprog_ptr->width, mainprog_ptr->height, 161 png_set_gAMA(png_ptr, info_ptr, mainprog_ptr->gamma); 169 png_set_bKGD(png_ptr, info_ptr, &background); 176 png_set_tIME(png_ptr, info_ptr, &modtime); 219 png_set_text(png_ptr, info_ptr, text, num_text) 262 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; local 300 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; local 330 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; local 359 png_infop info_ptr = (png_infop)mainprog_ptr->info_ptr; local [all...] |
readpng.c | 70 static png_infop info_ptr = NULL; variable 108 info_ptr = png_create_info_struct(png_ptr); 109 if (!info_ptr) { 124 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 132 png_read_info(png_ptr, info_ptr); /* read all PNG info up to image data */ 139 png_get_IHDR(png_ptr, info_ptr, &width, &height, &bit_depth, &color_type, 165 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 170 if (!png_get_valid(png_ptr, info_ptr, PNG_INFO_bKGD)) 177 png_get_bKGD(png_ptr, info_ptr, &pBackground); 223 png_destroy_read_struct(&png_ptr, &info_ptr, NULL) [all...] |
/external/autotest/client/deps/glbench/src/ |
png_helper.cc | 32 png_infop info_ptr; local 58 info_ptr = png_create_info_struct(png_ptr); 59 if (!info_ptr) 68 png_set_IHDR(png_ptr, info_ptr, width, height, 71 png_write_info(png_ptr, info_ptr);
|
/external/libpng/contrib/examples/ |
iccfrompng.c | 40 png_infop info_ptr = NULL; local 54 png_destroy_read_struct(&png_ptr, &info_ptr, NULL); 60 info_ptr = png_create_info_struct(png_ptr); 61 if (info_ptr == NULL) 64 png_read_info(png_ptr, info_ptr); 71 if (png_get_iCCP(png_ptr, info_ptr, &name, &compression_type, &profile, 86 png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
|
/external/libpng/contrib/visupng/ |
PngFile.c | 30 static png_infop info_ptr = NULL; variable 147 info_ptr = png_create_info_struct(png_ptr); 148 if (!info_ptr) 170 png_read_info(png_ptr, info_ptr); 174 png_get_IHDR(png_ptr, info_ptr, piWidth, piHeight, &iBitDepth, 192 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) 199 if (png_get_bKGD(png_ptr, info_ptr, &pBackground)) 212 if (png_get_gAMA(png_ptr, info_ptr, &dGamma)) 215 /* after the transformations are registered, update info_ptr data */ 217 png_read_update_info(png_ptr, info_ptr); [all...] |
/external/libpng/contrib/pngminus/ |
png2pnm.c | 197 png_info *info_ptr = NULL; local 231 info_ptr = png_create_info_struct (png_ptr); 232 if (!info_ptr) 240 png_destroy_read_struct (&png_ptr, &info_ptr, NULL); 249 png_read_info (png_ptr, info_ptr); 252 png_get_IHDR (png_ptr, info_ptr, 265 if (png_get_valid (png_ptr, info_ptr, PNG_INFO_tRNS)) 277 if (png_get_gAMA (png_ptr, info_ptr, &file_gamma)) 281 /* all transformations have been registered; now update info_ptr data, 284 png_read_update_info (png_ptr, info_ptr); [all...] |
/external/opencv3/modules/imgcodecs/src/ |
grfmt_png.cpp | 118 png_infop info_ptr = (png_infop)m_info_ptr; local 120 png_destroy_read_struct( &png_ptr, &info_ptr, &end_info ); 150 png_infop info_ptr = png_create_info_struct( png_ptr ); local 154 m_info_ptr = info_ptr; 158 if( info_ptr && end_info ) 178 png_read_info( png_ptr, info_ptr ); 180 png_get_IHDR( png_ptr, info_ptr, &wdth, &hght, 196 png_get_tRNS( png_ptr, info_ptr, &trans, &num_trans, &trans_values); 237 png_infop info_ptr = (png_infop)m_info_ptr; local 281 png_read_update_info( png_ptr, info_ptr ); 344 png_infop info_ptr = 0; local [all...] |
/external/skia/src/images/ |
SkImageDecoder_libpng.cpp | 50 SkPNGImageIndex(SkStreamRewindable* stream, png_structp png_ptr, png_infop info_ptr) 53 , fInfo_ptr(info_ptr) 87 bool decodePalette(png_structp png_ptr, png_infop info_ptr, int bitDepth, 104 PNGAutoClean(png_structp p, png_infop i): png_ptr(p), info_ptr(i) {} 106 png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); 110 png_infop info_ptr; member in struct:PNGAutoClean 180 static bool hasTransparencyInPalette(png_structp png_ptr, png_infop info_ptr) { 184 if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) { 185 png_get_tRNS(png_ptr, info_ptr, &trans, &num_trans, nullptr); 222 png_infop info_ptr = png_create_info_struct(png_ptr) local 283 png_infop info_ptr; local 914 png_infop info_ptr; local [all...] |
/bootable/recovery/minui/ |
resources.cpp | 47 static int open_png(const char* name, png_structp* png_ptr, png_infop* info_ptr, 80 *info_ptr = png_create_info_struct(*png_ptr); 81 if (!*info_ptr) { 93 png_read_info(*png_ptr, *info_ptr); 95 png_get_IHDR(*png_ptr, *info_ptr, width, height, &bit_depth, 98 *channels = png_get_channels(*png_ptr, *info_ptr); 123 png_destroy_read_struct(png_ptr, info_ptr, NULL); 202 png_infop info_ptr = NULL; local 210 result = open_png(name, &png_ptr, &info_ptr, &width, &height, &channels); 233 png_destroy_read_struct(&png_ptr, &info_ptr, NULL) 243 png_infop info_ptr = NULL; local 330 png_infop info_ptr = NULL; local 391 png_infop info_ptr = NULL; local [all...] |
/external/skia/tools/skiaserve/ |
Request.cpp | 23 png_infop info_ptr = png_create_info_struct(png); local 24 SkASSERT(info_ptr != nullptr); 28 png_set_IHDR(png, info_ptr, width, height, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, 44 png_set_rows(png, info_ptr, &rows[0]); 46 png_write_png(png, info_ptr, PNG_TRANSFORM_IDENTITY, NULL);
|