* XWD incompatibilities...
@ 1995-11-01 5:00 Peter da Silva
1995-11-05 5:00 ` Jim Wright
0 siblings, 1 reply; 2+ messages in thread
From: Peter da Silva @ 1995-11-01 5:00 UTC (permalink / raw)
The xwd format generated by DEC's "xwd" binary on OSF/1^H^H^H^H^HDigital
UNIX doesn't seem compatible with anyone else's XWD anywhere in the world.
At least netpbm complains.
Suggestions? I'm running xwpick but it seems to be messing up.
--
Peter da Silva (NIC: PJD2) `-_-' 1601 Industrial Boulevard
Bailey Network Management 'U` Sugar Land, TX 77487-5013
+1 713 274 5180 "Har du kramat din varg idag?" USA
Bailey pays for my technical expertise. My opinions probably scare them
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: XWD incompatibilities...
1995-11-01 5:00 XWD incompatibilities Peter da Silva
@ 1995-11-05 5:00 ` Jim Wright
0 siblings, 0 replies; 2+ messages in thread
From: Jim Wright @ 1995-11-05 5:00 UTC (permalink / raw)
peter@nmti.com (Peter da Silva) writes:
>The xwd format generated by DEC's "xwd" binary on OSF/1^H^H^H^H^HDigital
>UNIX doesn't seem compatible with anyone else's XWD anywhere in the world.
From /usr/include/X11/XWDFile.h
/*
* This is not portable between machines of differing word sizes. To make
* it portable, do the following things:
*
* o #include <X11/Xmd.h>
* o remove the typedef for xwdval
* o replace all instances of xwdval with the appropriate CARD32 ... B32
* o make sure that XWDFileHeader is padded to quadword boundaries
* o make sure the window name is written out quadword aligned
* o create an XWDColor structure that contains the same fields as XColor
* but which is defined in terms of CARD32 B32, CARD16 B16, and CARD8
* o convert XColor structures to XWDColor structures in xwd
* o remove all xwdval casts from xwd
* o pack image data before writing out if necessary
* o replace casts from xwdval objects in xwud with cvtINT macros
* o convert XWDColor structures to XColor structures
* o unpack data after reading in if necessary
*/
>Suggestions? I'm running xwpick but it seems to be messing up.
I punted. When I need interoperability I use something like xv.
--
Jim Wright Keck Center for Integrative Neuroscience
jwright@phy.ucsf.edu Box 0444, Room HSE-802
voice 415-502-4874 513 Parnassus Ave
fax 415-502-4848 UCSF, San Francisco, CA 94143-0444
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-11-05 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-01 5:00 XWD incompatibilities Peter da Silva
1995-11-05 5:00 ` Jim Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox