Module Avutil.Color_space

Colour spaces (the matrix between YUV and RGB).

type t = [
  1. | `Rgb
  2. | `Bt709
  3. | `Unspecified
  4. | `Reserved
  5. | `Fcc
  6. | `Bt470bg
  7. | `Smpte170m
  8. | `Smpte240m
  9. | `Ycgco
  10. | `Ycocg
  11. | `Bt2020_ncl
  12. | `Bt2020_cl
  13. | `Smpte2085
  14. | `Chroma_derived_ncl
  15. | `Chroma_derived_cl
  16. | `Ictcp
  17. | `Ipt_c2
  18. | `Ycgco_re
  19. | `Ycgco_ro
]

The colour spaces, as a variant generated from FFmpeg's headers at build time.

val name : t -> string

FFmpeg's name of the value, and the empty string when FFmpeg has none.

val from_name : string -> t option

from_name s is the value named s. A string that is exactly the name name gives for a constructor converts to that constructor; any other string goes through FFmpeg's own lookup, which may match a prefix. None when FFmpeg does not know s, and when it knows it as a value this type has no constructor for.