package mm

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Bitmap = ImageBitmap
module RGBA32 = ImageRGBA32
type t = {
  1. mutable y : ImageBase.Data.t;
  2. mutable y_stride : int;
  3. mutable u : ImageBase.Data.t;
  4. mutable v : ImageBase.Data.t;
  5. mutable uv_stride : int;
  6. width : int;
  7. height : int;
  8. mutable alpha : ImageBase.Data.t option;
}
val width : t -> int
val height : t -> int
val dimensions : t -> int * int
val y : t -> ImageBase.Data.t
val y_stride : t -> int
val u : t -> ImageBase.Data.t
val v : t -> ImageBase.Data.t
val uv_stride : t -> int
val alpha : t -> ImageBase.Data.t option
val set_alpha : t -> ImageBase.Data.t option -> unit
val size : t -> int
val ensure_alpha : t -> unit
val fill : t -> ImageBase.Pixel.yuv -> unit
val fill_alpha : t -> int -> unit
val blank : t -> unit
val blank_all : t -> unit
val make : int -> int -> ?alpha:ImageBase.Data.t -> ImageBase.Data.t -> int -> ImageBase.Data.t -> ImageBase.Data.t -> int -> t
val make_data : int -> int -> (int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t -> int -> int -> t
val align : int
val default_stride : int -> int option -> int option -> int * int
val create : ?blank:bool -> ?y_stride:int -> ?uv_stride:int -> int -> int -> t
val has_alpha : t -> bool
val remove_alpha : t -> unit
val of_YUV420_string : ?y_stride:int -> ?uv_stride:int -> string -> int -> int -> t
val of_RGB24_string : string -> int -> t
val of_RGBA32 : RGBA32.t -> t
val to_RGBA32 : t -> RGBA32.t
val of_PPM : string -> t
val to_BMP : t -> string
val copy : t -> t
val blit_all : t -> t -> unit
val blit : t -> t -> unit
val randomize : t -> unit
val add : t -> ?x:int -> ?y:int -> t -> unit
val set_pixel_rgba : t -> int -> int -> (int * int * int * int) -> unit
val get_pixel_y : t -> int -> int -> int
val get_pixel_u : t -> int -> int -> int
val get_pixel_v : t -> int -> int -> int
val get_pixel_a : t -> int -> int -> int
val get_pixel_rgba : t -> int -> int -> ImageBase.Pixel.rgba
val of_bitmap : ?fg:(int * int * int * int) -> ?bg:(int * int * int * int) -> Bitmap.t -> t
val to_int_image : t -> int array array
val scale_full : t -> t -> unit
val scale_coef : t -> t -> (int * int) -> (int * int) -> unit

scale_coef src dst (xn,xd) (yn,yd) scales src into dst multiplying x dimension by xn/xd and y dimension by yn/yd.

val scale_proportional : t -> t -> unit
val scale : ?proportional:bool -> t -> t -> unit
val rotate : t -> int -> int -> float -> t -> unit
val is_opaque : t -> bool
val optimize_alpha : t -> unit
val alpha_to_y : t -> unit
val scale_alpha : t -> float -> unit
val disk_alpha : t -> int -> int -> int -> unit
val box_alpha : t -> int -> int -> int -> int -> float -> unit
val alpha_of_color : t -> (int * int * int) -> int -> unit
val alpha_of_sameness : t -> t -> int -> unit
val alpha_of_diff : t -> t -> int -> int -> unit
val gradient_uv : t -> (int * int) -> (int * int) -> (int * int) -> unit
val hmirror : t -> unit
module Effect : sig ... end
OCaml

Innovation. Community. Security.