Lines Matching refs:out
49 extern void _gdPutColors(gdImagePtr im, gdIOCtx * out);
622 static void _gd2PutHeader (gdImagePtr im, gdIOCtx * out, int cs, int fmt, int cx, int cy) in _gd2PutHeader() argument
628 gdPutC((unsigned char) (GD2_ID[i]), out); in _gd2PutHeader()
633 gdPutWord(GD2_VERS, out); in _gd2PutHeader()
634 gdPutWord(im->sx, out); in _gd2PutHeader()
635 gdPutWord(im->sy, out); in _gd2PutHeader()
636 gdPutWord(cs, out); in _gd2PutHeader()
637 gdPutWord(fmt, out); in _gd2PutHeader()
638 gdPutWord(cx, out); in _gd2PutHeader()
639 gdPutWord(cy, out); in _gd2PutHeader()
642 static void _gdImageGd2 (gdImagePtr im, gdIOCtx * out, int cs, int fmt) in _gdImageGd2() argument
683 _gd2PutHeader (im, out, cs, fmt, ncx, ncy); in _gdImageGd2()
706 idxPos = gdTell(out); in _gdImageGd2()
709 gdSeek(out, idxPos + idxSize); in _gdImageGd2()
715 _gdPutColors (im, out); in _gdImageGd2()
756 gdPutInt(im->tpixels[y][x], out); in _gdImageGd2()
758 gdPutC((unsigned char) im->pixels[y][x], out); in _gdImageGd2()
770 chunkIdx[chunkNum].offset = gdTell(out); in _gdImageGd2()
774 if (gdPutBuf (compData, compLen, out) <= 0) { in _gdImageGd2()
786 posSave = gdTell(out); in _gdImageGd2()
787 gdSeek(out, idxPos); in _gdImageGd2()
791 gdPutInt(chunkIdx[x].offset, out); in _gdImageGd2()
792 gdPutInt(chunkIdx[x].size, out); in _gdImageGd2()
794 gdSeek(out, posSave); in _gdImageGd2()
812 gdIOCtx *out = gdNewFileCtx(outFile); in gdImageGd2() local
814 _gdImageGd2(im, out, cs, fmt); in gdImageGd2()
816 out->gd_free(out); in gdImageGd2()
822 gdIOCtx *out = gdNewDynamicCtx(2048, NULL); in gdImageGd2Ptr() local
824 _gdImageGd2(im, out, cs, fmt); in gdImageGd2Ptr()
825 rv = gdDPExtractData(out, size); in gdImageGd2Ptr()
826 out->gd_free(out); in gdImageGd2Ptr()