Lines Matching refs:text_ptr
2215 png_textp text_ptr;
2287 text_ptr = (png_textp)png_malloc_warn(png_ptr,
2290 if (text_ptr == NULL)
2298 text_ptr->compression = PNG_TEXT_COMPRESSION_NONE;
2299 text_ptr->key = key;
2300 text_ptr->lang = NULL;
2301 text_ptr->lang_key = NULL;
2302 text_ptr->itxt_length = 0;
2303 text_ptr->text = text;
2304 text_ptr->text_length = png_strlen(text);
2306 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, 1);
2310 png_free(png_ptr, text_ptr);
2322 png_textp text_ptr;
2417 text_ptr = (png_textp)png_malloc_warn(png_ptr,
2420 if (text_ptr == NULL)
2428 text_ptr->compression = comp_type;
2429 text_ptr->key = png_ptr->chunkdata;
2430 text_ptr->lang = NULL;
2431 text_ptr->lang_key = NULL;
2432 text_ptr->itxt_length = 0;
2433 text_ptr->text = png_ptr->chunkdata + prefix_len;
2434 text_ptr->text_length = data_len;
2436 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, 1);
2438 png_free(png_ptr, text_ptr);
2452 png_textp text_ptr;
2587 text_ptr = (png_textp)png_malloc_warn(png_ptr,
2590 if (text_ptr == NULL)
2598 text_ptr->compression = (int)comp_flag + 1;
2599 text_ptr->lang_key = png_ptr->chunkdata + (lang_key - key);
2600 text_ptr->lang = png_ptr->chunkdata + (lang - key);
2601 text_ptr->itxt_length = data_len;
2602 text_ptr->text_length = 0;
2603 text_ptr->key = png_ptr->chunkdata;
2604 text_ptr->text = png_ptr->chunkdata + prefix_len;
2606 ret = png_set_text_2(png_ptr, info_ptr, text_ptr, 1);
2608 png_free(png_ptr, text_ptr);