source: bootcd/isolinux/syslinux-6.03/man/ppmtolss16.1 @ 26ffad7

Last change on this file since 26ffad7 was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 1.5 KB
Line 
1.TH "PPMTOLSS16" "1"
2.SH "NAME"
3ppmtolss16 \(em Convert a PPM to an LSS16 image
4.SH "SYNOPSIS"
5.PP
6\fBppmtolss16\fR [        \fB     \fI#rrggbb\fR=\fIi\fR         \fP        \&...]  [< input.ppm]  [> output.rle]
7.SH "DESCRIPTION"
8.PP
9This manual page documents briefly the \fBppmtolss16\fR command.
10
11.PP
12The \fBppmtolss16\fR program converts a "raw" PPM file with
13max 16 colors to a simple RLE-based format:
14
15.PP
16\fBsimple RLE-based format\fR
17.TS
18tab();
19l l.
20unint32 0x1413f3dmagic (littleendian)
21unint16 xsizelittleendian
22unint15 ysizelittleendian
2316 x unint8 r,g,bcolor map
24.TE
25.PP
26Color map is in 6-bit format (each byte is 0..63)
27.PP
28Then, a sequence of nybbles:
29.PP
30N   ... if N is != previous pixel, one pixel of color N, otherwise
31run sequence follows ...
32
33.PP
34M   ... if M > 0 then run length is M+1, otherwise run sequence is
35encoded in two nybbles, littleendian, +17
36
37.PP
38The nybble sequences are on a per-row basis, runs may not extend across
39rows and odd-nybble rows are zero-padded.
40
41.PP
42At the start of a row, the "previous pixel" is assumed to be zero.
43
44.SH "OPTIONS"
45.PP
46A summary of options is included below.
47.IP "\fB\fI#rrggbb\fR=\fIi\fR\fP" 10
48Specify that the color #rrggbb (hex) should be assigned index
49i (decimal).
50
51.SH "BUG"
52.PP
53This program cannot handle comments in the header, nor "plain" ppm
54format.
55
56.SH "SEE ALSO"
57.PP
58\fBppmtolss16\fR(1)
59
60.SH "AUTHOR"
61.PP
62This manual page was compiled by dann frazier <dannf@debian.org> for
63the \fBDebian GNU/Linux\fP system (but may be used by others).  Most of the content
64was written by H. Peter Anvin.
Note: See TracBrowser for help on using the repository browser.