package mm

  1. Overview
  2. Docs
The mm library contains high-level APIs to create and manipulate multimedia streams (audio, video, MIDI)

Install

Dune Dependency

Authors

Maintainers

Sources

v0.8.5.tar.gz
md5=d2468f8ceecf97dd76a507bf94eba326
sha512=c5b8289d3603fa7d6adb3688bce539ae45ff920c1b587001b2c81ffabf4397f090d4de5c89d8d5251f0eb0b8a7b36ce0104a5a8001dcbfe82e0fbca30f965c64

doc/mm.image/Mm_image/ImageGeneric/index.html

Module Mm_image.ImageGenericSource

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

Innovation. Community. Security.