Lines Matching refs:num_text
763 png_const_textp text_ptr, int num_text) in png_set_text() argument
766 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
774 png_const_textp text_ptr, int num_text) in png_set_text_2() argument
781 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL) in png_set_text_2()
789 if (num_text > info_ptr->max_text - info_ptr->num_text) in png_set_text_2()
791 int old_num_text = info_ptr->num_text; in png_set_text_2()
797 if (num_text <= INT_MAX - max_text) in png_set_text_2()
799 max_text += num_text; in png_set_text_2()
834 for (i = 0; i < num_text; i++) in png_set_text_2()
838 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
958 info_ptr->num_text++; in png_set_text_2()
959 png_debug1(3, "transferred text chunk %d", info_ptr->num_text); in png_set_text_2()