/external/syslinux/com32/lib/libpng/ |
D | pngpread.c | 31 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() 37 png_push_restore_buffer(png_ptr, buffer, buffer_size); in png_process_data() 39 while (png_ptr->buffer_size) 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 51 if (png_ptr == NULL) in png_process_some_data() 54 switch (png_ptr->process_mode) in png_process_some_data() 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() [all …]
|
D | pngread.c | 47 png_structp png_ptr; in png_create_read_struct_2() local 60 png_ptr = (png_structp)png_create_struct_2(PNG_STRUCT_PNG, in png_create_read_struct_2() 63 png_ptr = (png_structp)png_create_struct(PNG_STRUCT_PNG); in png_create_read_struct_2() 65 if (png_ptr == NULL) in png_create_read_struct_2() 70 png_ptr->user_width_max = PNG_USER_WIDTH_MAX; in png_create_read_struct_2() 71 png_ptr->user_height_max = PNG_USER_HEIGHT_MAX; in png_create_read_struct_2() 74 png_ptr->user_chunk_cache_max = PNG_USER_CHUNK_CACHE_MAX; in png_create_read_struct_2() 78 png_ptr->user_chunk_malloc_max = PNG_USER_CHUNK_MALLOC_MAX; in png_create_read_struct_2() 86 if (setjmp(png_ptr->jmpbuf)) in png_create_read_struct_2() 89 png_free(png_ptr, png_ptr->zbuf); in png_create_read_struct_2() [all …]
|
D | pngrutil.c | 29 __inline double png_strtod(png_structp png_ptr, PNG_CONST char *nptr, in png_strtod() argument 37 str = (wchar_t *)png_malloc(png_ptr, len * png_sizeof(wchar_t)); in png_strtod() 44 png_free(png_ptr, str); in png_strtod() 54 png_get_uint_31(png_structp png_ptr, png_bytep buf) in png_get_uint_31() argument 66 png_error(png_ptr, "PNG unsigned integer out of range."); in png_get_uint_31() 112 png_read_chunk_header(png_structp png_ptr) in png_read_chunk_header() argument 118 png_read_data(png_ptr, buf, 8); in png_read_chunk_header() 119 length = png_get_uint_31(png_ptr, buf); in png_read_chunk_header() 122 png_memcpy(png_ptr->chunk_name, buf + 4, 4); in png_read_chunk_header() 125 png_ptr->chunk_name, length); in png_read_chunk_header() [all …]
|
D | pngwrite.c | 30 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() 36 if (!(png_ptr->mode & PNG_WROTE_INFO_BEFORE_PLTE)) in png_write_info_before_PLTE() 39 png_write_sig(png_ptr); in png_write_info_before_PLTE() 41 if ((png_ptr->mode&PNG_HAVE_PNG_SIGNATURE) && \ in png_write_info_before_PLTE() 42 (png_ptr->mng_features_permitted)) in png_write_info_before_PLTE() 44 png_warning(png_ptr, "MNG features are not allowed in a PNG datastream"); in png_write_info_before_PLTE() 45 png_ptr->mng_features_permitted = 0; in png_write_info_before_PLTE() 49 png_write_IHDR(png_ptr, info_ptr->width, info_ptr->height, in png_write_info_before_PLTE() 64 png_write_gAMA(png_ptr, info_ptr->gamma); in png_write_info_before_PLTE() [all …]
|
D | pngwutil.c | 63 png_write_sig(png_structp png_ptr) in png_write_sig() argument 68 png_write_data(png_ptr, &png_signature[png_ptr->sig_bytes], in png_write_sig() 69 (png_size_t)(8 - png_ptr->sig_bytes)); in png_write_sig() 70 if (png_ptr->sig_bytes < 3) in png_write_sig() 71 png_ptr->mode |= PNG_HAVE_PNG_SIGNATURE; in png_write_sig() 84 png_write_chunk(png_structp png_ptr, png_bytep chunk_name, in png_write_chunk() argument 87 if (png_ptr == NULL) in png_write_chunk() 89 png_write_chunk_start(png_ptr, chunk_name, (png_uint_32)length); in png_write_chunk() 90 png_write_chunk_data(png_ptr, data, (png_size_t)length); in png_write_chunk() 91 png_write_chunk_end(png_ptr); in png_write_chunk() [all …]
|
D | pngmem.c | 57 png_structp png_ptr = &dummy_struct; in png_create_struct_2() local 58 png_ptr->mem_ptr=mem_ptr; in png_create_struct_2() 59 struct_ptr = (*(malloc_fn))(png_ptr, (png_uint_32)size); in png_create_struct_2() 89 png_structp png_ptr = &dummy_struct; in png_destroy_struct_2() local 90 png_ptr->mem_ptr=mem_ptr; in png_destroy_struct_2() 91 (*(free_fn))(png_ptr, struct_ptr); in png_destroy_struct_2() 119 png_calloc(png_structp png_ptr, png_uint_32 size) in png_calloc() argument 123 ret = (png_malloc(png_ptr, size)); in png_calloc() 130 png_malloc(png_structp png_ptr, png_uint_32 size) in png_malloc() argument 134 if (png_ptr == NULL || size == 0) in png_malloc() [all …]
|
D | example.c | 34 # define png_jmpbuf(png_ptr) ((png_ptr)->jmpbuf) 85 png_structp png_ptr; 98 png_structp png_ptr; 110 png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, 113 if (png_ptr == NULL) 120 info_ptr = png_create_info_struct(png_ptr); 124 png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL); 133 if (setjmp(png_jmpbuf(png_ptr))) 136 png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL); 145 png_init_io(png_ptr, fp); [all …]
|
/external/libpng/ |
D | pngpread.c | 29 if (png_ptr->push_length + 4 > png_ptr->buffer_size) \ 30 { png_push_save_buffer(png_ptr); return; } 32 if (png_ptr->buffer_size < N) \ 33 { png_push_save_buffer(png_ptr); return; } 36 png_process_data(png_structrp png_ptr, png_inforp info_ptr, in png_process_data() argument 39 if (png_ptr == NULL || info_ptr == NULL) in png_process_data() 42 png_push_restore_buffer(png_ptr, buffer, buffer_size); in png_process_data() 44 while (png_ptr->buffer_size) in png_process_data() 46 png_process_some_data(png_ptr, info_ptr); in png_process_data() 51 png_process_data_pause(png_structrp png_ptr, int save) in png_process_data_pause() argument [all …]
|
D | pngrutil.c | 22 png_get_uint_31(png_const_structrp png_ptr, png_const_bytep buf) in png_get_uint_31() argument 27 png_error(png_ptr, "PNG unsigned integer out of range"); in png_get_uint_31() 41 png_get_fixed_point(png_structrp png_ptr, png_const_bytep buf) in png_get_fixed_point() argument 49 if (png_ptr != NULL) in png_get_fixed_point() 50 png_warning(png_ptr, "PNG fixed point integer out of range"); in png_get_fixed_point() 121 png_read_sig(png_structrp png_ptr, png_inforp info_ptr) in png_read_sig() argument 126 if (png_ptr->sig_bytes >= 8) in png_read_sig() 129 num_checked = png_ptr->sig_bytes; in png_read_sig() 133 png_ptr->io_state = PNG_IO_READING | PNG_IO_SIGNATURE; in png_read_sig() 137 png_read_data(png_ptr, &(info_ptr->signature[num_checked]), num_to_check); in png_read_sig() [all …]
|
D | pngwutil.c | 51 png_write_sig(png_structrp png_ptr) in png_write_sig() argument 57 png_ptr->io_state = PNG_IO_WRITING | PNG_IO_SIGNATURE; in png_write_sig() 61 png_write_data(png_ptr, &png_signature[png_ptr->sig_bytes], in png_write_sig() 62 (png_size_t)(8 - png_ptr->sig_bytes)); in png_write_sig() 64 if (png_ptr->sig_bytes < 3) in png_write_sig() 65 png_ptr->mode |= PNG_HAVE_PNG_SIGNATURE; in png_write_sig() 73 png_write_chunk_header(png_structrp png_ptr, png_uint_32 chunk_name, in png_write_chunk_header() argument 83 if (png_ptr == NULL) in png_write_chunk_header() 90 png_ptr->io_state = PNG_IO_WRITING | PNG_IO_CHUNK_HDR; in png_write_chunk_header() 96 png_write_data(png_ptr, buf, 8); in png_write_chunk_header() [all …]
|
D | pngwrite.c | 24 write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr, in write_unknown_chunks() argument 42 int keep = png_handle_as_unknown(png_ptr, up->name); in write_unknown_chunks() 60 png_ptr->unknown_default == PNG_HANDLE_CHUNK_ALWAYS))) in write_unknown_chunks() 65 png_warning(png_ptr, "Writing zero-length unknown chunk"); in write_unknown_chunks() 67 png_write_chunk(png_ptr, up->name, up->data, up->size); 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() 91 if ((png_ptr->mode & PNG_WROTE_INFO_BEFORE_PLTE) == 0) in png_write_info_before_PLTE() 94 png_write_sig(png_ptr); in png_write_info_before_PLTE() 97 if ((png_ptr->mode & PNG_HAVE_PNG_SIGNATURE) != 0 && \ in png_write_info_before_PLTE() [all …]
|
D | pngrtran.c | 25 png_set_crc_action(png_structrp png_ptr, int crit_action, int ancil_action) in png_set_crc_action() argument 29 if (png_ptr == NULL) in png_set_crc_action() 39 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 40 png_ptr->flags |= PNG_FLAG_CRC_CRITICAL_USE; in png_set_crc_action() 44 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 45 png_ptr->flags |= PNG_FLAG_CRC_CRITICAL_USE | in png_set_crc_action() 50 png_warning(png_ptr, in png_set_crc_action() 56 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 67 png_ptr->flags &= ~PNG_FLAG_CRC_ANCILLARY_MASK; in png_set_crc_action() 68 png_ptr->flags |= PNG_FLAG_CRC_ANCILLARY_USE; in png_set_crc_action() [all …]
|
D | pngread.c | 30 png_structp png_ptr = png_create_png_struct(user_png_ver, error_ptr, variable 45 png_structp png_ptr = png_create_png_struct(user_png_ver, error_ptr, 49 if (png_ptr != NULL) 51 png_ptr->mode = PNG_IS_READ_STRUCT; 57 png_ptr->IDAT_read_size = PNG_IDAT_READ_SIZE; 61 png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN; 67 png_ptr->flags |= PNG_FLAG_APP_WARNINGS_WARN; 75 png_set_read_fn(png_ptr, NULL, NULL); 78 return png_ptr; 92 png_read_info(png_structrp png_ptr, png_inforp info_ptr) in png_read_info() argument [all …]
|
/external/skia/third_party/libpng/ |
D | pngpread.c | 29 if (png_ptr->push_length + 4 > png_ptr->buffer_size) \ 30 { png_push_save_buffer(png_ptr); return; } 32 if (png_ptr->buffer_size < N) \ 33 { png_push_save_buffer(png_ptr); return; } 36 png_process_data(png_structrp png_ptr, png_inforp info_ptr, in png_process_data() argument 39 if (png_ptr == NULL || info_ptr == NULL) in png_process_data() 42 png_push_restore_buffer(png_ptr, buffer, buffer_size); in png_process_data() 44 while (png_ptr->buffer_size) in png_process_data() 46 png_process_some_data(png_ptr, info_ptr); in png_process_data() 51 png_process_data_pause(png_structrp png_ptr, int save) in png_process_data_pause() argument [all …]
|
D | pngrutil.c | 22 png_get_uint_31(png_const_structrp png_ptr, png_const_bytep buf) in png_get_uint_31() argument 27 png_error(png_ptr, "PNG unsigned integer out of range"); in png_get_uint_31() 41 png_get_fixed_point(png_structrp png_ptr, png_const_bytep buf) in png_get_fixed_point() argument 49 if (png_ptr != NULL) in png_get_fixed_point() 50 png_warning(png_ptr, "PNG fixed point integer out of range"); in png_get_fixed_point() 121 png_read_sig(png_structrp png_ptr, png_inforp info_ptr) in png_read_sig() argument 126 if (png_ptr->sig_bytes >= 8) in png_read_sig() 129 num_checked = png_ptr->sig_bytes; in png_read_sig() 133 png_ptr->io_state = PNG_IO_READING | PNG_IO_SIGNATURE; in png_read_sig() 137 png_read_data(png_ptr, &(info_ptr->signature[num_checked]), num_to_check); in png_read_sig() [all …]
|
D | pngwutil.c | 51 png_write_sig(png_structrp png_ptr) in png_write_sig() argument 57 png_ptr->io_state = PNG_IO_WRITING | PNG_IO_SIGNATURE; in png_write_sig() 61 png_write_data(png_ptr, &png_signature[png_ptr->sig_bytes], in png_write_sig() 62 (png_size_t)(8 - png_ptr->sig_bytes)); in png_write_sig() 64 if (png_ptr->sig_bytes < 3) in png_write_sig() 65 png_ptr->mode |= PNG_HAVE_PNG_SIGNATURE; in png_write_sig() 73 png_write_chunk_header(png_structrp png_ptr, png_uint_32 chunk_name, in png_write_chunk_header() argument 83 if (png_ptr == NULL) in png_write_chunk_header() 90 png_ptr->io_state = PNG_IO_WRITING | PNG_IO_CHUNK_HDR; in png_write_chunk_header() 96 png_write_data(png_ptr, buf, 8); in png_write_chunk_header() [all …]
|
D | pngwrite.c | 24 write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr, in write_unknown_chunks() argument 42 int keep = png_handle_as_unknown(png_ptr, up->name); in write_unknown_chunks() 60 png_ptr->unknown_default == PNG_HANDLE_CHUNK_ALWAYS))) in write_unknown_chunks() 65 png_warning(png_ptr, "Writing zero-length unknown chunk"); in write_unknown_chunks() 67 png_write_chunk(png_ptr, up->name, up->data, up->size); 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() 91 if ((png_ptr->mode & PNG_WROTE_INFO_BEFORE_PLTE) == 0) in png_write_info_before_PLTE() 94 png_write_sig(png_ptr); in png_write_info_before_PLTE() 97 if ((png_ptr->mode & PNG_HAVE_PNG_SIGNATURE) != 0 && \ in png_write_info_before_PLTE() [all …]
|
D | pngrtran.c | 25 png_set_crc_action(png_structrp png_ptr, int crit_action, int ancil_action) in png_set_crc_action() argument 29 if (png_ptr == NULL) in png_set_crc_action() 39 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 40 png_ptr->flags |= PNG_FLAG_CRC_CRITICAL_USE; in png_set_crc_action() 44 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 45 png_ptr->flags |= PNG_FLAG_CRC_CRITICAL_USE | in png_set_crc_action() 50 png_warning(png_ptr, in png_set_crc_action() 56 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 67 png_ptr->flags &= ~PNG_FLAG_CRC_ANCILLARY_MASK; in png_set_crc_action() 68 png_ptr->flags |= PNG_FLAG_CRC_ANCILLARY_USE; in png_set_crc_action() [all …]
|
D | pngread.c | 30 png_structp png_ptr = png_create_png_struct(user_png_ver, error_ptr, variable 45 png_structp png_ptr = png_create_png_struct(user_png_ver, error_ptr, 49 if (png_ptr != NULL) 51 png_ptr->mode = PNG_IS_READ_STRUCT; 57 png_ptr->IDAT_read_size = PNG_IDAT_READ_SIZE; 61 png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN; 67 png_ptr->flags |= PNG_FLAG_APP_WARNINGS_WARN; 75 png_set_read_fn(png_ptr, NULL, NULL); 78 return png_ptr; 92 png_read_info(png_structrp png_ptr, png_inforp info_ptr) in png_read_info() argument [all …]
|
/external/pdfium/third_party/libpng16/ |
D | pngpread.c | 29 if (png_ptr->push_length + 4 > png_ptr->buffer_size) \ 30 { png_push_save_buffer(png_ptr); return; } 32 if (png_ptr->buffer_size < N) \ 33 { png_push_save_buffer(png_ptr); return; } 36 png_process_data(png_structrp png_ptr, png_inforp info_ptr, in png_process_data() argument 39 if (png_ptr == NULL || info_ptr == NULL) in png_process_data() 42 png_push_restore_buffer(png_ptr, buffer, buffer_size); in png_process_data() 44 while (png_ptr->buffer_size) in png_process_data() 46 png_process_some_data(png_ptr, info_ptr); in png_process_data() 51 png_process_data_pause(png_structrp png_ptr, int save) in png_process_data_pause() argument [all …]
|
D | pngrutil.c | 22 png_get_uint_31(png_const_structrp png_ptr, png_const_bytep buf) in png_get_uint_31() argument 27 png_error(png_ptr, "PNG unsigned integer out of range"); in png_get_uint_31() 41 png_get_fixed_point(png_structrp png_ptr, png_const_bytep buf) in png_get_fixed_point() argument 49 if (png_ptr != NULL) in png_get_fixed_point() 50 png_warning(png_ptr, "PNG fixed point integer out of range"); in png_get_fixed_point() 121 png_read_sig(png_structrp png_ptr, png_inforp info_ptr) in png_read_sig() argument 126 if (png_ptr->sig_bytes >= 8) in png_read_sig() 129 num_checked = png_ptr->sig_bytes; in png_read_sig() 133 png_ptr->io_state = PNG_IO_READING | PNG_IO_SIGNATURE; in png_read_sig() 137 png_read_data(png_ptr, &(info_ptr->signature[num_checked]), num_to_check); in png_read_sig() [all …]
|
D | pngwutil.c | 51 png_write_sig(png_structrp png_ptr) in png_write_sig() argument 57 png_ptr->io_state = PNG_IO_WRITING | PNG_IO_SIGNATURE; in png_write_sig() 61 png_write_data(png_ptr, &png_signature[png_ptr->sig_bytes], in png_write_sig() 62 (png_size_t)(8 - png_ptr->sig_bytes)); in png_write_sig() 64 if (png_ptr->sig_bytes < 3) in png_write_sig() 65 png_ptr->mode |= PNG_HAVE_PNG_SIGNATURE; in png_write_sig() 73 png_write_chunk_header(png_structrp png_ptr, png_uint_32 chunk_name, in png_write_chunk_header() argument 83 if (png_ptr == NULL) in png_write_chunk_header() 90 png_ptr->io_state = PNG_IO_WRITING | PNG_IO_CHUNK_HDR; in png_write_chunk_header() 96 png_write_data(png_ptr, buf, 8); in png_write_chunk_header() [all …]
|
D | pngwrite.c | 24 write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr, in write_unknown_chunks() argument 42 int keep = png_handle_as_unknown(png_ptr, up->name); in write_unknown_chunks() 60 png_ptr->unknown_default == PNG_HANDLE_CHUNK_ALWAYS))) in write_unknown_chunks() 65 png_warning(png_ptr, "Writing zero-length unknown chunk"); in write_unknown_chunks() 67 png_write_chunk(png_ptr, up->name, up->data, up->size); 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() 91 if ((png_ptr->mode & PNG_WROTE_INFO_BEFORE_PLTE) == 0) in png_write_info_before_PLTE() 94 png_write_sig(png_ptr); in png_write_info_before_PLTE() 97 if ((png_ptr->mode & PNG_HAVE_PNG_SIGNATURE) != 0 && \ in png_write_info_before_PLTE() [all …]
|
D | pngrtran.c | 25 png_set_crc_action(png_structrp png_ptr, int crit_action, int ancil_action) in png_set_crc_action() argument 29 if (png_ptr == NULL) in png_set_crc_action() 39 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 40 png_ptr->flags |= PNG_FLAG_CRC_CRITICAL_USE; in png_set_crc_action() 44 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 45 png_ptr->flags |= PNG_FLAG_CRC_CRITICAL_USE | in png_set_crc_action() 50 png_warning(png_ptr, in png_set_crc_action() 56 png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK; in png_set_crc_action() 67 png_ptr->flags &= ~PNG_FLAG_CRC_ANCILLARY_MASK; in png_set_crc_action() 68 png_ptr->flags |= PNG_FLAG_CRC_ANCILLARY_USE; in png_set_crc_action() [all …]
|
D | pngread.c | 30 png_structp png_ptr = png_create_png_struct(user_png_ver, error_ptr, variable 45 png_structp png_ptr = png_create_png_struct(user_png_ver, error_ptr, 49 if (png_ptr != NULL) 51 png_ptr->mode = PNG_IS_READ_STRUCT; 57 png_ptr->IDAT_read_size = PNG_IDAT_READ_SIZE; 61 png_ptr->flags |= PNG_FLAG_BENIGN_ERRORS_WARN; 67 png_ptr->flags |= PNG_FLAG_APP_WARNINGS_WARN; 75 png_set_read_fn(png_ptr, NULL, NULL); 78 return png_ptr; 92 png_read_info(png_structrp png_ptr, png_inforp info_ptr) in png_read_info() argument [all …]
|