API: moved functions to files to make it easier to import to other projects
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user