package nx

  1. Overview
  2. Docs
N-dimensional arrays for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha3.tbz
sha256=96d35ce03dfbebd2313657273e24c2e2d20f9e6c7825b8518b69bd1d6ed5870f
sha512=90c5053731d4108f37c19430e45456063e872b04b8a1bbad064c356e1b18e69222de8bfcf4ec14757e71f18164ec6e4630ba770dbcb1291665de5418827d1465

doc/src/stb_image_write/stb_image_write.ml.html

Source file stb_image_write.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
open Bigarray

type 'kind buffer = ('a, 'b, c_layout) Array1.t constraint 'kind = ('a, 'b) kind
type float32 = (float, float32_elt) kind
type int8 = (int, int8_unsigned_elt) kind

external png : string -> w:int -> h:int -> c:int -> int8 buffer -> unit
  = "ml_stbi_write_png"

external bmp : string -> w:int -> h:int -> c:int -> int8 buffer -> unit
  = "ml_stbi_write_bmp"

external tga : string -> w:int -> h:int -> c:int -> int8 buffer -> unit
  = "ml_stbi_write_tga"

external hdr : string -> w:int -> h:int -> c:int -> float32 buffer -> unit
  = "ml_stbi_write_hdr"

external jpg :
  string -> w:int -> h:int -> c:int -> quality:int -> int8 buffer -> unit
  = "ml_stbi_write_jpg_bytecode" "ml_stbi_write_jpg_native"