diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-06-20 18:27:23 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-06-20 18:27:23 +0200 |
| commit | 55d09251d8ec7455609bbbf3d211e9be8948bf0e (patch) | |
| tree | dcd9e9ba138d33ee8cde9910d8603a473cf27205 /core/image/common.odin | |
| parent | d66fd71d217815a97af12e5e0a1bd035783c3f36 (diff) | |
Change PNG's img.sidecar to ^Info, make img.depth an int.
For compatibility with the upcoming OpenEXR code, img.depth is now an int.
Like OpenEXR's code, it will now also return metadata as ^Info instead of Info.
The example was updated to retrieve the metadata this way.
It regrettably does not fix: #1018. That seems to be a codegen issue in the test runner or elsewhere.
Diffstat (limited to 'core/image/common.odin')
| -rw-r--r-- | core/image/common.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image/common.odin b/core/image/common.odin index 9d46b81e6..2d1dcf0f8 100644 --- a/core/image/common.odin +++ b/core/image/common.odin @@ -7,7 +7,7 @@ Image :: struct { width: int, height: int, channels: int, - depth: u8, + depth: int, pixels: bytes.Buffer, /* Some image loaders/writers can return/take an optional background color. |