Lines Matching refs:chunkBuf
218 static int _gd2ReadChunk (int offset, char *compBuf, int compSize, char *chunkBuf, uLongf * chunkLe… in _gd2ReadChunk() argument
235 zerr = uncompress((unsigned char *) chunkBuf, chunkLen, (unsigned char *) compBuf, compSize); in _gd2ReadChunk()
275 unsigned char *chunkBuf = NULL; /* So we can gdFree it with impunity. */ in gdImageCreateFromGd2Ctx() local
309 chunkBuf = gdCalloc(chunkMax, 1); in gdImageCreateFromGd2Ctx()
329 …k(chunkIdx[chunkNum].offset, compBuf, chunkIdx[chunkNum].size, (char *) chunkBuf, &chunkLen, in)) { in gdImageCreateFromGd2Ctx()
366 int a = chunkBuf[chunkPos++] << 24; in gdImageCreateFromGd2Ctx()
367 int r = chunkBuf[chunkPos++] << 16; in gdImageCreateFromGd2Ctx()
368 int g = chunkBuf[chunkPos++] << 8; in gdImageCreateFromGd2Ctx()
369 int b = chunkBuf[chunkPos++]; in gdImageCreateFromGd2Ctx()
372 im->pixels[y][x] = chunkBuf[chunkPos++]; in gdImageCreateFromGd2Ctx()
383 if (chunkBuf) { in gdImageCreateFromGd2Ctx()
384 gdFree(chunkBuf); in gdImageCreateFromGd2Ctx()
399 if (chunkBuf) { in gdImageCreateFromGd2Ctx()
400 gdFree(chunkBuf); in gdImageCreateFromGd2Ctx()
445 unsigned char *chunkBuf = NULL; in gdImageCreateFromGd2PartCtx() local
506 chunkBuf = gdCalloc(chunkMax, 1); in gdImageCreateFromGd2PartCtx()
569 …k (chunkIdx[chunkNum].offset, compBuf, chunkIdx[chunkNum].size, (char *)chunkBuf, &chunkLen, in)) { in gdImageCreateFromGd2PartCtx()
594 ch = chunkBuf[chunkPos++]; in gdImageCreateFromGd2PartCtx()
595 ch = (ch << 8) + chunkBuf[chunkPos++]; in gdImageCreateFromGd2PartCtx()
596 ch = (ch << 8) + chunkBuf[chunkPos++]; in gdImageCreateFromGd2PartCtx()
597 ch = (ch << 8) + chunkBuf[chunkPos++]; in gdImageCreateFromGd2PartCtx()
599 ch = chunkBuf[chunkPos++]; in gdImageCreateFromGd2PartCtx()
616 if (chunkBuf) { in gdImageCreateFromGd2PartCtx()
617 gdFree(chunkBuf); in gdImageCreateFromGd2PartCtx()
631 if (chunkBuf) { in gdImageCreateFromGd2PartCtx()
632 gdFree(chunkBuf); in gdImageCreateFromGd2PartCtx()