From 51355de48e338717ce6851aeb504a68eb4141437 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 8 Sep 2007 19:42:15 +0000 Subject: "miscellaneous update" git-svn-id: http://svn.code.sf.net/p/netpbm/code/userguide@408 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- libppm.html | 95 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 46 insertions(+), 49 deletions(-) (limited to 'libppm.html') diff --git a/libppm.html b/libppm.html index 3d83709d..e70d169a 100644 --- a/libppm.html +++ b/libppm.html @@ -6,16 +6,14 @@

libppm

-Updated: 22 July 2004 +Updated: 8 September 2007
Table Of Contents - 

NAME

libppm - functions for PPM programs -  -

SYNOPSIS

+

SYNOPSIS

#include <ppm.h> @@ -177,13 +175,11 @@ libppm - functions for PPM programs ) -  -

DESCRIPTION

+

DESCRIPTION

These library functions are part of Netpbm. -  -

TYPES AND CONSTANTS

+

TYPES AND CONSTANTS

Each pixel contains three pixvals, each of which should contain only the values between 0 and PPM_MAXMAXVAL. @@ -223,13 +219,13 @@ significantly faster to do it with multiplication tables instead. Compute all the possible products once up front, then for each pixel, just look up the products in the tables. -  -

INITIALIZATION

+

INITIALIZATION

-

ppm_init() is identical to pm_init. +

ppm_init() is identical to pm_proginit. -  -

MEMORY MANAGEMENT

+

ppm_init() is obsolete. Use pm_proginit() instead. + +

MEMORY MANAGEMENT

ppm_allocarray() allocates an array of pixels. @@ -242,8 +238,7 @@ pixels.

ppm_freerow() frees a row of pixelss allocated with ppm_allocrow(). -  -

READING FILES

+

READING FILES

If a function in this section is called on a PBM or PGM format file, it translates the PBM or PGM file into a PPM file on the fly and @@ -267,8 +262,7 @@ information from the header as rows, cols, and ppm_allocarray(), and ppm_readppmrow(). -  -

WRITING FILES

+

WRITING FILES

ppm_writeppminit() writes the header for a PPM file and leaves it positioned just after the header. @@ -304,7 +298,7 @@ on PPM, PGM, and PBM files.

COLOR

-

Luminance, Chrominance (YcbCr)

+

Luminance, Chrominance (YcbCr)

 
@@ -468,8 +462,7 @@ represents it.
 
 

COLOR NAMES

-  -

System Color Dictionary

+

System Color Dictionary

Netpbm uses the system's X11 color dictionary (usually in /usr/lib/X11/rgb.txt). This is the same file the X Window @@ -587,8 +580,7 @@ colors or names.

ppm_readcolornamefile() was new in Netpbm 10.15 (April 2003). -  -

COLOR INDEXING

+

COLOR INDEXING

Sometimes in processing images, you want to associate a value with a particular color. Most often, that's because you're generating a @@ -699,8 +691,7 @@ message.

The return value is a new colorhash_table which you must eventually free with ppm_freecolorhash(). -  -

COLOR HISTOGRAMS

+

COLOR HISTOGRAMS

The Netpbm libraries give you functions to examine a Netpbm image and determine what colors are in it and how many pixels of each color @@ -784,40 +775,46 @@ open file stream and it reads the image from the file. The file must be positioned after the header, at the raster. Upon return, the file is still open, but its position is undefined. -  -

SEE ALSO

+

SEE ALSO

pbm, pgm, libpbm -  -

AUTHOR

+

AUTHOR

Copyright (C) 1989, 1991 by Tony Hansen and Jef Poskanzer.
-  -

Table Of Contents

- +
  • SYNOPSIS +
  • DESCRIPTION + +
  • SEE ALSO +
  • AUTHOR + -- cgit 1.4.1