|
|
1.1 root 1: PHOTOGRAPHS in the QUIPU directory service.
2:
3: Use pr2pe to convert sunview pixrect files into `pe' files.
4:
5: Currently there are 5 picture display processes defined:-
6: Xphoto - Display photo in X11 windoow environment
7: sunphoto - Display photo in sunview environment
8: ttyphoto - Display photo on a simple terminal
9: hexphoto - Display photo in hex !!!
10: t4014 - Display on Tetronix 4014 (emulating !) terminals.
11:
12: Each can be tested with the file "sk"
13: e.g. ttyphoto < sk
14:
15: Display for other devices can be easily added.
16: Take a copy of template.c, and supply the 5 routines defined.
17: Look at sunview.c hexphoto.c ttyphoto.c t4014.c and winx.c examples.
18: Then compile using:
19: cc -o myphoto d_main.o decode.o build_trees.o interface.o myphoto.o
20:
21: To get the QUIPU interfaces to call these routine when a photo is loaded, an
22: entry of the form
23: photo falco ttyphoto
24: is needed in your dsaptailor file.
25: This will tell the interfaces to use the program `typhoto' if your
26: terminal type (determined from the TERM environment variable) is `falco'.
27:
28: ttyphoto's output can be modified with 4 environment variables:
29:
30: photo_scale: set to `small' (default), `medium' or `large'.
31: photo_invert: set true or false.
32: photo_equal: false - display photo as is.
33: true - apply histogram equalisation to try and improve quality.
34: edge - Used `edges by expansion' to try to get a better photo
35: photo_mapping: This must contain a 16 charcter string.
36: The string is used to create the greyscale.
37: Suggestions as to how to improve `ttyphoto' are welcome.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.