API Reference
Module
YUVColorTypes
— ModuleYUVColorTypes
An add-on libray to ColorTypes
supporting YUV-like colors.
Type Hierarchy
ColorTypes.Color{T,N}
AbstractYUV{T}
AbstractLuma{T}
ColorTypes.AlphaColor{C,T,N}
AbstractAYUV{C,T}
AbstractALuma{C,T}
ColorTypes.ColorAlpha{C,T,N}
AbstractYUVA{C,T}
AbstractLumaA{C,T}
Supported Profiles
Basic Types
YUVColorTypes.AbstractYUV
— TypeAbstractYUV{T} <: Color{T,3}
An abstract type for opaque YUV-like colors.
YUVColorTypes.TransparentYUV
— TypeTransparentYUV{C<:AbstractYUV,T} = TransparentColor{C,T,4}
An alias of abstract type TransparentColor
for transparent YUV-like colors.
Missing docstring for AbstractAYUV
. Check Documenter's build log for details.
Missing docstring for AbstractYUVA
. Check Documenter's build log for details.
Missing docstring for `AbstractYUVColorant
YUVColorTypes.YUV
— TypeYUV{T,P,U,R,D} <: AbsrtractYUV{T}
T
: component typeP
: symbol of profileU
: unsigned chroma components iftrue
R
: full range iftrue
D
: bit-depth
See also AYUV
and YUVA
for transparent versions, and Luma
for the single Y component version.
YUVColorTypes.AYUV
— TypeAYUV{T,P,U,R,D} <: AbstractAYUV{YUV{T,P,U,R,D},T}
YUVColorTypes.YUVA
— TypeYUVA{T,P,U,R,D} <: AbstractYUVA{YUV{T,P,U,R,D},T}
YUVColorTypes.Luma
— TypeLuma{T,P,U,R,D} <: AbstractLuma{T}
The single Y component, i.e. grayscale version of a YUV-like color.
YUVColorTypes.ALuma
— TypeALuma{T,P,U,R,D} <: AbstractALuma{Luma{T,P,U,R,D},T}
YUVColorTypes.LumaA
— TypeLumaA{T,P,U,R,DR,} <: AbstractLumaA{YUV{T,P,U,R,D},T}
Specific YCbCr Types (Aliases)
YUVColorTypes.YCbCrBT601_625
— TypeYCbCrBT601_625{T,D}
The 625-line version of BT.601 YCbCr color type (previously designated PAL).
YUVColorTypes.YCbCr30BT601_625
— TypeYCbCr30BT601_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).
YUVColorTypes.YCbCr24BT601_625
— TypeYCbCr24BT601_625{T}
8-bit representation of the 625-line BT.601 YCbCr color type. Its raw components of type T
usually have a value in [0, 256). See also YCbCr30BT601_625
.
YUVColorTypes.YCbCr36BT601_625
— TypeYCbCr36BT601_625{T}
12-bit representation of the 625-line BT.601 YCbCr color type. Its raw components of type T
usually have a value in [0, 4096). See also YCbCr30BT601_625
.
YUVColorTypes.YCbCr48BT601_625
— TypeYCbCr48BT601_625{T}
16-bit representation of the 625-line BT.601 YCbCr color type. Its raw components of type T
usually have a value in [0, 65536). See also YCbCr30BT601_625
.
YUVColorTypes.YCbCrBT601_525
— TypeYCbCrBT601_525{T,D}
The 525-line version of BT.601 YCbCr color type (previously designated NTSC).
YUVColorTypes.YCbCr30BT601_525
— TypeYCbCr30BT601_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).
YUVColorTypes.YCbCr24BT601_525
— TypeYCbCr24BT601_525{T}
8-bit representation of the 525-line BT.601 YCbCr color type. Its raw components of type T
usually have a value in [0, 256). See also YCbCr30BT601_525
.
YUVColorTypes.YCbCr36BT601_525
— TypeYCbCr36BT601_525{T}
12-bit representation of the 525-line BT.601 YCbCr color type. Its raw components of type T
usually have a value in [0, 4096). See also YCbCr30BT601_525
.
YUVColorTypes.YCbCr48BT601_525
— TypeYCbCr48BT601_525{T}
16-bit representation of the 525-line BT.601 YCbCr color type. Its raw components of type T
usually have a value in [0, 65536). See also YCbCr30BT601_525
.
Functions
YUVColorTypes.luma
— Functionluma(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
.
YUVColorTypes.chroma_u
— Functionchroma_u(c)
Return the first chroma component of a YUV-like color.
YUVColorTypes.chroma_v
— Functionchroma_v(c)
Return the second chroma component of a YUV-like color.
YUVColorTypes.chroma_b
— Functionchroma_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
.
YUVColorTypes.chroma_r
— Functionchroma_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
.
YUVColorTypes.chroma_g
— Functionchroma_g(c)
Return the Cg component of a YCgCo color. For general YUV-like colors, use chroma_u
.
YUVColorTypes.chroma_o
— Functionchroma_o(c)
Return the Co component of an YCgCo color. For general YUV-like colors, use chroma_v
.
YUVColorTypes.rgb_to_yuv
— Functionrgb_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
.
YUVColorTypes.srgb_to_yuv
— Functionsrgb_to_yuv(C, rgb::AbstractRGB) -> C
srgb_to_yuv(C, argb::TransparentRGB) -> C
Convert an sRGB color to a YUV color.
See also rgb_to_yuv
and yuv_to_srgb
.
YUVColorTypes.yuv_to_rgb
— Functionyuv_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
.
YUVColorTypes.yuv_to_srgb
— Functionyuv_to_srgb(C, yuv::AbstractYUVColorant) -> C
Convert a YUV color to an sRGB color.
See also yuv_to_rgb
and srgb_to_yuv
.