Lines Matching refs:chunkpos

772    png_uint_32        chunkpos; /* Position in chunk */  member
874 ps->chunkpos = 8; in store_init()
901 ps->chunkpos = 8; in store_freenew()
973 if (ps->chunkpos != 0U || ps->chunktype != 0U || ps->chunklen != 0U || in store_storefile()
991 ps->chunkpos = 8; in store_storefile()
1287 png_uint_32 chunkpos = ps->chunkpos; in store_write() local
1310 if (chunkpos < 4) in store_write()
1316 ++chunkpos; in store_write()
1319 else if (chunkpos < 8) in store_write()
1326 if (++chunkpos == 8) in store_write()
1355 if (cb > chunklen - chunkpos/* bytes left in chunk*/) in store_write()
1356 cb = (png_size_t)/*SAFE*/(chunklen - chunkpos); in store_write()
1359 chunkpos += (png_uint_32)/*SAFE*/cb; in store_write()
1364 if (chunkpos >= chunklen) /* must be equal */ in store_write()
1365 chunkpos = chunktype = chunklen = 0; in store_write()
1370 ps->chunkpos = chunkpos; in store_write()
1473 png_uint_32 chunkpos = ps->chunkpos; in store_read_chunk() local
1478 if (chunkpos >= chunklen) /* end of last chunk */ in store_read_chunk()
1486 chunkpos = 0U; /* Position read so far */ in store_read_chunk()
1496 if (chunkpos < 8U) in store_read_chunk()
1497 chunkpos = 8U; in store_read_chunk()
1524 if (chunkpos != chunklen-4U) in store_read_chunk()
1543 chunkpos += 4U; in store_read_chunk()
1590 if (chunkpos < chunklen-4U) in store_read_chunk()
1600 if (avail > (chunklen-4U) - chunkpos) in store_read_chunk()
1601 avail = (uInt)/*SAFE*/((chunklen-4U) - chunkpos); in store_read_chunk()
1607 chunkpos += (png_uint_32)/*SAFE*/avail; in store_read_chunk()
1617 chunkpos += 4U; in store_read_chunk()
1650 if (chunkpos < 8U) /* Return the header */ do in store_read_chunk()
1655 if (chunkpos < 4U) in store_read_chunk()
1661 shift = 3U & chunkpos; in store_read_chunk()
1662 ++chunkpos; in store_read_chunk()
1669 while (--st > 0 && chunkpos < 8); in store_read_chunk()
1675 if (avail > chunklen - chunkpos) in store_read_chunk()
1676 avail = (png_size_t)/*SAFE*/(chunklen - chunkpos); in store_read_chunk()
1681 chunkpos += (png_uint_32)/*SAFE*/avail; in store_read_chunk()
1686 if (chunkpos >= chunklen && max-st >= min && in store_read_chunk()
1696 ps->chunkpos = chunkpos; in store_read_chunk()
2108 ps->chunkpos = 8; in store_read_reset()