31 lines
491 B
C
31 lines
491 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, char* name);
|
|
|
|
unsigned int*
|
|
jpeg_load(JPEG* m_attr);
|
|
|
|
int
|
|
jpeg_save(const unsigned int* src_buf, const JPEG* attr, const char* name);
|
|
|
|
void
|
|
transcode_to_jpeg(PPM* in, JPEG* out);
|
|
|
|
void
|
|
transcode_to_ppm(JPEG* input, PPM* out);
|
|
|
|
PPM
|
|
inherit_from_jpeg(const JPEG* in, const char fmt);
|
|
|
|
JPEG
|
|
inherit_from_ppm(const PPM* in);
|
|
|
|
#endif
|