1PPMTOLSS16(1)               General Commands Manual              PPMTOLSS16(1)
2
3
4

NAME

6       ppmtolss16 — Convert a PPM to an LSS16 image
7

SYNOPSIS

9       ppmtolss16 [               #rrggbb=i            ...]  [< input.ppm]  [>
10       output.rle]
11

DESCRIPTION

13       This manual page documents briefly the ppmtolss16 command.
14
15
16       The ppmtolss16 program converts a "raw" PPM file with max 16 colors  to
17       a simple RLE-based format:
18
19
20       simple RLE-based format
21
22       unint32 0x1413f3d   magic (littleendian)
23       unint16 xsize       littleendian
24       unint15 ysize       littleendian
25       16 x unint8 r,g,b   color map
26
27       Color map is in 6-bit format (each byte is 0..63)
28
29       Then, a sequence of nybbles:
30
31       N    ... if N is != previous pixel, one pixel of color N, otherwise run
32       sequence follows ...
33
34
35       M   ... if M > 0 then run length is  M+1,  otherwise  run  sequence  is
36       encoded in two nybbles, littleendian, +17
37
38
39       The nybble sequences are on a per-row basis, runs may not extend across
40       rows and odd-nybble rows are zero-padded.
41
42
43       At the start of a row, the "previous pixel" is assumed to be zero.
44
45

OPTIONS

47       A summary of options is included below.
48
49       #rrggbb=i Specify that the color #rrggbb (hex) should be assigned index
50                 i (decimal).
51
52

BUG

54       This program cannot handle comments in the header, nor "plain" ppm for‐
55       mat.
56
57

SEE ALSO

59       ppmtolss16(1)
60
61

AUTHOR

63       This manual page was compiled by dann  frazier  <dannf@debian.org>  for
64       the  Debian  GNU/Linux system (but may be used by others).  Most of the
65       content was written by H. Peter Anvin.
66
67
68
69                                                                 PPMTOLSS16(1)
Impressum