about summary refs log tree commit diff stats
path: root/src/img/painter.nim
Commit message (Collapse)AuthorAgeFilesLines
* img: use stb_image, drop zlib as dependencybptato2024-06-201-1/+1
| | | | | | | Now we have decoders for gif, jpeg, bmp. Also, the in-house PNG decoder has been replaced in favor of the stbi implementation; this means we no longer depend on zlib, since stbi comes with a built in inflate implementation.
* img, loader: separate out png codec into cgi, misc improvementsbptato2024-06-201-5/+1
| | | | | | | | | | | | | | | * multi-processed and sandboxed PNG decoding & encoding (through local CGI) * improved request body passing (including support for output id as response body) * simplified & faster blob()/text() - now every request starts suspended, and OngoingData.buf has been replaced with loader's buffering capability * image caching: we no longer pull bitmaps from the container after every single getLines call Next steps: replace our bespoke PNG decoder with something more usable, add other decoders, and make them stream.
* css/values -> css/cssvaluesbptato2024-05-161-1/+1
| | | | for consistency
* color: RGBAColor -> ARGBColorbptato2024-04-261-11/+11
|
* Update code stylebptato2024-04-171-25/+25
| | | | | | * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines
* Use std/* imports everywherebptato2024-01-071-2/+2
|
* painter: fix off by one error in getCharBmpbptato2023-07-041-2/+2
|
* Move CanvasFillRule from bitmap to painterbptato2023-06-261-0/+4
|
* Refactor bitmap, add png color modesbptato2023-06-061-0/+207
Now PNG encoding/decoding, painting, etc. are done in separate files. Plus we support all color modes except indexed color.