Lines Matching refs:fmt

34 #define gd2_compressed(fmt) (((fmt) == GD2_FMT_COMPRESSED) || ((fmt) == GD2_FMT_TRUECOLOR_COMPRESSE…  argument
35 #define gd2_truecolor(fmt) (((fmt) == GD2_FMT_TRUECOLOR_RAW) || ((fmt) == GD2_FMT_TRUECOLOR_COMPRES… argument
54 static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, i… in _gd2GetHeader() argument
116 if (gdGetWord(fmt, in) != 1) { in _gd2GetHeader()
119 GD2_DBG(php_gd_error("Format: %d", *fmt)); in _gd2GetHeader()
121 …if ((*fmt != GD2_FMT_RAW) && (*fmt != GD2_FMT_COMPRESSED) && (*fmt != GD2_FMT_TRUECOLOR_RAW) && (* in _gd2GetHeader()
122 GD2_DBG(php_gd_error("Bad data format: %d", *fmt)); in _gd2GetHeader()
138 if (gd2_compressed(*fmt)) { 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()
191 if (gd2_truecolor(*fmt)) { in _gd2CreateFromFile()
272 int vers, fmt; in gdImageCreateFromGd2Ctx() local
286 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) { in gdImageCreateFromGd2Ctx()
293 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
325 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
343 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
442 int vers, fmt; in gdImageCreateFromGd2PartCtx() local
462 if (_gd2GetHeader(in, &fsx, &fsy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx) != 1) { in gdImageCreateFromGd2PartCtx()
469 if (gd2_truecolor(fmt)) { in gdImageCreateFromGd2PartCtx()
486 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
550 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
580 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
643 static void _gd2PutHeader (gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy) in _gd2PutHeader() argument
658 gdPutWord(fmt, out); in _gd2PutHeader()
663 static void _gdImageGd2 (gdImagePtr im, gdIOCtx * out, int cs, int fmt) in _gdImageGd2() argument
680 if ((fmt != GD2_FMT_RAW) && (fmt != GD2_FMT_COMPRESSED)) { in _gdImageGd2()
681 fmt = GD2_FMT_COMPRESSED; in _gdImageGd2()
684 fmt += 2; in _gdImageGd2()
704 _gd2PutHeader (im, out, cs, fmt, ncx, ncy); in _gdImageGd2()
706 if (gd2_compressed(fmt)) { in _gdImageGd2()
759 if (gd2_compressed(fmt)) { in _gdImageGd2()
786 if (gd2_compressed(fmt)) { in _gdImageGd2()
804 if (gd2_compressed(fmt)) { in _gdImageGd2()
831 void gdImageGd2 (gdImagePtr im, FILE * outFile, int cs, int fmt) in gdImageGd2() argument
835 _gdImageGd2(im, out, cs, fmt); in gdImageGd2()
840 void *gdImageGd2Ptr (gdImagePtr im, int cs, int fmt, int *size) in gdImageGd2Ptr() argument
845 _gdImageGd2(im, out, cs, fmt); in gdImageGd2Ptr()