package mm

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

Install

Dune Dependency

Authors

Maintainers

Sources

v0.7.2.tar.gz
md5=c402e924951cc299541bae67fb413440
sha512=a8bffa9cd9b1b42c05c6d6af11648162d4189afe2a36a93883e08d7260f6cbe7fa6f3ca6582434eb9a20746a7004684474516990127bad017e12f2c7e4abeb53

doc/mm.image/Mm_image/Image/YUV420/index.html

Module Image.YUV420Source

Operations on images stored in YUV420 format, ie one luma (Y) and two chrominance (U and V) channels.

Sourcetype t

An image in YUV420 format.

Sourceval make : int -> int -> Data.t -> int -> Data.t -> Data.t -> int -> t
Sourceval make_data : int -> int -> Data.t -> int -> int -> t
Sourceval create : ?y_stride:int -> ?uv_stride:int -> int -> int -> t
Sourceval ensure_alpha : t -> unit

Ensure that the image has an alpha channel.

Sourceval remove_alpha : t -> unit
Sourceval of_YUV420_string : ?y_stride:int -> ?uv_stride:int -> string -> int -> int -> t
Sourceval of_RGB24_string : string -> int -> t
Sourceval of_RGBA32 : RGBA32.t -> t
Sourceval to_RGBA32 : t -> RGBA32.t
Sourceval of_PPM : string -> t
Sourceval width : t -> int

Width of an image.

Sourceval height : t -> int

Height of an image.

Sourceval y : t -> Data.t
Sourceval y_stride : t -> int
Sourceval u : t -> Data.t
Sourceval v : t -> Data.t
Sourceval uv_stride : t -> int
Sourceval data : t -> Data.t * Data.t * Data.t
Sourceval alpha : t -> Data.t option
Sourceval set_alpha : t -> Data.t option -> unit
Sourceval dimensions : t -> int * int
Sourceval size : t -> int

Size in bytes.

Sourceval has_alpha : t -> bool

Whether the image has an alpha channel.

Sourceval copy : t -> t
Sourceval blit_all : t -> t -> unit
Sourceval blit : t -> t -> unit
Sourceval scale : ?proportional:bool -> t -> t -> unit
Sourceval blank_all : t -> unit
Sourceval add : t -> ?x:int -> ?y:int -> t -> unit

Add the fist image to the second.

Sourceval blank : t -> unit
Sourceval fill : t -> Pixel.yuv -> unit
Sourceval fill_alpha : t -> int -> unit
Sourceval disk_alpha : t -> int -> int -> int -> unit
Sourceval box_alpha : t -> int -> int -> int -> int -> float -> unit
Sourceval randomize : t -> unit
Sourceval get_pixel_y : t -> int -> int -> int
Sourceval get_pixel_u : t -> int -> int -> int
Sourceval get_pixel_v : t -> int -> int -> int
Sourceval get_pixel_rgba : t -> int -> int -> Pixel.rgba
Sourceval set_pixel_rgba : t -> int -> int -> Pixel.rgba -> unit
Sourceval to_int_image : t -> int array array

Convert to format useable by Graphics.make_image.

Sourcemodule Effect : sig ... end
OCaml

Innovation. Community. Security.