aboutsummaryrefslogtreecommitdiff
path: root/src/ppm.h
blob: 5cf8b02e1bd6cda6c1d5063bb7865ca7aafe9331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __PPM__
#define __PPM__
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>

typedef struct Image {
    uint8_t *data;
    int32_t width, height, pixel_bits;
} Image;

void ppm_read(const char *file, Image *img);
void ppm_write(const char *file, Image *img);
#endif
Feel free to download, copy and edit any repo