Lines Matching refs:prefix_length
2717 png_uint_32 prefix_length; in png_handle_iTXt() local
2760 for (prefix_length=0; in png_handle_iTXt()
2761 prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2762 ++prefix_length) in png_handle_iTXt()
2766 if (prefix_length > 79 || prefix_length < 1) in png_handle_iTXt()
2773 else if (prefix_length + 5 > length) in png_handle_iTXt()
2776 else if (buffer[prefix_length+1] == 0 || in png_handle_iTXt()
2777 (buffer[prefix_length+1] == 1 && in png_handle_iTXt()
2778 buffer[prefix_length+2] == PNG_COMPRESSION_TYPE_BASE)) in png_handle_iTXt()
2780 int compressed = buffer[prefix_length+1] != 0; in png_handle_iTXt()
2785 prefix_length += 3; in png_handle_iTXt()
2786 language_offset = prefix_length; in png_handle_iTXt()
2788 for (; prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2789 ++prefix_length) in png_handle_iTXt()
2793 translated_keyword_offset = ++prefix_length; in png_handle_iTXt()
2795 for (; prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2796 ++prefix_length) in png_handle_iTXt()
2804 ++prefix_length; in png_handle_iTXt()
2806 if (compressed == 0 && prefix_length <= length) in png_handle_iTXt()
2807 uncompressed_length = length - prefix_length; in png_handle_iTXt()
2809 else if (compressed != 0 && prefix_length < length) in png_handle_iTXt()
2817 if (png_decompress_chunk(png_ptr, length, prefix_length, in png_handle_iTXt()
2832 buffer[uncompressed_length+prefix_length] = 0; in png_handle_iTXt()
2843 text.text = (png_charp)buffer + prefix_length; in png_handle_iTXt()