-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathppm_rw.h
More file actions
27 lines (23 loc) · 732 Bytes
/
ppm_rw.h
File metadata and controls
27 lines (23 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*****************************************************************************/
/*
* NTSC/CRT - integer-only NTSC video signal encoding / decoding emulation
*
* by EMMIR 2018-2023
*
* YouTube: https://www.youtube.com/@EMMIR_KC/videos
* Discord: https://discord.com/invite/hdYctSmyQJ
*/
/*****************************************************************************/
#ifndef _PPM_RW_
#define _PPM_RW_
/* ppm_rw.h
*
* Routines to read and write non-ASCII 24-bit PPM images.
*
*/
extern int ppm_read24(char *file,
int **out_color,
int *out_w, int *out_h,
void *(*calloc_func)(size_t, size_t));
extern int ppm_write24(char *name, int *color, int w, int h);
#endif