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/Pixel/index.html

Module Generic.PixelSource

Generic pixels.

Sourcetype rgb_format =
  1. | RGB24
    (*

    24 bit RGB. Each color is an uint8_t. Color order is RGBRGB

    *)
  2. | BGR24
    (*

    24 bit BGR. Each color is an uint8_t. Color order is BGRBGR

    *)
  3. | RGB32
    (*

    32 bit RGB. Each color is an uint8_t. Color order is RGBXRGBX, where X is unused

    *)
  4. | BGR32
    (*

    32 bit BGR. Each color is an uint8_t. Color order is BGRXBGRX, where X is unused

    *)
  5. | RGBA32
    (*

    32 bit RGBA. Each color is an uint8_t. Color order is RGBARGBA

    *)

Format of an RGB pixel.

Sourcetype yuv_format =
  1. | YUV422
    (*

    Planar YCbCr 4:2:2. Each component is an uint8_t

    *)
  2. | YUV444
    (*

    Planar YCbCr 4:4:4. Each component is an uint8_t

    *)
  3. | YUV411
    (*

    Planar YCbCr 4:1:1. Each component is an uint8_t

    *)
  4. | YUV410
    (*

    Planar YCbCr 4:1:0. Each component is an uint8_t

    *)
  5. | YUVJ420
    (*

    Planar YCbCr 4:2:0. Each component is an uint8_t, luma and chroma values are full range (0x00 .. 0xff)

    *)
  6. | YUVJ422
    (*

    Planar YCbCr 4:2:2. Each component is an uint8_t, luma and chroma values are full range (0x00 .. 0xff)

    *)
  7. | YUVJ444
    (*

    Planar YCbCr 4:4:4. Each component is an uint8_t, luma and chroma values are full range (0x00 .. 0xff)

    *)

Format of a YUV pixel.

Sourcetype format =
  1. | RGB of rgb_format
  2. | YUV of yuv_format

Format of a pixel.

Sourceval string_of_format : format -> string

String representation of the format of a pixel.

OCaml

Innovation. Community. Security.