package mm

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module RGBA32 = ImageRGBA32
module YUV420 = ImageYUV420
exception Not_implemented
module Pixel : sig ... end
type rgb = {
  1. rgb_pixel : Pixel.rgb_format;
  2. rgb_data : data;
  3. rgb_stride : int;
}
type yuv = {
  1. yuv_pixel : Pixel.yuv_format;
  2. y : data;
  3. y_stride : int;
  4. u : data;
  5. v : data;
  6. uv_stride : int;
}
type t_data =
  1. | RGB of rgb
  2. | YUV of yuv
type t = {
  1. data : t_data;
  2. width : int;
  3. height : int;
}
val rgb_data : t -> data * int
val yuv_data : t -> (data * int) * (data * data * int)
val width : t -> int
val height : t -> int
val pixel_format : t -> Pixel.format
val make_rgb : Pixel.rgb_format -> ?stride:int -> int -> int -> data -> t
val of_RGBA32 : RGBA32.t -> t
val to_RGBA32 : t -> RGBA32.t
val of_YUV420 : YUV420.t -> t
val to_YUV420 : t -> YUV420.t
val rgba32_to_bgr32 : data -> int -> data -> int -> (int * int) -> unit
val rgb24_to_rgba32 : data -> int -> data -> int -> (int * int) -> unit
val rgb32_to_rgba32 : data -> int -> data -> int -> (int * int) -> unit
val blank : t -> unit
val convert : ?proportional:bool -> ?scale_kind:RGBA32.Scale.kind -> t -> t -> unit
OCaml

Innovation. Community. Security.