Lines Matching refs:keyword_length
1397 uInt read_length, keyword_length; in png_handle_iCCP() local
1410 keyword_length = 0; in png_handle_iCCP()
1411 while (keyword_length < 80 && keyword_length < read_length && in png_handle_iCCP()
1412 keyword[keyword_length] != 0) in png_handle_iCCP()
1413 ++keyword_length; in png_handle_iCCP()
1416 if (keyword_length >= 1 && keyword_length <= 79) in png_handle_iCCP()
1421 if (keyword_length+1 < read_length && in png_handle_iCCP()
1422 keyword[keyword_length+1] == PNG_COMPRESSION_TYPE_BASE) in png_handle_iCCP()
1424 read_length -= keyword_length+2; in png_handle_iCCP()
1432 png_ptr->zstream.next_in = (Bytef*)keyword + (keyword_length+2); in png_handle_iCCP()
1530 keyword_length+1)); in png_handle_iCCP()
1534 keyword_length+1); in png_handle_iCCP()
2506 png_uint_32 keyword_length; in png_handle_zTXt() local
2549 for (keyword_length = 0; in png_handle_zTXt()
2550 keyword_length < length && buffer[keyword_length] != 0; in png_handle_zTXt()
2551 ++keyword_length) in png_handle_zTXt()
2554 if (keyword_length > 79 || keyword_length < 1) in png_handle_zTXt()
2561 else if (keyword_length + 3 > length) in png_handle_zTXt()
2564 else if (buffer[keyword_length+1] != PNG_COMPRESSION_TYPE_BASE) in png_handle_zTXt()
2575 if (png_decompress_chunk(png_ptr, length, keyword_length+2, in png_handle_zTXt()
2585 buffer[uncompressed_length+(keyword_length+2)] = 0; in png_handle_zTXt()
2589 text.text = (png_charp)(buffer + keyword_length+2); in png_handle_zTXt()