ZLIB: cleanup.

This commit is contained in:
Jeroen van Rijn
2021-06-27 16:48:12 +02:00
parent 064516bf0b
commit d949d5a046
5 changed files with 67 additions and 59 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ main :: proc() {
demo :: proc() {
file: string;
options := image.Options{.return_metadata};
options := image.Options{}; // {.return_metadata};
err: compress.Error;
img: ^image.Image;
@@ -56,9 +56,9 @@ demo :: proc() {
v: ^Info;
fmt.printf("Image: %vx%vx%v, %v-bit.\n", img.width, img.height, img.channels, img.depth);
if img.metadata_ptr != nil && img.metadata_type == Info {
v = (^Info)(img.metadata_ptr);
// Handle ancillary chunks as you wish.
// We provide helper functions for a few types.
for c in v.chunks {