Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ppmtolss16(1) [centos man page]

PPMTOLSS16(1)						      General Commands Manual						     PPMTOLSS16(1)

NAME
ppmtolss16 -- Convert a PPM to an LSS16 image SYNOPSIS
ppmtolss16 [ #rrggbb=i ...] [< input.ppm] [> output.rle] DESCRIPTION
This manual page documents briefly the ppmtolss16 command. The ppmtolss16 program converts a "raw" PPM file with max 16 colors to a simple RLE-based format: simple RLE-based format unint32 0x1413f3d magic (littleendian) unint16 xsize littleendian unint15 ysize littleendian 16 x unint8 r,g,b color map Color map is in 6-bit format (each byte is 0..63) Then, a sequence of nybbles: N ... if N is != previous pixel, one pixel of color N, otherwise run sequence follows ... M ... if M > 0 then run length is M+1, otherwise run sequence is encoded in two nybbles, littleendian, +17 The nybble sequences are on a per-row basis, runs may not extend across rows and odd-nybble rows are zero-padded. At the start of a row, the "previous pixel" is assumed to be zero. OPTIONS
A summary of options is included below. #rrggbb=i Specify that the color #rrggbb (hex) should be assigned index i (decimal). BUG
This program cannot handle comments in the header, nor "plain" ppm format. SEE ALSO
ppmtolss16(1) AUTHOR
This manual page was compiled by dann frazier <dannf@debian.org> for the Debian GNU/Linux system (but may be used by others). Most of the content was written by H. Peter Anvin. PPMTOLSS16(1)

Check Out this Related Man Page

RLETOPNM(1)						      General Commands Manual						       RLETOPNM(1)

NAME
rletopnm - convert a Utah Raster Tools RLE image file into a PNM image file. SYNOPSIS
rletopnm [--alphaout={alpha-filename,-}] [--headerdump|-h] [--verbose|-v] [--plain|-p] [rlefile|-] All options may be abbreviated to their minimum unique abbreviation and options and arguments may be in any order. DESCRIPTION
This program converts Utah Raster Toolkit RLE image files into PNM image files. rletopnm handles four types of RLE files: Grayscale (8 bit data, no color map), Pseudocolor (8 bit data with a color map), Truecolor (24 bit data with color map), and Directcolor (24 bit data, no color map). rletopnm generates a PPM file for all these cases except for the Grayscale file, for which rletopnm generates a PGM file. rlefile is the RLE input file. If it is absent or -, the input comes from Standard Input. OPTIONS
--alphaout=alpha-filename rletopnm creates a PGM (portable graymap) file containing the alpha channel values in the input image. If the input image doesn't contain an alpha channel, the alpha-filename file contains all zero (transparent) alpha values. If you don't specify --alphaout, rletopnm does not generate an alpha file, and if the input image has an alpha channel, rletopnm simply discards it. If you specify - as the filename, rletopnm writes the alpha output to Standard Output and discards the image. See pnmcomp(1) for one way to use the alpha output file. --verbose This option causes rletopnm to operate in verbose mode. It prints messages about what it's doing, including the contents of the RLE image header, to Standard Error. --headerdump This option causes rletopnm to operate in header dump mode. It prints the contents of the RLE image header to Standard Error, but does not produce any other output. --plain This option causes the PNM output file to be in the "plain" (text) format, instead of the default "raw" (binary) format. See ppm(5) and pgm(5) for details on the difference. EXAMPLES
rletopnm --verbose lenna.rle >lenna.ppm While running in verbose mode, convert lenna.rle to PPM format and store the resulting image as lenna.ppm. rletopnm --headerdump file.rle Dump the header information of the RLE file called file.rle. rletopnm --alphaout=dartalpha.pgm dart.rle >dart.ppm Convert RLE file dart.rle to PPM format as dart.ppm. Store the alpha channel of dart.rle as dartalpha.pgm (if dart.rle doesn't have an alpha channel, store a fully transparent alpha mask as dartalpha.pgm). SEE ALSO
pnmtorle(1), pnmconvol(1), pnm(5), ppm(5), pgm(5), urt(1), RLE(5) AUTHOR
Wes Barris Army High Performance Computing Research Center (AHPCRC) Minnesota Supercomputer Center, Inc. Modifications by Eric Haines to support raw and plain formats. Modifications by Bryan Henderson to create alpha files and use mnemonic options. 1 13 April 2000 RLETOPNM(1)
Man Page