Lines Matching refs:idat
893 struct IDAT * idat; member
901 void (*alloc)(struct file*,int idat);
995 if (file->idat != NULL) in file_end()
996 IDAT_end(&file->idat); in file_end()
1052 file->idat = NULL; in file_init()
1672 assert(chunk != NULL && file->idat == NULL); in process_zTXt_iCCP()
1701 assert(chunk != NULL && file->idat == NULL); in process_iTXt()
1773 struct IDAT *idat = *idat_var; in IDAT_end() local
1774 struct file *file = idat->file; in IDAT_end()
1778 CLEAR(*idat); in IDAT_end()
1791 IDAT_init(struct IDAT * const idat, struct file * const file) in IDAT_init() argument
1800 assert(file->idat == NULL); in IDAT_init()
1802 CLEAR(*idat); in IDAT_init()
1804 idat->file = file; in IDAT_init()
1805 idat->global = file->global; in IDAT_init()
1810 idat->global->idat_cache.count = 0; in IDAT_init()
1811 idat->idat_list_head = idat->idat_list_tail = &idat->global->idat_cache; in IDAT_init()
1822 file->idat = idat; in IDAT_init()
1826 rechunk_length(struct IDAT *idat, int start) in rechunk_length() argument
1831 png_uint_32 len = idat->global->idat_max; in rechunk_length()
1839 return idat->idat_length; /* use the cache */ in rechunk_length()
1844 cur = idat->idat_cur; in rechunk_length()
1845 count = idat->idat_count; in rechunk_length()
1847 assert(idat->idat_index == idat->idat_length && in rechunk_length()
1848 idat->idat_length == cur->lengths[count]); in rechunk_length()
1855 assert(cur != idat->idat_list_tail); in rechunk_length()
1866 png_uint_32 have = idat->idat_length - idat->idat_index; in rechunk_length()
1870 struct IDAT_list *cur = idat->idat_cur; in rechunk_length()
1871 unsigned int j = idat->idat_count+1; /* the next IDAT in the list */ in rechunk_length()
1892 if (cur == idat->idat_list_tail) in rechunk_length()
1926 assert(file->idat != NULL && file->chunk != NULL); in process_IDAT()
1937 list = file->idat->idat_list_tail; in process_IDAT()
1948 file->idat->idat_list_tail = list; in process_IDAT()
1969 struct IDAT *idat; in process_IDAT() local
1990 idat = file->idat; in process_IDAT()
1991 idat->idat_cur = idat->idat_list_head; in process_IDAT()
1992 idat->idat_length = idat->idat_cur->lengths[0]; in process_IDAT()
1993 idat->idat_count = 0; /* Count of chunks read in current list */ in process_IDAT()
1994 idat->idat_index = 0; /* Index into chunk data */ in process_IDAT()
1997 file->chunk->chunk_length = rechunk_length(idat, 1/*start*/); in process_IDAT()
2013 struct IDAT * idat; /* NOTE: May be NULL */ member
2195 zlib_init(struct zlib *zlib, struct IDAT *idat, struct chunk *chunk, in zlib_init() argument
2201 zlib->idat = idat; in zlib_init()
2501 if (zlib->idat != NULL) in zlib_run()
2503 struct IDAT_list *list = zlib->idat->idat_list_head; in zlib_run()
2504 struct IDAT_list *last = zlib->idat->idat_list_tail; in zlib_run()
2571 zlib->idat->idat_list_tail = list; in zlib_run()
2628 if (zlib_init(&zlib, file->idat, file->chunk, 0/*window bits*/, offset)) in zlib_check()
2849 else if (file->idat == NULL) in process_chunk()
3282 assert(file->idat == NULL); in read_callback()
3362 struct IDAT *idat = file->idat; in read_callback() local
3364 assert(idat != NULL); in read_callback()
3372 while (idat->idat_index >= idat->idat_length) in read_callback()
3375 struct IDAT_list *cur = idat->idat_cur; in read_callback()
3377 assert(idat->idat_index == idat->idat_length); in read_callback()
3381 if (++(idat->idat_count) >= cur->count) in read_callback()
3383 assert(idat->idat_count == cur->count); in read_callback()
3395 idat->idat_count = 0; in read_callback()
3396 idat->idat_cur = cur; in read_callback()
3399 idat->idat_index = 0; in read_callback()
3403 idat->idat_length = cur->lengths[idat->idat_count]; in read_callback()
3413 ++(idat->idat_index); in read_callback()
3468 (file->idat->idat_index < file->idat->idat_length || in read_callback()
3469 1+file->idat->idat_count < file->idat->idat_cur->count || in read_callback()
3470 file->idat->idat_cur != file->idat->idat_list_tail)) in read_callback()
3476 rechunk_length(file->idat, 0/*end*/); in read_callback()
3497 if (file->idat == NULL) in read_callback()
3501 IDAT_end(&file->idat); in read_callback()
3527 struct IDAT idat; member
3554 assert(file->idat == NULL); in allocate()
3555 IDAT_init(&control->idat, file); in allocate()