From cb0f20731dbd079e66cf1c3d038cc8550525c39d Mon Sep 17 00:00:00 2001 From: ian Date: Fri, 22 Oct 2004 16:23:32 +0000 Subject: [PATCH] spec for display conversion --- layout/subseg2display.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 layout/subseg2display.c diff --git a/layout/subseg2display.c b/layout/subseg2display.c new file mode 100644 index 0000000..ebd9e7e --- /dev/null +++ b/layout/subseg2display.c @@ -0,0 +1,26 @@ +/* + * usage: + * subseg2display encoding.ppm [status-info ...] + * + * status-info args are: + * + * + * is + * for fixed track + * . for part of a moveable feature + * where numbers are in strtoul format, movfeatpos is the + * moveable feature and position as in segcmapassign and + * if is `.', spec is for unspecified segments. + * + * Resulting pixel is + * [ red ] + * (alpha * DIRECTION_COLOUR) + ((1-alpha) * [ green ] ) + * [ blue ] + * + * status.bin has the following format: + * 16 bits number of segments + * 2 + */ + +int main(int argc, const char *const *argv) { +} -- 2.30.2