A collection of OCaml bindings to small, self-contained C libraries.
移至檔案
Frédéric Bour 7388c83151 wip: vorbis support 2020-03-01 17:11:26 +01:00
image_type move libraries to different directories 2020-03-01 17:11:26 +01:00
minimp3 move libraries to different directories 2020-03-01 17:11:26 +01:00
stb_image move libraries to different directories 2020-03-01 17:11:26 +01:00
stb_image_resize move libraries to different directories 2020-03-01 17:11:26 +01:00
stb_image_write move libraries to different directories 2020-03-01 17:11:26 +01:00
stb_perlin move libraries to different directories 2020-03-01 17:11:26 +01:00
stb_truetype move libraries to different directories 2020-03-01 17:11:26 +01:00
stb_vorbis wip: vorbis support 2020-03-01 17:11:26 +01:00
.gitignore move libraries to different directories 2020-03-01 17:11:26 +01:00
Makefile move libraries to different directories 2020-03-01 17:11:26 +01:00
README.md move libraries to different directories 2020-03-01 17:11:26 +01:00
dune-project update bindings and tests 2020-03-01 17:06:53 +01:00
ibutsu.opam initial import 2020-03-01 17:04:03 +01:00
test_pokeball.png initial import 2020-03-01 17:04:03 +01:00

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.