aboutsummaryrefslogtreecommitdiff
path: root/core/image/png/example.odin
Commit message (Collapse)AuthorAgeFilesLines
* Add updated PNG exampleJeroen van Rijn7 days1-0/+136
|
* core: improve package doc comments for the documentation generatorLaytan Laats2024-09-031-351/+0
|
* Fix `err != 0` usesgingerBill2024-08-041-1/+1
|
* Merge pull request #1544 from FancyKillerPanda/build_ignoregingerBill2022-11-031-1/+1
|\ | | | | Changed `//+ignore` to `//+build ignore` and emit a warning for unknown tags
| * Changed //+ignore to //+build ignore.FancyKillerPanda2022-02-241-1/+1
| |
* | Fix to png example.odingingerBill2022-08-111-1/+1
|/
* Convert `ODIN_OS` and `ODIN_ARCH` to use enums rather than use stringsgingerBill2022-01-201-1/+1
|
* `ODIN_ENDIAN` changed to an enum constant; `ODIN_ENUM_STRING` is the new ↵gingerBill2022-01-151-1/+1
| | | | string version of the old constant
* png: Move metadata.Jeroen van Rijn2021-10-061-83/+81
|
* png: Add sane compile-time maximums for dimensions + chunk sizes.Jeroen van Rijn2021-10-061-4/+3
|
* png + compress: Rearrange error unions.Jeroen van Rijn2021-10-061-2/+1
|
* Add additional error checking to helpers.Jeroen van Rijn2021-10-061-76/+77
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-156/+156
|
* ZLIB: cleanup.Jeroen van Rijn2021-06-271-2/+2
|
* Refactor ZLIB structs.Jeroen van Rijn2021-06-231-0/+16
|
* Move `bytes` utils back to EXR code for the time being.Jeroen van Rijn2021-06-221-24/+24
| | | | Also, allow PNG example to be run directly from `core:image/png` directory.
* ZLIB: Start optimization.Jeroen van Rijn2021-06-211-0/+11
|
* Replace `core:image`'s `sidecar` with explicit `metadata_ptr` and ↵Jeroen van Rijn2021-06-211-3/+3
| | | | | | | | | | | | | | | `metadata_type`. To unpack, use: ```odin v: ^png.Info; if img.metadata_ptr != nil && img.metadata_type == png.Info { v = (^png.Info)(img.metadata_ptr); ... } ```
* Change PNG's img.sidecar to ^Info, make img.depth an int.Jeroen van Rijn2021-06-201-3/+3
| | | | | | | | | 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.
* Minor formatting changesgingerBill2021-06-141-78/+78
|
* Change General_Error.OK to nilJeroen van Rijn2021-05-031-2/+2
|
* Convert `core:compress` and `core:image` error checks to new union comparison.Jeroen van Rijn2021-05-031-2/+2
| | | | No more need for `is_kind(err, Error_Value)`, just test err == Error_Value.
* Minor stylistic code changes to compress and image packagesgingerBill2021-04-301-2/+2
|
* Add `compress` and `image` to core.Jeroen van Rijn2021-04-301-0/+327