summaryrefslogtreecommitdiffstats
path: root/lisiblepng/src/lisiblepng.h
diff options
context:
space:
mode:
Diffstat (limited to 'lisiblepng/src/lisiblepng.h')
-rw-r--r--lisiblepng/src/lisiblepng.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisiblepng/src/lisiblepng.h b/lisiblepng/src/lisiblepng.h
index 549e0a4..2fc1204 100644
--- a/lisiblepng/src/lisiblepng.h
+++ b/lisiblepng/src/lisiblepng.h
@@ -3,13 +3,21 @@
#include <stdio.h>
-#define LISIBLE_PNG_COMPUTE_CRC
-
struct Png;
typedef struct Png Png;
+/// Parses the provided PNG stream
+///
+/// @param stream The PNG stream
+/// @returns The parsed PNG as a Png struct pointer or NULL if an error occured.
+/// The returned PNG is owned by the caller and must be destroyed with
+/// Png_destroy.
Png *lis_Png_parse(FILE *stream);
+/// Outputs the provided Png struct as a PPM image to stdout
+///
+/// @param png The png
void lis_Png_dump_ppm(const Png *png);
+/// Destroys a Png instance
void lis_Png_destroy(Png *png);
#endif // LISIBLE_PNG_H
Go back to lisible.xyz