mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
image/jpeg: better pack APP0 structs
This commit is contained in:
committed by
Jeroen van Rijn
parent
a6f18c3367
commit
8644f3beba
@@ -270,13 +270,13 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
|
||||
}
|
||||
info.jfif_app0 = image.JFIF_APP0{
|
||||
version,
|
||||
units,
|
||||
x_density,
|
||||
y_density,
|
||||
units,
|
||||
cast(u8)x_thumbnail,
|
||||
cast(u8)y_thumbnail,
|
||||
thumbnail,
|
||||
greyscale_thumbnail,
|
||||
thumbnail,
|
||||
}
|
||||
img.metadata = info
|
||||
}
|
||||
@@ -330,8 +330,8 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
|
||||
}
|
||||
info.jfxx_app0 = image.JFXX_APP0{
|
||||
extension_code,
|
||||
x_thumbnail,
|
||||
y_thumbnail,
|
||||
cast(u8)x_thumbnail,
|
||||
cast(u8)y_thumbnail,
|
||||
thumbnail,
|
||||
}
|
||||
img.metadata = info
|
||||
@@ -359,8 +359,8 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a
|
||||
}
|
||||
info.jfxx_app0 = image.JFXX_APP0{
|
||||
extension_code,
|
||||
x_thumbnail,
|
||||
y_thumbnail,
|
||||
cast(u8)x_thumbnail,
|
||||
cast(u8)y_thumbnail,
|
||||
pixels,
|
||||
}
|
||||
img.metadata = info
|
||||
|
||||
Reference in New Issue
Block a user