Lines Matching refs:ncx
55 static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, i… in _gd2GetHeader() argument
128 if (gdGetWord(ncx, in) != 1) { in _gd2GetHeader()
131 GD2_DBG(gd_error("%d Chunks Wide", *ncx)); in _gd2GetHeader()
140 if (*ncx <= 0 || *ncy <= 0 || *ncx > INT_MAX / *ncy) { in _gd2GetHeader()
141 GD2_DBG(printf ("Illegal chunk counts: %d * %d\n", *ncx, *ncy)); in _gd2GetHeader()
144 nc = (*ncx) * (*ncy); in _gd2GetHeader()
183 …mFile (gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, int *ncy, t_chunk_… in _gd2CreateFromFile() argument
187 if (_gd2GetHeader (in, sx, sy, cs, vers, fmt, ncx, ncy, cidx) != 1) { in _gd2CreateFromFile()
271 int ncx, ncy, nc, cs, cx, cy; in gdImageCreateFromGd2Ctx() local
287 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) { in gdImageCreateFromGd2Ctx()
292 nc = ncx * ncy; in gdImageCreateFromGd2Ctx()
317 for (cx = 0; (cx < ncx); cx++) { in gdImageCreateFromGd2Ctx()
437 int nc, ncx, ncy, cs, cx, cy; in gdImageCreateFromGd2PartCtx() local
463 if (_gd2GetHeader(in, &fsx, &fsy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx) != 1) { in gdImageCreateFromGd2PartCtx()
485 nc = ncx * ncy; in gdImageCreateFromGd2PartCtx()
522 if (ecx >= ncx) { in gdImageCreateFromGd2PartCtx()
523 ecx = ncx - 1; in gdImageCreateFromGd2PartCtx()
566 chunkNum = cx + cy * ncx; in gdImageCreateFromGd2PartCtx()
666 int ncx, ncy, cx, cy; in _gdImageGd2() local
701 ncx = (im->sx + cs - 1) / cs; in _gdImageGd2()
705 _gd2PutHeader (im, out, cs, fmt, ncx, ncy); in _gdImageGd2()
729 idxSize = ncx * ncy * sizeof(t_chunk_info); in _gdImageGd2()
740 GD2_DBG(gd_error("Chunks: %dx%d", ncx, ncy)); in _gdImageGd2()
743 for (cx = 0; (cx < ncx); cx++) { in _gdImageGd2()