Lines Matching refs:IDAT_pos
786 png_uint_32 IDAT_pos; /* Used when re-chunking IDAT chunks */ member
1490 png_uint_32 IDAT_pos = ps->IDAT_pos; in store_read_chunk() local
1498 if (IDAT_pos == IDAT_len) in store_read_chunk()
1543 ps->IDAT_pos = IDAT_pos; in store_read_chunk()
1562 IDAT_pos = 0U; in store_read_chunk()
1566 if (IDAT_pos < 8U) /* Return the header */ do in store_read_chunk()
1571 if (IDAT_pos < 4U) in store_read_chunk()
1577 shift = 3U & IDAT_pos; in store_read_chunk()
1578 ++IDAT_pos; in store_read_chunk()
1585 while (--st > 0 && IDAT_pos < 8); in store_read_chunk()
1587 else if (IDAT_pos < IDAT_len - 4U) /* I.e not the CRC */ in store_read_chunk()
1593 if (avail > (IDAT_len-4U) - IDAT_pos) in store_read_chunk()
1594 avail = (uInt)/*SAFE*/((IDAT_len-4U) - IDAT_pos); in store_read_chunk()
1608 IDAT_pos += (png_uint_32)/*SAFE*/avail; in store_read_chunk()
1623 unsigned int shift = (IDAT_len - IDAT_pos); /* 4..1 */ in store_read_chunk()
1624 ++IDAT_pos; in store_read_chunk()
1631 while (--st > 0 && IDAT_pos < IDAT_len); in store_read_chunk()
1633 ps->IDAT_pos = IDAT_pos; in store_read_chunk()
2128 ps->IDAT_pos = 0; in store_read_set()