Lines Matching defs:num_text
702 png_const_textp text_ptr, int num_text)
705 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, num_text);
713 png_const_textp text_ptr, int num_text)
720 if (png_ptr == NULL || info_ptr == NULL || num_text <= 0 || text_ptr == NULL)
725 * because max_text >= num_text (anyway, subtract of two positive integers
728 if (num_text > info_ptr->max_text - info_ptr->num_text)
730 int old_num_text = info_ptr->num_text;
736 if (num_text <= INT_MAX - max_text)
738 max_text += num_text;
768 /* num_text is adjusted below as the entries are copied in */
773 for (i = 0; i < num_text; i++)
777 png_textp textp = &(info_ptr->text[info_ptr->num_text]);
897 info_ptr->num_text++;
898 png_debug1(3, "transferred text chunk %d", info_ptr->num_text);