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