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

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

To build the code you need to have the SDL development libraries
(libsdl1.2-dev in Debian) and the unicap and ucil libraries from
http://www.unicap-imaging.org/ installed.

To build 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