Lines Matching refs:num_text
702 png_const_textp text_ptr, int num_text) in png_set_text() argument
705 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text); in png_set_text()
713 png_const_textp text_ptr, int num_text) in png_set_text_2() argument
720 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL) in png_set_text_2()
728 if (num_text > info_ptr->max_text - info_ptr->num_text) in png_set_text_2()
730 int old_num_text = info_ptr->num_text; in png_set_text_2()
736 if (num_text <= INT_MAX - max_text) in png_set_text_2()
738 max_text += num_text; in png_set_text_2()
773 for (i = 0; i < num_text; i++) in png_set_text_2()
777 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2()
897 info_ptr->num_text++; in png_set_text_2()
898 png_debug1(3, "transferred text chunk %d", info_ptr->num_text); in png_set_text_2()