A collection of OCaml bindings to small, self-contained C libraries.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Frédéric Bour 7388c83151 wip: vorbis support 3 months ago
image_type move libraries to different directories 3 months ago
minimp3 move libraries to different directories 3 months ago
stb_image move libraries to different directories 3 months ago
stb_image_resize move libraries to different directories 3 months ago
stb_image_write move libraries to different directories 3 months ago
stb_perlin move libraries to different directories 3 months ago
stb_truetype move libraries to different directories 3 months ago
stb_vorbis wip: vorbis support 3 months ago
.gitignore move libraries to different directories 3 months ago
Makefile move libraries to different directories 3 months ago
README.md move libraries to different directories 3 months ago
dune-project update bindings and tests 3 months ago
ibutsu.opam initial import 3 months ago
test_pokeball.png initial import 3 months ago

README.md

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 modules
  • Stb_image: JPG, PNG, BMP, TGA, ... decoder, plus a few simple filters
  • Stb_image_write: JPG, PNG, ... encoder
  • Stb_image_resize: image resizer with a variety of resize filters and image formats
  • Stb_truetype: truetype font (*.ttf) decoder and rasterizer
  • Minimp3: 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.