YUVAPixmapInfo.SupportedDataTypes

class SupportedDataTypes

Methods

All

All() -> skia.YUVAPixmapInfo.SupportedDataTypes

__init__

__init__(self: skia.YUVAPixmapInfo.SupportedDataTypes) -> None

enableDataType

enableDataType(self: skia.YUVAPixmapInfo.SupportedDataTypes, dataType: skia.YUVAPixmapInfo.DataType, numChannels: int) -> None

supported

supported(self: skia.YUVAPixmapInfo.SupportedDataTypes, planarConfig: skia.YUVAInfo.PlaneConfig, dataType: skia.YUVAPixmapInfo.DataType) -> bool

Methods

static SupportedDataTypes.All() skia.YUVAPixmapInfo.SupportedDataTypes

All legal combinations of PlanarConfig and DataType are supported.

SupportedDataTypes.__init__(self: skia.YUVAPixmapInfo.SupportedDataTypes) None

Defaults to nothing supported.

SupportedDataTypes.enableDataType(self: skia.YUVAPixmapInfo.SupportedDataTypes, dataType: skia.YUVAPixmapInfo.DataType, numChannels: int) None

Update to add support for pixmaps with numChannel channels where each channel is represented as DataType.

SupportedDataTypes.supported(self: skia.YUVAPixmapInfo.SupportedDataTypes, planarConfig: skia.YUVAInfo.PlaneConfig, dataType: skia.YUVAPixmapInfo.DataType) bool

Checks whether there is a supported combination of color types for planes structured as indicated by PlanarConfig with channel data types as indicated by DataType.