Lines Matching refs:ncx
54 static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, i… in _gd2GetHeader() argument
127 if (gdGetWord(ncx, in) != 1) { in _gd2GetHeader()
130 GD2_DBG(php_gd_error("%d Chunks Wide", *ncx)); in _gd2GetHeader()
139 if (*ncx <= 0 || *ncy <= 0 || *ncx > INT_MAX / *ncy) { in _gd2GetHeader()
140 GD2_DBG(printf ("Illegal chunk counts: %d * %d\n", *ncx, *ncy)); in _gd2GetHeader()
143 nc = (*ncx) * (*ncy); in _gd2GetHeader()
182 …mFile (gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, int *ncy, t_chunk_… in _gd2CreateFromFile() argument
186 if (_gd2GetHeader (in, sx, sy, cs, vers, fmt, ncx, ncy, cidx) != 1) { in _gd2CreateFromFile()
270 int ncx, ncy, nc, cs, cx, cy; in gdImageCreateFromGd2Ctx() local
286 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) { in gdImageCreateFromGd2Ctx()
291 nc = ncx * ncy; in gdImageCreateFromGd2Ctx()
316 for (cx = 0; (cx < ncx); cx++) { in gdImageCreateFromGd2Ctx()
436 int nc, ncx, ncy, cs, cx, cy; in gdImageCreateFromGd2PartCtx() local
462 if (_gd2GetHeader(in, &fsx, &fsy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx) != 1) { in gdImageCreateFromGd2PartCtx()
484 nc = ncx * ncy; in gdImageCreateFromGd2PartCtx()
521 if (ecx >= ncx) { in gdImageCreateFromGd2PartCtx()
522 ecx = ncx - 1; in gdImageCreateFromGd2PartCtx()
565 chunkNum = cx + cy * ncx; in gdImageCreateFromGd2PartCtx()
665 int ncx, ncy, cx, cy; in _gdImageGd2() local
700 ncx = (im->sx + cs - 1) / cs; in _gdImageGd2()
704 _gd2PutHeader (im, out, cs, fmt, ncx, ncy); in _gdImageGd2()
728 idxSize = ncx * ncy * sizeof(t_chunk_info); in _gdImageGd2()
739 GD2_DBG(php_gd_error("Chunks: %dx%d", ncx, ncy)); in _gdImageGd2()
742 for (cx = 0; (cx < ncx); cx++) { in _gdImageGd2()