aboutsummaryrefslogtreecommitdiff
path: root/core/image
Commit message (Collapse)AuthorAgeFilesLines
* Add more uses of `or_return`gingerBill2021-08-151-30/+9
|
* ZLIB: cleanup.Jeroen van Rijn2021-06-271-2/+2
|
* PNG: Inform `inflate` about expected output size for extra speed.Jeroen van Rijn2021-06-271-26/+28
|
* PNG: Let PNG use the new compress I/O routines.Jeroen van Rijn2021-06-271-12/+6
|
* All reads now skip stream if in memory.Jeroen van Rijn2021-06-231-11/+11
|
* 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.
* PNG: Fix leak if you don't ask for metadata.Jeroen van Rijn2021-06-212-8/+4
|
* Comment out tracy imports.Jeroen van Rijn2021-06-211-0/+4
|
* ZLIB: Start optimization.Jeroen van Rijn2021-06-214-8/+44
|
* Replace `core:image`'s `sidecar` with explicit `metadata_ptr` and ↵Jeroen van Rijn2021-06-213-23/+23
| | | | | | | | | | | | | | | `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-203-9/+12
| | | | | | | | | 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.
* More minor stylization changes (remove unneeded parentheses)gingerBill2021-06-141-2/+2
|
* Minor formatting changesgingerBill2021-06-144-362/+356
|
* Core library clean up: Make range expressions more consistent and replace ↵gingerBill2021-06-141-10/+10
| | | | uses of `..` with `..=`
* Fix gray+alpha alpha extract.Jeroen van Rijn2021-05-041-4/+4
|
* Change General_Error.OK to nilJeroen van Rijn2021-05-033-27/+27
|
* Convert `core:compress` and `core:image` error checks to new union comparison.Jeroen van Rijn2021-05-033-17/+16
| | | | No more need for `is_kind(err, Error_Value)`, just test err == Error_Value.
* Remove debug print in image helper.Jeroen van Rijn2021-05-031-5/+1
|
* Don't need other path for grayscale output.Jeroen van Rijn2021-05-021-13/+0
|
* Add new PNG post processing options.Jeroen van Rijn2021-05-022-16/+142
|
* Fix Paeth for bit depth < 8.Jeroen van Rijn2021-05-011-1/+1
|
* PNG: Fix tRNS handling.Jeroen van Rijn2021-05-011-18/+16
|
* Fix a few more cases in which bKGD wasn't properly applied.Jeroen van Rijn2021-05-011-12/+71
|
* PNG: Fix test for when premultiplication is needed.Jeroen van Rijn2021-05-011-2/+2
|
* Minor stylistic code changes to compress and image packagesgingerBill2021-04-303-459/+455
|
* Use regular allocator from png+gzip's `load_from_file`.Jeroen van Rijn2021-04-301-4/+2
| | | | | | | | | | | | I would've used `os.stream_from_handle`, but: - Parts of it seem to be implemented for Windows only at the moment. - PNG's `peek_data` using that stream didn't manage to rewind and thus tried to parse the data after the header as the header. Two things must happen: - The `os.stream_from_handle` implementation needs to be fixed. - PNG and GZIP's parsers need to be able to handle streams that can't rewind or seek (backward). Those fixes are on my TODO list but are exceed the scope of this patch.
* Add `compress` and `image` to core.Jeroen van Rijn2021-04-304-0/+2545