package stb_image

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type !'a result = [
  1. | `Error of string
  2. | `Ok of 'a
]
type !'c buffer = ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t constraint 'c = ('a, 'b) Bigarray.kind
type float32 = (float, Bigarray.float32_elt) Bigarray.kind
type !'a t = {
  1. width : int;
  2. height : int;
  3. channels : int;
  4. data : 'a buffer;
} constraint 'a = ('b, 'c) Bigarray.kind
val width : ('a, 'b) Bigarray.kind t -> int
val height : ('a, 'b) Bigarray.kind t -> int
val channels : ('a, 'b) Bigarray.kind t -> int
val data : ('a, 'b) Bigarray.kind t -> ('a, 'b) 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) Bigarray.kind buffer -> int8 t result
val decodef : ?channels:int -> ('a, 'b) 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) Bigarray.kind buffer -> int8 t result
val decodef_unmanaged : ?channels:int -> ('a, 'b) Bigarray.kind buffer -> float32 t result
val free_unmanaged : ('a, 'b) Bigarray.kind t -> unit
OCaml

Innovation. Community. Security.