Lines Matching refs:fmt
35 #define gd2_compressed(fmt) (((fmt) == GD2_FMT_COMPRESSED) || ((fmt) == GD2_FMT_TRUECOLOR_COMPRESSE… argument
36 #define gd2_truecolor(fmt) (((fmt) == GD2_FMT_TRUECOLOR_RAW) || ((fmt) == GD2_FMT_TRUECOLOR_COMPRES… argument
55 static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, i… in _gd2GetHeader() argument
117 if (gdGetWord(fmt, in) != 1) { in _gd2GetHeader()
120 GD2_DBG(gd_error("Format: %d", *fmt)); in _gd2GetHeader()
122 …if ((*fmt != GD2_FMT_RAW) && (*fmt != GD2_FMT_COMPRESSED) && (*fmt != GD2_FMT_TRUECOLOR_RAW) && (*… in _gd2GetHeader()
123 GD2_DBG(gd_error("Bad data format: %d", *fmt)); in _gd2GetHeader()
139 if (gd2_compressed(*fmt)) { 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()
192 if (gd2_truecolor(*fmt)) { in _gd2CreateFromFile()
273 int vers, fmt; in gdImageCreateFromGd2Ctx() local
287 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) { in gdImageCreateFromGd2Ctx()
294 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
326 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
344 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2Ctx()
443 int vers, fmt; in gdImageCreateFromGd2PartCtx() local
463 if (_gd2GetHeader(in, &fsx, &fsy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx) != 1) { in gdImageCreateFromGd2PartCtx()
470 if (gd2_truecolor(fmt)) { in gdImageCreateFromGd2PartCtx()
487 if (gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
551 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
581 if (!gd2_compressed(fmt)) { in gdImageCreateFromGd2PartCtx()
644 static void _gd2PutHeader (gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy) in _gd2PutHeader() argument
659 gdPutWord(fmt, out); in _gd2PutHeader()
664 static void _gdImageGd2 (gdImagePtr im, gdIOCtx * out, int cs, int fmt) in _gdImageGd2() argument
681 if ((fmt != GD2_FMT_RAW) && (fmt != GD2_FMT_COMPRESSED)) { in _gdImageGd2()
682 fmt = GD2_FMT_COMPRESSED; in _gdImageGd2()
685 fmt += 2; in _gdImageGd2()
705 _gd2PutHeader (im, out, cs, fmt, ncx, ncy); in _gdImageGd2()
707 if (gd2_compressed(fmt)) { in _gdImageGd2()
760 if (gd2_compressed(fmt)) { in _gdImageGd2()
787 if (gd2_compressed(fmt)) { in _gdImageGd2()
805 if (gd2_compressed(fmt)) { in _gdImageGd2()
832 void gdImageGd2 (gdImagePtr im, FILE * outFile, int cs, int fmt) in gdImageGd2() argument
836 _gdImageGd2(im, out, cs, fmt); in gdImageGd2()
841 void *gdImageGd2Ptr (gdImagePtr im, int cs, int fmt, int *size) in gdImageGd2Ptr() argument
846 _gdImageGd2(im, out, cs, fmt); in gdImageGd2Ptr()