summaryrefslogtreecommitdiffstats
path: root/lisiblepng
diff options
context:
space:
mode:
authorClement Sibille <clements+git@lisible.xyz>2024-03-05 17:02:29 +0900
committerClement Sibille <clements+git@lisible.xyz>2024-03-05 17:02:29 +0900
commit1f412b64ce2229a7dc62b57239738c7a09b1af56 (patch)
tree9bf46f92ed986be03cc844a54586d5c773c1bec6 /lisiblepng
parent5ce9aeb818f558309fbe7e526a8b94a3be19120a (diff)
Rename parse function to decode
Diffstat (limited to 'lisiblepng')
-rw-r--r--lisiblepng/src/lisiblepng.c2
-rw-r--r--lisiblepng/src/lisiblepng.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lisiblepng/src/lisiblepng.c b/lisiblepng/src/lisiblepng.c
index 7a3818b..21940b2 100644
--- a/lisiblepng/src/lisiblepng.c
+++ b/lisiblepng/src/lisiblepng.c
@@ -419,7 +419,7 @@ void apply_reconstruction_functions(Png *image,
}
}
-Png *lis_Png_parse(FILE *stream) {
+Png *lis_Png_decode(FILE *stream) {
Png *png = malloc(sizeof(Png));
DeflateDecompressor ctx;
diff --git a/lisiblepng/src/lisiblepng.h b/lisiblepng/src/lisiblepng.h
index 2fc1204..86a8364 100644
--- a/lisiblepng/src/lisiblepng.h
+++ b/lisiblepng/src/lisiblepng.h
@@ -12,7 +12,7 @@ typedef struct Png Png;
/// @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);
+Png *lis_Png_decode(FILE *stream);
/// Outputs the provided Png struct as a PPM image to stdout
///
/// @param png The png
Go back to lisible.xyz