fileformatsproject-legacy/lib/image_ppm.h

24 lines
637 B
C
Raw Normal View History

2023-12-04 23:27:48 +01:00
#ifndef __IMAGE_PPM__
#define __IMAGE_PPM__
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "../libcproject/libcproject.h"
#include "image.h"
/**
* @brief Convert image to PPM (Portable PixMap format) defined by the Netpbm project (Plain/Raw text ASCII format).
* @see https://netpbm.sourceforge.net/doc/ppm.html
*/
byte_t* image_to_ppm_text(struct image* image, off_t* size);
/**
* @brief Convert image to PPM (Portable PixMap format) defined by the Netpbm project (binary format).
* @see https://netpbm.sourceforge.net/doc/ppm.html
*/
byte_t* image_to_ppm_binary(struct image* image, off_t* size);
#endif