Lines Matching refs:save_size
560 png_size_t save_size = png_ptr->save_buffer_size; in png_push_crc_finish() local
569 if (skip_length < save_size) in png_push_crc_finish()
570 save_size = (png_size_t)skip_length; in png_push_crc_finish()
573 skip_length = (png_uint_32)save_size; in png_push_crc_finish()
575 png_calculate_crc(png_ptr, png_ptr->save_buffer_ptr, save_size); in png_push_crc_finish()
578 png_ptr->buffer_size -= save_size; in png_push_crc_finish()
579 png_ptr->save_buffer_size -= save_size; in png_push_crc_finish()
580 png_ptr->save_buffer_ptr += save_size; in png_push_crc_finish()
584 png_size_t save_size = png_ptr->current_buffer_size; in png_push_crc_finish() local
590 if (skip_length < save_size) in png_push_crc_finish()
591 save_size = (png_size_t)skip_length; in png_push_crc_finish()
594 skip_length = (png_uint_32)save_size; in png_push_crc_finish()
596 png_calculate_crc(png_ptr, png_ptr->current_buffer_ptr, save_size); in png_push_crc_finish()
599 png_ptr->buffer_size -= save_size; in png_push_crc_finish()
600 png_ptr->current_buffer_size -= save_size; in png_push_crc_finish()
601 png_ptr->current_buffer_ptr += save_size; in png_push_crc_finish()
627 png_size_t save_size; in png_push_fill_buffer() local
630 save_size = length; in png_push_fill_buffer()
633 save_size = png_ptr->save_buffer_size; in png_push_fill_buffer()
635 memcpy(ptr, png_ptr->save_buffer_ptr, save_size); in png_push_fill_buffer()
636 length -= save_size; in png_push_fill_buffer()
637 ptr += save_size; in png_push_fill_buffer()
638 png_ptr->buffer_size -= save_size; in png_push_fill_buffer()
639 png_ptr->save_buffer_size -= save_size; in png_push_fill_buffer()
640 png_ptr->save_buffer_ptr += save_size; in png_push_fill_buffer()
644 png_size_t save_size; in png_push_fill_buffer() local
647 save_size = length; in png_push_fill_buffer()
650 save_size = png_ptr->current_buffer_size; in png_push_fill_buffer()
652 memcpy(ptr, png_ptr->current_buffer_ptr, save_size); in png_push_fill_buffer()
653 png_ptr->buffer_size -= save_size; in png_push_fill_buffer()
654 png_ptr->current_buffer_size -= save_size; in png_push_fill_buffer()
655 png_ptr->current_buffer_ptr += save_size; in png_push_fill_buffer()
763 png_size_t save_size = png_ptr->save_buffer_size; in png_push_read_IDAT() local
772 if (idat_size < save_size) in png_push_read_IDAT()
773 save_size = (png_size_t)idat_size; in png_push_read_IDAT()
776 idat_size = (png_uint_32)save_size; in png_push_read_IDAT()
778 png_calculate_crc(png_ptr, png_ptr->save_buffer_ptr, save_size); in png_push_read_IDAT()
780 png_process_IDAT_data(png_ptr, png_ptr->save_buffer_ptr, save_size); in png_push_read_IDAT()
783 png_ptr->buffer_size -= save_size; in png_push_read_IDAT()
784 png_ptr->save_buffer_size -= save_size; in png_push_read_IDAT()
785 png_ptr->save_buffer_ptr += save_size; in png_push_read_IDAT()
790 png_size_t save_size = png_ptr->current_buffer_size; in png_push_read_IDAT() local
798 if (idat_size < save_size) in png_push_read_IDAT()
799 save_size = (png_size_t)idat_size; in png_push_read_IDAT()
802 idat_size = (png_uint_32)save_size; in png_push_read_IDAT()
804 png_calculate_crc(png_ptr, png_ptr->current_buffer_ptr, save_size); in png_push_read_IDAT()
806 png_process_IDAT_data(png_ptr, png_ptr->current_buffer_ptr, save_size); in png_push_read_IDAT()
809 png_ptr->buffer_size -= save_size; in png_push_read_IDAT()
810 png_ptr->current_buffer_size -= save_size; in png_push_read_IDAT()
811 png_ptr->current_buffer_ptr += save_size; in png_push_read_IDAT()