package stb_image

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a result = ('a, [ `Msg of string ]) Result.result
type !'c buffer = ('a, 'b, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t constraint 'c = ('a, 'b) Stdlib.Bigarray.kind
type float32 = (float, Stdlib.Bigarray.float32_elt) Stdlib.Bigarray.kind
type int8 = (int, Stdlib.Bigarray.int8_unsigned_elt) Stdlib.Bigarray.kind
type !'a t = private {
  1. width : int;
  2. height : int;
  3. channels : int;
  4. offset : int;
  5. stride : int;
  6. data : 'a buffer;
} constraint 'a = ('b, 'c) Stdlib.Bigarray.kind
val image : width:int -> height:int -> channels:int -> ?offset:int -> ?stride:int -> ('a, 'b) Stdlib.Bigarray.kind buffer -> ('a, 'b) Stdlib.Bigarray.kind t result
val width : ('a, 'b) Stdlib.Bigarray.kind t -> int
val height : ('a, 'b) Stdlib.Bigarray.kind t -> int
val channels : ('a, 'b) Stdlib.Bigarray.kind t -> int
val data : ('a, 'b) Stdlib.Bigarray.kind t -> ('a, 'b) Stdlib.Bigarray.kind buffer
val load : ?channels:int -> string -> int8 t result
val loadf : ?channels:int -> string -> float32 t result
val decode : ?channels:int -> ('a, 'b) Stdlib.Bigarray.kind buffer -> int8 t result
val decodef : ?channels:int -> ('a, 'b) Stdlib.Bigarray.kind buffer -> float32 t result
val load_unmanaged : ?channels:int -> string -> int8 t result
val loadf_unmanaged : ?channels:int -> string -> float32 t result
val decode_unmanaged : ?channels:int -> ('a, 'b) Stdlib.Bigarray.kind buffer -> int8 t result
val decodef_unmanaged : ?channels:int -> ('a, 'b) Stdlib.Bigarray.kind buffer -> float32 t result
val free_unmanaged : ('a, 'b) Stdlib.Bigarray.kind t -> unit
val mipmap : int8 t -> int8 t -> unit
val mipmapf : float32 t -> float32 t -> unit
val vflip : int8 t -> unit
val vflipf : float32 t -> unit
val expblur : int8 t -> radius:float -> unit
OCaml

Innovation. Community. Security.