.TL
Rawtoppm User Manual
.SH 1
rawtoppm
.LP
Updated: 06 February 1991
.br
Table Of Contents
.SH 2
NAME
.LP
rawtoppm - convert a stream of raw RGB bytes to a PPM image
.SH 2
SYNOPSIS
.LP
\fBrawtoppm\fR
[\fB-headerskip\fR \fIN\fR]
[\fB-rowskip\fR \fIN\fR]
[
\fB-rgb\fR|\fB-rbg\fR|\fB-grb\fR
|\fB-gbr\fR|\fB-brg\fR|\fB-bgr\fR
]
[\fB-interpixel\fR|\fB-interrow\fR]
\fIwidth\fR \fIheight\fR
[\fIimagedata\fR]
.SH 2
DESCRIPTION
.LP
.LP
This program is part of Netpbm.
.LP
\fBrawtoppm\fR reads raw RGB bytes as input and produces a PPM
image as output. The input file is just RGB bytes. You have to
specify the width and height on the command line, since the program
obviously can't get them from the file. \fBrawtoppm\fR assumes the
maxval of the input samples is 255, and makes the maxval of the output
PPM 255.
.LP
\fBrawtoppm\fR assumes the pixels come top first in the input stream.
If they are actually bottom first, the resulting PPM is upside down, so
run it through \fBpamflip -tb\fR.
.SH 2
OPTIONS
.LP
.RS
.IP "\fB-headerskip\fR"
Skip over this many bytes at the beginning of the input stream.
Use this option when the input has some kind of header followed by
a raster suitable for \fBrawtoppm\fR.
.IP "\fB-rowskip\fR"
Skip this many bytes at the end of each row of the raster. (Some
input streams have padding at the end of rows).
.IP "\fB-rgb -rbg -grb -gbr -brg -bgr\fR"
This option specifies the order of the color components for each
pixel. The default is \fB-rgb\fR.
.IP "\fB-interpixel -interrow\fR"
These options specify how the colors are interleaved. The default
is \fB-interpixel\fR, meaning interleaved by pixel. A byte of red, a
byte of green, and a byte of blue, or whatever color order you
specified. \fB-interrow\fR means interleaved by row - a row of red,
a row of green, a row of blue, assuming standard rgb color order. An
\fB-interplane\fR option - all the red pixels, then all the green,
then all the blue - would be an obvious extension, but is not
implemented. You could get the same effect by splitting the file into
three parts (perhaps using \fBdd\fR), turning each part into a PGM
file with \fBrawtopgm\fR, and then combining them with \fBrgb3toppm\fR.
.RE
.SH 2
SEE ALSO
.LP
ppm,
rawtopgm,
rgb3toppm,
pamflip
.SH 2
AUTHOR
.LP
Copyright (C) 1991 by Jef Poskanzer.
.br
\l'5i'
.SH 2
Table Of Contents
.LP
.IP \(bu
NAME
.IP \(bu
SYNOPSIS
.IP \(bu
DESCRIPTION
.IP \(bu
OPTIONS
.IP \(bu
SEE ALSO
.IP \(bu
AUTHOR
.LP
|