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()
165 static gdImagePtr _gd2CreateFromFile (gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt… in _gd2CreateFromFile() argument
169 if (_gd2GetHeader (in, sx, sy, cs, vers, fmt, ncx, ncy, cidx) != 1) { in _gd2CreateFromFile()
174 if (gd2_truecolor(*fmt)) { in _gd2CreateFromFile()
255 int vers, fmt; in gdImageCreateFromGd2Ctx() local
269 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) { in gdImageCreateFromGd2Ctx()
276 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
308 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
326 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
421 int vers, fmt; in gdImageCreateFromGd2PartCtx() local
441 if (_gd2GetHeader(in, &fsx, &fsy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx) != 1) { in gdImageCreateFromGd2PartCtx()
448 if (gd2_truecolor(fmt)) { in gdImageCreateFromGd2PartCtx()
465 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
529 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
559 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
622 static void _gd2PutHeader (gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy) in _gd2PutHeader() argument
637 gdPutWord(fmt, out); in _gd2PutHeader()
642 static void _gdImageGd2 (gdImagePtr im, gdIOCtx * out, int cs, int fmt) in _gdImageGd2() argument
659 if ((fmt != GD2_FMT_RAW) && (fmt != GD2_FMT_COMPRESSED)) { in _gdImageGd2()
660 fmt = im->trueColor ? GD2_FMT_TRUECOLOR_COMPRESSED : GD2_FMT_COMPRESSED; in _gdImageGd2()
663 fmt += 2; in _gdImageGd2()
683 _gd2PutHeader (im, out, cs, fmt, ncx, ncy); in _gdImageGd2()
685 if (gd2_compressed(fmt)) { in _gdImageGd2()
738 if (gd2_compressed(fmt)) { in _gdImageGd2()
765 if (gd2_compressed(fmt)) { in _gdImageGd2()
783 if (gd2_compressed(fmt)) { in _gdImageGd2()
810 void gdImageGd2 (gdImagePtr im, FILE * outFile, int cs, int fmt) in gdImageGd2() argument
814 _gdImageGd2(im, out, cs, fmt); in gdImageGd2()
819 void *gdImageGd2Ptr (gdImagePtr im, int cs, int fmt, int *size) in gdImageGd2Ptr() argument
824 _gdImageGd2(im, out, cs, fmt); in gdImageGd2Ptr()