Lines Matching refs:textp
760 png_textp textp = &(info_ptr->text[info_ptr->num_text]); in png_set_text_2() local
797 textp->compression = PNG_ITXT_COMPRESSION_NONE; in png_set_text_2()
800 textp->compression = PNG_TEXT_COMPRESSION_NONE; in png_set_text_2()
805 textp->compression = text_ptr[i].compression; in png_set_text_2()
808 textp->key = (png_charp)png_malloc_warn(png_ptr, in png_set_text_2()
811 if (textp->key == NULL) in png_set_text_2()
816 (int)textp->key); in png_set_text_2()
818 png_memcpy(textp->key, text_ptr[i].key,(png_size_t)(key_len)); in png_set_text_2()
819 *(textp->key + key_len) = '\0'; in png_set_text_2()
823 textp->lang = textp->key + key_len + 1; in png_set_text_2()
824 png_memcpy(textp->lang, text_ptr[i].lang, lang_len); in png_set_text_2()
825 *(textp->lang + lang_len) = '\0'; in png_set_text_2()
826 textp->lang_key = textp->lang + lang_len + 1; in png_set_text_2()
827 png_memcpy(textp->lang_key, text_ptr[i].lang_key, lang_key_len); in png_set_text_2()
828 *(textp->lang_key + lang_key_len) = '\0'; in png_set_text_2()
829 textp->text = textp->lang_key + lang_key_len + 1; in png_set_text_2()
835 textp->lang=NULL; in png_set_text_2()
836 textp->lang_key=NULL; in png_set_text_2()
838 textp->text = textp->key + key_len + 1; in png_set_text_2()
841 png_memcpy(textp->text, text_ptr[i].text, in png_set_text_2()
843 *(textp->text + text_length) = '\0'; in png_set_text_2()
846 if (textp->compression > 0) in png_set_text_2()
848 textp->text_length = 0; in png_set_text_2()
849 textp->itxt_length = text_length; in png_set_text_2()
854 textp->text_length = text_length; in png_set_text_2()
856 textp->itxt_length = 0; in png_set_text_2()