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.6.tar.gz
md5=003b6e873fe6158dda4627bb674fb57b
sha512=c486e8eaa5dd25a2629c9486c4048ffa2cdeae9e56f73bc8d01a86413038dd3473ebd383abb06f08a2a24a78a335f22aede98ac92436e42a9c6eb1a856f92dab

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

Module Image.GenericSource

Operations on images in generic formats (many formats are supported).

Sourceexception Not_implemented

Since the module is very generic, many of the functions are not implemented for particular formats. This exception is raised when it is the case.

Sourcemodule Pixel : sig ... end

Generic pixels.

Data contents of an image.

Sourcetype t

An image.

Sourceval width : t -> int

Width of an image.

Sourceval height : t -> int

Height of an image.

Sourceval pixel_format : t -> Pixel.format

Pixel format of an image.

Sourceval make_rgb : Pixel.rgb_format -> ?stride:int -> int -> int -> data -> t

Create a new image of RGB format.

Sourceval rgb_data : t -> data * int

Data and stride of an RGB image.

Sourceval yuv_data : t -> (data * int) * (data * data * int)

Data of a YUV image.

Sourceval of_RGBA32 : RGBA32.t -> t

Create a generic image from an RGBA32 image.

Sourceval to_RGBA32 : t -> RGBA32.t
Sourceval of_YUV420 : YUV420.t -> t

Create a generic image from a YUV420 image.

Sourceval to_YUV420 : t -> YUV420.t
Sourceval blank : t -> unit
Sourceval convert : ?proportional:bool -> ?scale_kind:RGBA32.Scale.kind -> t -> t -> unit

Convert a generic image from a format to another.

OCaml

Innovation. Community. Security.