jpeg: extract Exif data

This commit is contained in:
IllusionMan1212
2025-09-08 17:13:03 +02:00
committed by Jeroen van Rijn
parent 57a92b14cc
commit cb820eea4d
4 changed files with 87 additions and 22 deletions
+2 -2
View File
@@ -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
compute_buffer_size :: image.compute_buffer_size
-8
View File
@@ -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,