version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
rawtoppm |
|
|
2 |
!!!rawtoppm |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
SEE ALSO |
|
|
8 |
AUTHOR |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
rawtoppm - convert raw RGB bytes into a portable pixmap |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__rawtoppm__ [[__-headerskip__ ''N''] |
|
|
18 |
[[__-rowskip__ ''N''] |
|
|
19 |
[[__-rgb__|__-rbg__|__-grb__ |
|
|
20 |
|__-gbr__|__-brg__|__-bgr__ ] |
|
|
21 |
[[__-interpixel__|__-interrow__] ''width height'' |
|
|
22 |
[[''imagedata''] |
|
|
23 |
!!DESCRIPTION |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
Reads raw RGB bytes as input. Produces a portable pixmap as |
|
|
27 |
output. The input file is just RGB bytes. You have to |
|
|
28 |
specify the width and height on the command line, since the |
|
|
29 |
program obviously can't get them from the file. The maxval |
|
|
30 |
is assumed to be 255. If the resulting image is upside down, |
|
|
31 |
run it through __pnmflip -tb .__ |
|
|
32 |
!!OPTIONS |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
__-headerskip__ |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
If the file has a header, you can use this flag to skip over |
|
|
39 |
it. |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
__-rowskip__ |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
If there is padding at the ends of the rows, you can skip it |
|
|
46 |
with this flag. |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
__-rgb -rbg -grb -gbr -brg -bgr__ |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
These flags let you specify alternate color orders. The |
|
|
53 |
default is __-rgb__. |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
__-interpixel -interrow__ |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
These flags let you specify how the colors are interleaved. |
|
|
60 |
The default is __-interpixel__, meaning interleaved by |
|
|
61 |
pixel. A byte of red, a byte of green, and a byte of blue, |
|
|
62 |
or whatever color order you specified. __-interrow__ |
|
|
63 |
means interleaved by row - a row of red, a row of green, a |
|
|
64 |
row of blue, assuming standard rgb color order. An |
|
|
65 |
__-interplane__ flag - all the red pixels, then all the |
|
|
66 |
green, then all the blue - would be an obvious extension, |
|
|
67 |
but is not implemented. You could get the same effect by |
|
|
68 |
splitting the file into three parts (perhaps using |
|
|
69 |
''dd''), turning each part into a PGM file with rawtopgm, |
|
|
70 |
and then combining them with rgb3toppm. |
|
|
71 |
!!SEE ALSO |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
ppm(5), rawtopgm(1), rgb3toppm(1), pnmflip(1) |
|
|
75 |
!!AUTHOR |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
Copyright (C) 1991 by Jef Poskanzer. |
|
|
79 |
---- |