Module yuva_pixmap_info
Expand description
Data types and supported data types for the planes of a crate::YUVAPixmapInfo.
Enums§
- Data
Type - Plane
Config - Subsampling
- UV subsampling is also specified in the enum value names using J:a:b notation (e.g. 4:2:0 is
1/2 horizontal and 1/2 vertical resolution for U and V). If alpha is present it is not sub-
sampled. Note that Subsampling values other than k444 are only valid with
PlaneConfigvalues that have U and V in different planes than Y (and A, if present), with the exception ofPlaneConfig::YUYVwhich represents packed 4:2:2 and is only valid withSubsampling::S422.
Functions§
- default_
color_ type_ for_ data_ type - Gets the default
ColorTypeto use withnum_channelschannels, each represented asDataType. ReturnsColorType::Unknownif no such color type. - num_
channels_ and_ data_ type - If the
ColorTypeis supported for YUVA pixmaps this will return the number of YUVA channels that can be stored in a plane of this color type and what theDataTypeis of those channels. If theColorTypeis not supported as a YUVA plane the number of channels is reported as 0 and theDataTypereturned should be ignored.