summaryrefslogtreecommitdiffstats
path: root/lisiblepng/src/lisiblepng.h
diff options
context:
space:
mode:
authorClement Sibille <clements+github@lisible.xyz>2024-06-10 12:52:15 +0900
committerClement Sibille <clements+github@lisible.xyz>2024-06-10 12:52:15 +0900
commit8552afa1a13e7eef4a0ead8736a3e732731aac6d (patch)
treeaf097e52226085e0d5b17e16ce505e3d0a146f7c /lisiblepng/src/lisiblepng.h
parentff11942fb7abfc68e2f04350f7d0a2dde51b1d9e (diff)
Revert "Make LisPng_decode use a u8* instead of a FILE*"
This reverts commit ff11942fb7abfc68e2f04350f7d0a2dde51b1d9e.
Diffstat (limited to 'lisiblepng/src/lisiblepng.h')
-rw-r--r--lisiblepng/src/lisiblepng.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisiblepng/src/lisiblepng.h b/lisiblepng/src/lisiblepng.h
index 5d4bb44..e7f94ec 100644
--- a/lisiblepng/src/lisiblepng.h
+++ b/lisiblepng/src/lisiblepng.h
@@ -1,7 +1,8 @@
#ifndef LISIBLE_PNG_H
#define LISIBLE_PNG_H
-#include <lisiblestd/types.h>
+#include <stdint.h>
+#include <stdio.h>
typedef enum {
LisPngColourType_Greyscale = 0,
@@ -18,12 +19,11 @@ typedef struct LisPng LisPng;
/// Parses the provided PNG stream
///
-/// @param image_bytes The image data
-/// @param image_bytes_length The size of the image data
+/// @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.
-LisPng *LisPng_decode(const u8 *image_bytes, usize image_bytes_length);
+LisPng *LisPng_decode(FILE *stream);
/// Writes the PNG image data as RGBA8 data to a buffer
///
Go back to lisible.xyz