pub type SupportedDataTypes = Handle<SkYUVAPixmapInfo_SupportedDataTypes>;
Aliased Type§
struct SupportedDataTypes(/* private fields */);
Implementations§
Source§impl SupportedDataTypes
impl SupportedDataTypes
Sourcepub fn all() -> Self
pub fn all() -> Self
All legal combinations of PlaneConfig and DataType are supported.
Sourcepub fn supported(&self, pc: PlaneConfig, dt: DataType) -> bool
pub fn supported(&self, pc: PlaneConfig, dt: DataType) -> bool
Checks whether there is a supported combination of color types for planes structured as indicated by PlaneConfig with channel data types as indicated by DataType.
Sourcepub fn enable_data_type(&mut self, dt: DataType, num_channels: usize)
pub fn enable_data_type(&mut self, dt: DataType, num_channels: usize)
Update to add support for pixmaps with num_channels
channels where each channel is
represented as DataType.