Re: [Displaylink-devel] News from Displaylink
Brought to you by:
echtler
From: Roberto De I. <ro...@un...> - 2009-05-15 07:29:22
|
On Fri, 2009-05-15 at 09:25 +0200, Chris Hodges wrote: > Roberto De Ioris schrieb: > > The library is online: > > > > http://www.freedesktop.org/wiki/Software/libdlo > > > > Nice. Looks like this is something one could work on. But yes, it > does not cover the compression but at least provides a good basis > for the initialization stuff for different screen modes. > > But this is a joke, right? > > > /** Constant used for deciding if a host is big- or little endian. > */ > const uint32_t endian = 1; > > /** Return non-zero if the host is big endian or zero if the host is > little endian. > */ > #define IS_BIGENDIAN() ((*(char*)&endian) == '\0') > > /** Convert a 32 bit little endian value into a host byte-order value. > * > * @param val Little-endian 32 bit value to convert. > * > * @return Value in host byte order. > */ > #define LETOHL(val) (IS_BIGENDIAN() ? swap_endian_l(val) : val) > > Runtime access to this "endian" constant on every LETOHL macro? > > Sigh. > > Have a nice day -- gotta get the usbvideo.class working before I have > time to spend on the DisplayLink stuff... > > Chrisly Sadly the library is 99% useless, without compression no one can write a usable driver. I will continue to reverse engineer the windows driver. -- Roberto De Ioris http://unbit.it JID: ro...@ja... |