Lines Matching refs:prefix_length
2554 png_uint_32 prefix_length; in png_handle_iTXt() local
2597 for (prefix_length=0; in png_handle_iTXt()
2598 prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2599 ++prefix_length) in png_handle_iTXt()
2603 if (prefix_length > 79 || prefix_length < 1) in png_handle_iTXt()
2610 else if (prefix_length + 5 > length) in png_handle_iTXt()
2613 else if (buffer[prefix_length+1] == 0 || in png_handle_iTXt()
2614 (buffer[prefix_length+1] == 1 && in png_handle_iTXt()
2615 buffer[prefix_length+2] == PNG_COMPRESSION_TYPE_BASE)) in png_handle_iTXt()
2617 int compressed = buffer[prefix_length+1] != 0; in png_handle_iTXt()
2622 prefix_length += 3; in png_handle_iTXt()
2623 language_offset = prefix_length; in png_handle_iTXt()
2625 for (; prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2626 ++prefix_length) in png_handle_iTXt()
2630 translated_keyword_offset = ++prefix_length; in png_handle_iTXt()
2632 for (; prefix_length < length && buffer[prefix_length] != 0; in png_handle_iTXt()
2633 ++prefix_length) in png_handle_iTXt()
2641 ++prefix_length; in png_handle_iTXt()
2643 if (!compressed && prefix_length <= length) in png_handle_iTXt()
2644 uncompressed_length = length - prefix_length; in png_handle_iTXt()
2646 else if (compressed && prefix_length < length) in png_handle_iTXt()
2654 if (png_decompress_chunk(png_ptr, length, prefix_length, in png_handle_iTXt()
2669 buffer[uncompressed_length+prefix_length] = 0; in png_handle_iTXt()
2680 text.text = (png_charp)buffer + prefix_length; in png_handle_iTXt()