#include <string.h>
#include <gandalf/image/io/ppm_io.h>
#include <gandalf/image/io/image_io.h>
#include <gandalf/image/image_rgb_uint8.h>
#include <gandalf/common/misc_error.h>
Functions | |
Gan_Bool | gan_image_is_ppm (const unsigned char *magic_string, size_t length) |
Determines whether an image is a PPM image using the magic number. | |
Gan_Image * | gan_read_ppm_image_stream (FILE *infile, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in PPM format from a stream. | |
Gan_Image * | gan_read_ppm_image (const char *filename, Gan_Image *image, const struct Gan_ImageReadControlStruct *ictrlstr, struct Gan_ImageHeaderStruct *header) |
Reads a RGB colour image file in PPM format. | |
Gan_Bool | gan_write_ppm_image_stream (FILE *outfile, const Gan_Image *image, Gan_Bool new_file, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image to a file stream in PPM format. | |
Gan_Bool | gan_write_ppm_image (const char *filename, const Gan_Image *image, const struct Gan_ImageWriteControlStruct *octrlstr) |
Writes a RGB colour image file in PPM format. |
Part of: Gandalf Library