aboutsummaryrefslogtreecommitdiff
path: root/core/image/common.odin
Commit message (Collapse)AuthorAgeFilesLines
* Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-281-1/+1
| | | | This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
* Package lines for `core:image`.Jeroen van Rijn2025-10-091-3/+2
|
* Small updates to JPEG loaderJeroen van Rijn2025-09-091-13/+15
| | | | | - Remove some unnecessary nesting - Add frame type (SOF0, et al) to metadata if `.return_metadata` is used
* jpeg: extract Exif dataIllusionMan12122025-09-081-1/+9
|
* image/jpeg: more bounds checking and skip malformed APP0Hisham Aburaqibah2025-09-081-0/+1
| | | | Also increase the maximum huffman symbols to 176
* image/jpeg: better pack APP0 structsHisham Aburaqibah2025-09-081-6/+6
|
* image/jpeg: implement jpeg decoding for baseline and extended sequential jpegsHisham Aburaqibah2025-09-081-2/+133
|
* Added missing slice advancing.gordonshamway232024-08-231-0/+2
|
* Fix for blend_pixel.odin in core/image/common.odin not compilingKarl Zylinski2024-08-051-1/+1
|
* common.odin compile fixKarl Zylinski2024-08-051-1/+1
| | | Fix for "Error: Prefer to separate 'where' clauses with a comma rather than '&&'"
* Add image.premultiply_alpha helper.Jeroen van Rijn2024-08-031-0/+36
|
* Add image.pixels_to_image helper.dev-2024-08Jeroen van Rijn2024-08-021-1/+28
|
* fix `@(optimization_mode)` usage in builtin collectionsLaytan Laats2024-07-081-3/+3
|
* Indentation fixesgingerBill2024-06-291-36/+36
|
* Use new blend helperJeroen van Rijn2024-06-091-18/+35
|
* Image: Add improved blending method and test it.Jeroen van Rijn2024-06-091-0/+17
|
* Rebased.Jeroen van Rijn2024-06-061-0/+126
|
* Add `#no_broadcast` procedure parameter to disallow automatic array ↵gingerBill2024-03-211-18/+18
| | | | programming broadcasting on procedure arguments
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* Improve error handling for `resize` and `reserve` proceduresgingerBill2023-05-221-5/+5
|
* [TGA] Add B&W and RLE color-mapped.Jeroen van Rijn2022-08-291-4/+35
|
* [TGA] Add support for Top-Right and Bottom-Right origins.Jeroen van Rijn2022-08-281-2/+7
|
* Various changes to TGA readerJeroen van Rijn2022-08-281-3/+14
| | | | | | | | - Style changes - Change ptr usage to slice indexing - Add TGA Footer Also, add `peek_data` with offset to `compress`.
* style fixBenoit Jacquier2022-08-271-1/+1
|
* Add RLE supports for TGA loaderBenoit Jacquier2022-08-271-1/+6
|
* Merge remote-tracking branch 'origin/master'Benoit Jacquier2022-08-271-5/+5
|\
| * fix some typoscui fliter2022-08-051-5/+5
| | | | | | | | Signed-off-by: cui fliter <imcusg@gmail.com>
* | Add support for basic TGA loadingBenoit Jacquier2022-08-271-0/+6
|/
* Correction to `image.destroy`gingerBill2022-05-141-1/+1
|
* Add `image.destroy`gingerBill2022-05-141-0/+1
|
* Generalized `core:image` loadergingerBill2022-05-141-0/+1
| | | | | | | | | | | ```odin import "core:image" import "core:image/png" ... img, err := image.load_from_file("path.png") ```
* Merge branch 'master' into pr/1726Jeroen van Rijn2022-04-301-1/+1
|\
| * sys/windows: add a couple of procedures and typeshikari2022-04-301-1/+1
| |
* | [pbm] Normalize some errors, correct .depthJeroen van Rijn2022-04-301-16/+25
| |
* | Merge branch 'master' into pr/1726Jeroen van Rijn2022-04-301-0/+14
|\|
| * [image/tga] Writer for RGB(A) 8-bit images.Jeroen van Rijn2022-04-181-0/+14
| |
* | Image: Fix implicit enum errorWalterPlinge2022-04-181-2/+1
| |
* | Added initial Netpbm image format supportWalterPlinge2022-04-181-0/+46
|/
* [image] Add QOI load/save.Jeroen van Rijn2022-04-121-19/+811
| | | | | | | | Additionally: - Firm up PNG loader with some additional checks. - Add helper functions to `core:image` to expand grayscale to RGB(A), and so on. TODO: Possibly replace PNG's post-processing steps with calls to the new helper functions.
* Utilize `union #shared_nil` to `core:image` `Error`gingerBill2022-03-241-1/+2
|
* Simplify docs to hide the copyrightgingerBill2022-01-171-0/+2
|
* png: Channel helper metadata.Jeroen van Rijn2021-10-061-2/+1
|
* png: Move metadata.Jeroen van Rijn2021-10-061-6/+99
|
* png: Add sane compile-time maximums for dimensions + chunk sizes.Jeroen van Rijn2021-10-061-3/+4
|
* png + compress: Rearrange error unions.Jeroen van Rijn2021-10-061-3/+20
|
* Add additional error checking to helpers.Jeroen van Rijn2021-10-061-0/+1
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-36/+36
|
* ZLIB: Start optimization.Jeroen van Rijn2021-06-211-4/+13
|
* Replace `core:image`'s `sidecar` with explicit `metadata_ptr` and ↵Jeroen van Rijn2021-06-211-14/+17
| | | | | | | | | | | | | | | `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-1/+1
| | | | | | | | | 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.