Type Definition skia_safe::yuva_pixmap_info::SupportedDataTypes
source · pub type SupportedDataTypes = Handle<SkYUVAPixmapInfo_SupportedDataTypes>;
Implementations§
source§impl SupportedDataTypes
impl SupportedDataTypes
sourcepub fn from_context(context: &RecordingContext) -> Self
pub fn from_context(context: &RecordingContext) -> Self
Init based on texture formats supported by the context.
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.