API Reference

Module

Basic Types

YUVColorTypes.TransparentYUVType
TransparentYUV{C<:AbstractYUV,T} = TransparentColor{C,T,4}

An alias of abstract type TransparentColor for transparent YUV-like colors.

source
Missing docstring.

Missing docstring for AbstractAYUV. Check Documenter's build log for details.

Missing docstring.

Missing docstring for AbstractYUVA. Check Documenter's build log for details.

Missing docstring.

Missing docstring for `AbstractYUVColorant

YUVColorTypes.YUVType
YUV{T,P,U,R,D} <: AbsrtractYUV{T}
  • T: component type
  • P: symbol of profile
  • U: unsigned chroma components if true
  • R: full range if true
  • D: bit-depth

See also AYUV and YUVA for transparent versions, and Luma for the single Y component version.

source
YUVColorTypes.LumaType
Luma{T,P,U,R,D} <: AbstractLuma{T}

The single Y component, i.e. grayscale version of a YUV-like color.

source

Specific YCbCr Types (Aliases)

YUVColorTypes.YCbCr30BT601_625Type
YCbCr30BT601_625{T}

10-bit representation of the 625-line BT.601 YCbCr color type. Its raw components of type T usually have a value in [0, 1024).

source
YUVColorTypes.YCbCr30BT601_525Type
YCbCr30BT601_525{T}

10-bit representation of the 525-line BT.601 YCbCr color type. Its raw components of type T usually have a value in [0, 1024).

source

Functions

YUVColorTypes.lumaFunction
luma(c)

Return the luma component of a YUV-like color. To avoid confusion, this function does not support ColorTypes.YCbCr and its variants, which are not under the AbstractYUV.

source
YUVColorTypes.chroma_bFunction
chroma_b(c)

Return the Cb component of a YCbCr color. For general YUV-like colors, use chroma_u. To avoid confusion, this function does not support ColorTypes.YCbCr and its variants, which are not under the AbstractYUV.

source
YUVColorTypes.chroma_rFunction
chroma_r(c)

Return the Cr component of a YCbCr color. For general YUV-like colors, use chroma_v. To avoid confusion, this function does not support ColorTypes.YCbCr and its variants, which are not under the AbstractYUV.

source
YUVColorTypes.rgb_to_yuvFunction
rgb_to_yuv(C, rgb::AbstractRGB) -> C
rgb_to_yuv(C, argb::TransparentRGB) -> C

Convert an RGB color to a YUV color. The color primaries, whitepoint and gamma are depends on the YUV color type. If you need sRGB colors, use yuv_to_srgb or simply use convert or RGB constructors.

See also srgb_to_yuv and yuv_to_rgb.

source
YUVColorTypes.yuv_to_rgbFunction
yuv_to_rgb(C, yuv::AbstractYUVColorant) -> C

Convert a YUV color to an RGB color. The color primaries, whitepoint and gamma are depends on the YUV color type. If you need sRGB colors, use yuv_to_srgb or simply use convert or RGB constructors.

See also yuv_to_srgb and rgb_to_yuv .

source