Lines Matching refs:chunkIdx

54 …r in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, int *ncy, t_chunk_info ** chunkIdx)  in _gd2GetHeader()  argument
154 *chunkIdx = cidx; in _gd2GetHeader()
256 t_chunk_info *chunkIdx = NULL; /* So we can gdFree it with impunity. */ in gdImageCreateFromGd2Ctx() local
269 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) { in gdImageCreateFromGd2Ctx()
280 if (chunkIdx[i].size > compMax) { in gdImageCreateFromGd2Ctx()
281 compMax = chunkIdx[i].size; in gdImageCreateFromGd2Ctx()
311 …if (!_gd2ReadChunk(chunkIdx[chunkNum].offset, compBuf, chunkIdx[chunkNum].size, (char *) chunkBuf,… in gdImageCreateFromGd2Ctx()
367 if (chunkIdx) { in gdImageCreateFromGd2Ctx()
368 gdFree(chunkIdx); in gdImageCreateFromGd2Ctx()
383 if (chunkIdx) { in gdImageCreateFromGd2Ctx()
384 gdFree(chunkIdx); in gdImageCreateFromGd2Ctx()
422 t_chunk_info *chunkIdx = NULL; in gdImageCreateFromGd2PartCtx() local
441 if (_gd2GetHeader(in, &fsx, &fsy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx) != 1) { in gdImageCreateFromGd2PartCtx()
469 if (chunkIdx[i].size > compMax) { in gdImageCreateFromGd2PartCtx()
470 compMax = chunkIdx[i].size; in gdImageCreateFromGd2PartCtx()
547 …if (!_gd2ReadChunk (chunkIdx[chunkNum].offset, compBuf, chunkIdx[chunkNum].size, (char *)chunkBuf,… in gdImageCreateFromGd2PartCtx()
600 if (chunkIdx) { in gdImageCreateFromGd2PartCtx()
601 gdFree(chunkIdx); in gdImageCreateFromGd2PartCtx()
615 if (chunkIdx) { in gdImageCreateFromGd2PartCtx()
616 gdFree(chunkIdx); in gdImageCreateFromGd2PartCtx()
653 t_chunk_info *chunkIdx = NULL; /* So we can gdFree it with impunity. */ in _gdImageGd2() local
711 chunkIdx = safe_emalloc(idxSize, sizeof(t_chunk_info), 0); in _gdImageGd2()
712 memset(chunkIdx, 0, idxSize * sizeof(t_chunk_info)); in _gdImageGd2()
770 chunkIdx[chunkNum].offset = gdTell(out); in _gdImageGd2()
771 chunkIdx[chunkNum++].size = compLen; in _gdImageGd2()
772 …_DBG(php_gd_error("Chunk %d size %d offset %d", chunkNum, chunkIdx[chunkNum - 1].size, chunkIdx[ch… in _gdImageGd2()
790 GD2_DBG(php_gd_error("Chunk %d size %d offset %d", x, chunkIdx[x].size, chunkIdx[x].offset)); in _gdImageGd2()
791 gdPutInt(chunkIdx[x].offset, out); in _gdImageGd2()
792 gdPutInt(chunkIdx[x].size, out); in _gdImageGd2()
804 if (chunkIdx) { in _gdImageGd2()
805 gdFree(chunkIdx); in _gdImageGd2()