25 lines
373 B
C
25 lines
373 B
C
#ifndef IMGIO_H
|
|
#define IMGIO_H
|
|
|
|
#include "utils.h"
|
|
|
|
unsigned int*
|
|
ppm_load(const char* file, PPM* m_attr);
|
|
|
|
int
|
|
ppm_save(const unsigned int* buf, const PPM img);
|
|
|
|
unsigned int*
|
|
jpeg_load(JPEG* m_attr);
|
|
|
|
int
|
|
jpeg_save(const unsigned int* src_buf, const JPEG* attr, const char* name);
|
|
|
|
void
|
|
ppm_to_jpeg(PPM* in, JPEG* out);
|
|
|
|
void
|
|
jpeg_to_ppm(JPEG* input, PPM* out);
|
|
|
|
#endif
|