Home | History | Annotate | Download | only in libpng

Lines Matching refs:text_ptr

2018    png_textp text_ptr;
2087 text_ptr = (png_textp)png_malloc_warn(png_ptr,
2089 if (text_ptr == NULL)
2096 text_ptr->compression = PNG_TEXT_COMPRESSION_NONE;
2097 text_ptr->key = key;
2099 text_ptr->lang = NULL;
2100 text_ptr->lang_key = NULL;
2101 text_ptr->itxt_length = 0;
2103 text_ptr->text = text;
2104 text_ptr->text_length = png_strlen(text);
2106 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, 1);
2110 png_free(png_ptr, text_ptr);
2121 png_textp text_ptr;
2207 text_ptr = (png_textp)png_malloc_warn(png_ptr,
2209 if (text_ptr == NULL)
2216 text_ptr->compression = comp_type;
2217 text_ptr->key = png_ptr->chunkdata;
2219 text_ptr->lang = NULL;
2220 text_ptr->lang_key = NULL;
2221 text_ptr->itxt_length = 0;
2223 text_ptr->text = png_ptr->chunkdata + prefix_len;
2224 text_ptr->text_length = data_len;
2226 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, 1);
2228 png_free(png_ptr, text_ptr);
2241 png_textp text_ptr;
2355 text_ptr = (png_textp)png_malloc_warn(png_ptr,
2357 if (text_ptr == NULL)
2364 text_ptr->compression = (int)comp_flag + 1;
2365 text_ptr->lang_key = png_ptr->chunkdata + (lang_key - key);
2366 text_ptr->lang = png_ptr->chunkdata + (lang - key);
2367 text_ptr->itxt_length = data_len;
2368 text_ptr->text_length = 0;
2369 text_ptr->key = png_ptr->chunkdata;
2370 text_ptr->text = png_ptr->chunkdata + prefix_len;
2372 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, 1);
2374 png_free(png_ptr, text_ptr);