summaryrefslogtreecommitdiff
path: root/README
blob: 158f1f0610132b27536c7261f5b70c1ccebe85d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
This repository contains some extra examples for 0MQ.

zmq-camera
----------

To build the code you need to have the SDL development libraries and the
unicap and ucil libraries from http://www.unicap-imaging.org/ installed.

On recent Debian/Ubuntu distributions you can get all these by doing

    apt-get install libsdl1.2-dev libunicap2-dev libucil2-dev

Once you have the above just run 'make', optionally editing the Makefile
to your liking.

The wire format for messages sent from sender to receiver is:
<width, height, frame data>
width:      uint32_t: frame width in pixels (network byte order)
height:     uint32_t: frame height in pixels (network byte order)
frame data: RGB24 frame data (R, G, B: 3 octets per pixel)

TODO:

- figure out why unicap sometimes fails to open the video device
- figure out why ucil_convert_buffer sometimes fails