Function default_color_type_for_data_type

pub fn default_color_type_for_data_type(
    dt: SkYUVAPixmapInfo_DataType,
    num_channels: usize,
) -> ColorType
Expand description

Gets the default ColorType to use with num_channels channels, each represented as DataType. Returns ColorType::Unknown if no such color type.