Lines Matching refs:vers
54 static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, i… in _gd2GetHeader() argument
83 if (gdGetWord(vers, in) != 1) { in _gd2GetHeader()
86 GD2_DBG(php_gd_error("Version: %d", *vers)); in _gd2GetHeader()
88 if ((*vers != 1) && (*vers != 2)) { in _gd2GetHeader()
89 GD2_DBG(php_gd_error("Bad version: %d", *vers)); in _gd2GetHeader()
182 static gdImagePtr _gd2CreateFromFile (gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt… in _gd2CreateFromFile() argument
186 if (_gd2GetHeader (in, sx, sy, cs, vers, fmt, ncx, ncy, cidx) != 1) { in _gd2CreateFromFile()
201 if (!_gdGetColors(in, im, (*vers) == 2)) { in _gd2CreateFromFile()
272 int vers, fmt; in gdImageCreateFromGd2Ctx() local
286 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) { in gdImageCreateFromGd2Ctx()
442 int vers, fmt; in gdImageCreateFromGd2PartCtx() local
462 if (_gd2GetHeader(in, &fsx, &fsy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx) != 1) { in gdImageCreateFromGd2PartCtx()
478 if (!_gdGetColors(in, im, vers == 2)) { in gdImageCreateFromGd2PartCtx()