Lines Matching refs:pos
301 int pos = 0; in ReadZip() local
304 while (pos < st.st_size) { in ReadZip()
305 if (nextentry < entrycount && pos == temp_entries[nextentry].data_offset) { in ReadZip()
307 curr->start = pos; in ReadZip()
309 curr->deflate_data = img + pos; in ReadZip()
337 pos += curr->deflate_len; in ReadZip()
348 curr->start = pos; in ReadZip()
350 curr->len = temp_entries[nextentry].data_offset - pos; in ReadZip()
352 curr->len = st.st_size - pos; in ReadZip()
354 curr->data = img + pos; in ReadZip()
357 pos += curr->len; in ReadZip()
398 size_t pos = 0; in ReadImage() local
403 while (pos < st.st_size) { in ReadImage()
404 unsigned char* p = img+pos; in ReadImage()
406 if (st.st_size - pos >= 4 && in ReadImage()
411 size_t chunk_offset = pos; in ReadImage()
418 curr->start = pos; in ReadImage()
424 pos += curr->len; in ReadImage()
439 curr->start = pos; in ReadImage()
446 strm.avail_in = st.st_size - pos; in ReadImage()
472 curr->deflate_len = st.st_size - strm.avail_in - pos; in ReadImage()
474 pos += curr->deflate_len; in ReadImage()
481 curr->start = pos; in ReadImage()
483 curr->data = img+pos; in ReadImage()
486 pos += curr->len; in ReadImage()
507 curr->start = pos; in ReadImage()
515 for (curr->len = 0; curr->len < (st.st_size - pos); ++curr->len) { in ReadImage()
523 pos += curr->len; in ReadImage()