package mm

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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.