Ibutsu is a collection of bindings to small, self-contained C libraries. These libraries either come from or are inspired by Stb.
The goal is to expose some features, especially around multimedia, which are not convenient to implement directly in OCaml. The libraries have no dependency besides a libc and a C compiler, they are portable and easy to distribute. The bindings work with native and bytecode OCaml.
The modules available are:
Image_type
: a simple representation for pixel maps used by other modulesStb_image
: JPG, PNG, BMP, TGA, ... decoder, plus a few simple filtersStb_image_write
: JPG, PNG, ... encoderStb_image_resize
: image resizer with a variety of resize filters and image formatsStb_truetype
: truetype font (*.ttf) decoder and rasterizerStb_vorbis
: OGG Vorbis decoderMinimp3
: high-quality MP3 (plus audio layer 1 and 2) decoder
Stb is released by Sean T. Barrett in the public domain or MIT.
Minimp3 is released by Lion(?) in the public domain or CC-0.
The present bindings are released in the public domain or MIT or ISC or CC-0.