package tiny_libs

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

Module YuvSource

Sourcetype range =
  1. | Full
  2. | Studio
Sourceval of_rgb : range -> (int * int * int) -> int * int * int
Sourceval to_rgb : range -> (int * int * int) -> int * int * int
Sourcetype chroma =
  1. | C420
  2. | C444
Sourcetype planes = {
  1. width : int;
  2. height : int;
  3. chroma : chroma;
  4. y : Bytes.t;
  5. cb : Bytes.t;
  6. cr : Bytes.t;
}
Sourceval chroma_size : chroma -> width:int -> height:int -> int * int
Sourceval of_image : range -> chroma -> Rgba_image.t -> planes
Sourceval to_image : range -> planes -> Rgba_image.t