Lines Matching refs:compBuf
217 static int _gd2ReadChunk (int offset, char *compBuf, int compSize, char *chunkBuf, uLongf * chunkLe… in _gd2ReadChunk() argument
230 if (gdGetBuf(compBuf, compSize, in) != compSize) { in _gd2ReadChunk()
234 zerr = uncompress((unsigned char *) chunkBuf, chunkLen, (unsigned char *) compBuf, compSize); in _gd2ReadChunk()
281 char *compBuf = NULL; /* So we can gdFree it with impunity. */ in gdImageCreateFromGd2Ctx() local
309 compBuf = gdCalloc(compMax, 1); in gdImageCreateFromGd2Ctx()
328 …if (!_gd2ReadChunk(chunkIdx[chunkNum].offset, compBuf, chunkIdx[chunkNum].size, (char *) chunkBuf,… in gdImageCreateFromGd2Ctx()
385 if (compBuf) { in gdImageCreateFromGd2Ctx()
386 gdFree(compBuf); in gdImageCreateFromGd2Ctx()
401 if (compBuf) { in gdImageCreateFromGd2Ctx()
402 gdFree(compBuf); in gdImageCreateFromGd2Ctx()
450 char *compBuf = NULL; in gdImageCreateFromGd2PartCtx() local
506 compBuf = gdCalloc(compMax, 1); in gdImageCreateFromGd2PartCtx()
568 …if (!_gd2ReadChunk (chunkIdx[chunkNum].offset, compBuf, chunkIdx[chunkNum].size, (char *)chunkBuf,… in gdImageCreateFromGd2PartCtx()
618 if (compBuf) { in gdImageCreateFromGd2PartCtx()
619 gdFree(compBuf); in gdImageCreateFromGd2PartCtx()
633 if (compBuf) { in gdImageCreateFromGd2PartCtx()
634 gdFree(compBuf); in gdImageCreateFromGd2PartCtx()