aboutsummaryrefslogtreecommitdiff
path: root/core/image/png
diff options
context:
space:
mode:
authorIllusionMan1212 <hisham.abourgheba@gmail.com>2025-02-01 23:01:03 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-09-08 17:13:03 +0200
commitcb820eea4d77c2b06ac8c2fdb01fdcfad0053d38 (patch)
tree32f94952b1774f10888c595f95075229fb1df343 /core/image/png
parent57a92b14cc1621efbf0eef61acf48b1b760917b1 (diff)
jpeg: extract Exif data
Diffstat (limited to 'core/image/png')
-rw-r--r--core/image/png/helpers.odin4
-rw-r--r--core/image/png/png.odin8
2 files changed, 2 insertions, 10 deletions
diff --git a/core/image/png/helpers.odin b/core/image/png/helpers.odin
index a9495ed4d..97e70226c 100644
--- a/core/image/png/helpers.odin
+++ b/core/image/png/helpers.odin
@@ -366,7 +366,7 @@ chrm :: proc(c: image.PNG_Chunk) -> (res: cHRM, ok: bool) {
return
}
-exif :: proc(c: image.PNG_Chunk) -> (res: Exif, ok: bool) {
+exif :: proc(c: image.PNG_Chunk) -> (res: image.Exif, ok: bool) {
ok = true
@@ -396,4 +396,4 @@ exif :: proc(c: image.PNG_Chunk) -> (res: Exif, ok: bool) {
General helper functions
*/
-compute_buffer_size :: image.compute_buffer_size \ No newline at end of file
+compute_buffer_size :: image.compute_buffer_size
diff --git a/core/image/png/png.odin b/core/image/png/png.odin
index ef3d617eb..3516fc8d3 100644
--- a/core/image/png/png.odin
+++ b/core/image/png/png.odin
@@ -138,14 +138,6 @@ Text :: struct {
text: string,
}
-Exif :: struct {
- byte_order: enum {
- little_endian,
- big_endian,
- },
- data: []u8,
-}
-
iCCP :: struct {
name: string,
profile: []u8,