#include <mnt_pnm_file.h>
Static Public Member Functions | |
static int | ppm_encode (MntByteImage *r, MntByteImage *g, MntByteImage *b, BitParser *bp) |
Assuming that the cursor of BitParser bp is pointing to the position after a PNM header, this method writes the pixel values from the given R, G, and B value out to the BitParser bp. | |
static int | ppm_parse (BitParser *bp, MntByteImage *r, MntByteImage *g, MntByteImage *b) |
Assuming that the cursor of BitParser bp is pointing to the first byte of the image and the size of the three input byte images are set properly, this method reads the pixel values from a bitstream containing PPM image and stores it in the respective byte images according to its color plane. | |
static int | pgm_encode (MntByteImage *byte, BitParser *bp) |
Assuming that the cursor of BitParser bp is pointing to the position after a PNM header, this method writes the pixel values from the given byte image out to a bitstream as PGM image. | |
static int | pgm_parse (BitParser *bp, MntByteImage *byte) |
Assuming that the cursor of BitParser bp is pointing to the first byte of the image and the size of the input byte image is set properly, this method reads the pixel values from a bitstream containing PGM image and stores it in the byte image. |
|
Assuming that the cursor of BitParser bp is pointing to the position after a PNM header, this method writes the pixel values from the given byte image out to a bitstream as PGM image.
|
|
Assuming that the cursor of BitParser bp is pointing to the first byte of the image and the size of the input byte image is set properly, this method reads the pixel values from a bitstream containing PGM image and stores it in the byte image.
|
|
Assuming that the cursor of BitParser bp is pointing to the position after a PNM header, this method writes the pixel values from the given R, G, and B value out to the BitParser bp.
|
|
Assuming that the cursor of BitParser bp is pointing to the first byte of the image and the size of the three input byte images are set properly, this method reads the pixel values from a bitstream containing PPM image and stores it in the respective byte images according to its color plane.
|