Skia
2D Graphics Library
SkYUVAPixmapInfo::SupportedDataTypes Class Reference

#include <SkYUVAPixmaps.h>

Public Member Functions

constexpr SupportedDataTypes ()=default
 Defaults to nothing supported. More...
 
constexpr bool supported (PlaneConfig, DataType) const
 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. More...
 
void enableDataType (DataType, int numChannels)
 Update to add support for pixmaps with numChannel channels where each channel is represented as DataType. More...
 

Static Public Member Functions

static constexpr SupportedDataTypes All ()
 All legal combinations of PlaneConfig and DataType are supported. More...
 

Constructor & Destructor Documentation

◆ SupportedDataTypes()

constexpr SkYUVAPixmapInfo::SupportedDataTypes::SupportedDataTypes ( )
constexprdefault

Defaults to nothing supported.

Member Function Documentation

◆ All()

constexpr SkYUVAPixmapInfo::SupportedDataTypes SkYUVAPixmapInfo::SupportedDataTypes::All ( )
staticconstexpr

All legal combinations of PlaneConfig and DataType are supported.

◆ enableDataType()

void SkYUVAPixmapInfo::SupportedDataTypes::enableDataType ( DataType  ,
int  numChannels 
)

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

◆ supported()

constexpr bool SkYUVAPixmapInfo::SupportedDataTypes::supported ( PlaneConfig  config,
DataType  type 
) const
constexpr

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.


The documentation for this class was generated from the following file: