PPMA_TO_PPMB
PPMA to PPMB graphics file conversion
PPMA_TO_PPMB
is a C++ program which
converts PPMA files to PPMB format.
PPMA_TO_PPMB is a simple application which runs on top
of the
PPMA_IO
and
PPMB_IO
libraries.
Usage:
-
ppma_to_ppmb file.ppma file.ppmb
-
reads the data in file.ppma and writes it to file.ppmb
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
PPMA_TO_PPMB is available in
a C++ version and
a FORTRAN90 version.
Related Data and Programs:
PPMA,
a data directory which
contains sample ASCII PPM files.
PPMA_IO,
a C++ library which
is used by PPMA_TO_PPMB to read in
the ASCII PPM file.
PPMB,
a data directory which
contains sample PPMB files.
PPMB_IO,
a C++ library which
is used by PPMA_TO_PPMB to write out
the PPMB file.
Reference:
-
the NETPBM homepage.
Source Code:
List of Routines:
-
MAIN is the main program for PPMA_TO_PPMB.
-
I4_MAX returns the maximum of two integers.
-
I4VEC_TO_UCVEC converts an I4VEC to a UCVEC.
-
PPMA_CHECK_DATA checks the data for an ASCII portable pixel map file.
-
PPMA_READ reads the header and data from an ASCII portable pixel map file.
-
PPMA_READ_DATA reads the data in an ASCII portable pixel map file.
-
PPMA_READ_HEADER reads the header of an ASCII portable pixel map file.
-
PPMA_TO_PPMB converts an ASCII PPM file to binary PPM format.
-
PPMB_WRITE writes the header and data for a binary portable pixel map file.
-
PPMB_WRITE_DATA writes the data for a binary portable pixel map file.
-
PPMB_WRITE_HEADER writes the header of a binary portable pixel map file.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to
the C++ source codes.
Last revised on 04 December 2006.