Re: [Displaylink-devel] News from Displaylink
Brought to you by:
echtler
From: Chris H. <ch...@pl...> - 2009-05-15 07:52:04
|
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 |