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.1.tar.gz
md5=948721e8a3e15015eb0b013d9f59f37b
sha512=f78edef4eb03d14c7a77a605241650e4bc2b3fb7ab7cfc37e0ea3acdcae8279ea7538179796ffd007456e2f657fe8335f3d57255e91c4db599c827161e5b92b2

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.