skia_safe::yuva_pixmap_info

Type Alias SupportedDataTypes

Source
pub type SupportedDataTypes = Handle<SkYUVAPixmapInfo_SupportedDataTypes>;

Aliased Type§

struct SupportedDataTypes(/* private fields */);

Implementations§

Source§

impl SupportedDataTypes

Source

pub fn all() -> Self

All legal combinations of PlaneConfig and DataType are supported.

Source

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.

Source

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.

Trait Implementations§

Source§

impl Debug for SupportedDataTypes

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SupportedDataTypes

Source§

fn default() -> Self

Defaults to nothing supported.

Source§

impl Send for SupportedDataTypes

Source§

impl Sync for SupportedDataTypes