Displaylink proof-of-concept demo

Florian Echtler floe at butterbrot.org
Fri Jan 9 10:06:58 PST 2009


Hello everyone,

I'm happy to announce that Chris and I have made significant progress
over the holidays with respect to driving DisplayLink devices. For an
overview of the commands etc., see
http://floe.butterbrot.org/displaylink/

I'm attaching the source code for a short "demo" of the features which
are already working. These are basically

- initialization of standard video modes @ 60Hz (640x480, 800x600 .. )
- writing raw data to the framebuffer
- writing RLE-compressed data
- basic blitting
- vertical scrolling through a larger framebuffer

It would be very helpful if some adventurous people who have a
DL-120-based DisplayLink device could give it a try. I have no idea how
a DL-160-based device will react; but if you are _really_ adventurous,
go ahead :-) If you have a 640x960 pixel RGB raw image, you can pass it
as first parameter; otherwise, it will use a red gradient.

So far for things which work, here are the things which still don't (in
increasing order of importance):

- horizontal scrolling
- fine-tuning of video mode (pixel clock etc. - this is hidden somewhere
  in the first block of registers)
- compressed pixel data (I haven't been able to really figure out what
  kind of compression this is. I think it might be a Huffman code, but
  that's just a wild guess. However, I'm pretty sure that the bit order
  in the bytes of the compressed stream should be reversed to get the
  original bitstream. And the big binary block inside the demo program
  is perhaps the Huffman code table.)

So far from me, I'm very much hoping that some of you can give some
additional feedback.

Yours, Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: displaylink.c
Type: text/x-csrc
Size: 45272 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090109/239bcdf8/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.x.org/archives/xorg/attachments/20090109/239bcdf8/attachment.pgp>


More information about the xorg mailing list