API: created helper functions to inherit image formats

This commit is contained in:
Andrew Haynes
2026-03-22 18:27:51 -04:00
parent 49748c8795
commit 5d8804fdeb
2 changed files with 37 additions and 8 deletions
+8 -2
View File
@@ -16,9 +16,15 @@ int
jpeg_save(const unsigned int* src_buf, const JPEG* attr, const char* name);
void
ppm_to_jpeg(PPM* in, JPEG* out);
transcode_to_jpeg(PPM* in, JPEG* out);
void
jpeg_to_ppm(JPEG* input, PPM* out);
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