GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
RAWTORLE(1) FreeBSD General Commands Manual RAWTORLE(1)

rawtorle - Convert raw image data to RLE.

rawtorle [ -N ] [ -s ] [ -r ] [ -w width ] [ -h height ] [ -f header-size ] [ -t trailer-size ] [ -n nchannels ] [ -a [ alpha-value ] ] [ -p scanline-pad ] [ -l left-scanline-pad ] [ -o outfile ] [ infile ]

This program is used to convert image data in any of a number of "raw" forms to the RLE(5) format. The expected input size is computed from the arguments, so that several images may be concatenated together and will be processed in sequence. In this case, the output file will contain several RLE images.

-N
The input is in non-interleaved order, as might be generated by the command
cat pic.r pic.g pic.b
-s
The input is in scanline interleaved order.
-r
Reverse the channel order. (E.g., data will be interpreted as ABGR instead of RGBA.)
-w width
Specify the width of the input image.
-h height
Specify the height of the input image.
-f header-size
This many bytes will be skipped before starting to read image data.
-t trailer-size
This many bytes will be skipped at the end of the image data.
-n nchannels
The input data has this many color channels.
-a [alpha-value]
Generate a constant alpha channel. The default value for alpha-value is 255.
-p scanline-pad
This many bytes will be skipped at the end of each scanline.
-l left-scanline-pad
This many bytes will be skipped at the beginning of each scanline.
-o outfile
If specified, output will be written to this file, otherwise it will go to stdout.
infile
The input will be read from this file, otherwise, input will be taken from stdin.

The input data is assumed to have an alpha channel if there are 2 or 4 channels. The alpha channel is the last input channel unless -r is specified, in which case it is the first.

512x512 grayscale
rawtorle -w 512 -h 512 -n 1
640x512 raw RGB
rawtorle -w 640 -h 512 -n 3
picture.[rgb]
cat picture.[rgb] | rawtorle -w 640 -h 512 -n 3 -N -r
(I.e., separate red, green, blue image files. This subsumes graytorle(1).)
JPL ODL Voyager pics
rawtorle -w 800 -h 800 -f 2508 -t 1672 -n 1 -p 36
24bit Sun raster file
rawtorle -f 32 -w ... -h ... -n 3
(But rastorle(1) is easier.)
pic.{000-100}.[rgb]
cat pic.* | rawtorle -w ... -h ... -n 3 -s -r
(I.e., each color of each scanline is in a separate file.)

graytorle(1), rastorle(1), urt(1), RLE(5).

Martin Friedmann
1990 4th Berkeley Distribution

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.