Lines Matching refs:vers
55 static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, i… in _gd2GetHeader() argument
84 if (gdGetWord(vers, in) != 1) { in _gd2GetHeader()
87 GD2_DBG(gd_error("Version: %d", *vers)); in _gd2GetHeader()
89 if ((*vers != 1) && (*vers != 2)) { in _gd2GetHeader()
90 GD2_DBG(gd_error("Bad version: %d", *vers)); in _gd2GetHeader()
183 static gdImagePtr _gd2CreateFromFile (gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt… in _gd2CreateFromFile() argument
187 if (_gd2GetHeader (in, sx, sy, cs, vers, fmt, ncx, ncy, cidx) != 1) { in _gd2CreateFromFile()
202 if (!_gdGetColors(in, im, (*vers) == 2)) { in _gd2CreateFromFile()
273 int vers, fmt; in gdImageCreateFromGd2Ctx() local
287 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) { in gdImageCreateFromGd2Ctx()
443 int vers, fmt; in gdImageCreateFromGd2PartCtx() local
463 if (_gd2GetHeader(in, &fsx, &fsy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx) != 1) { in gdImageCreateFromGd2PartCtx()
479 if (!_gdGetColors(in, im, vers == 2)) { in gdImageCreateFromGd2PartCtx()