Platforms to show: All Mac Windows Linux Cross-Platform

Back to CLImageFormatMBS class.

CLImageFormatMBS.ImageChannelDataType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property OpenCL MBS MacFrameworks Plugin 11.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Describes the size of the channel data type.

The number of bits per element determined by the ImageChannelDataType and ImageChannelOrder must be a power of two. The list of supported values is described in the table below.

Image Channel Data TypeDescription
kChannelTypeSNormInt8Each channel component is a normalized signed 8-bit integer value.
kChannelTypeSNormInt16Each channel component is a normalized signed 16-bit integer value.
kChannelTypeUNormInt8Each channel component is a normalized unsigned 8-bit integer value.
kChannelTypeUNormInt16Each channel component is a normalized unsigned 16-bit integer value.
kChannelTypeUNormShort565Represents a normalized 5-6-5 3-channel RGB image. The channel order must be kChannelOrderRGB.
kChannelTypeUNormShort555Represents a normalized x-5-5-5 4-channel xRGB image. The channel order must be kChannelOrderRGB.
kChannelTypeUNormInt101010Represents a normalized x-10-10-10 4-channel xRGB image. The channel order must be kChannelOrderRGB.
kChannelTypeSignedInt8Each channel component is an unnormalized signed 8-bit integer value.
kChannelTypeSignedInt16Each channel component is an unnormalized signed 16-bit integer value.
kChannelTypeSignedInt32Each channel component is an unnormalized signed 32-bit integer value.
kChannelTypeUnsignedInt8Each channel component is an unnormalized unsigned 8-bit integer value.
kChannelTypeUnsignedInt16Each channel component is an unnormalized unsigned 16-bit integer value.
kChannelTypeUnsignedInt32Each channel component is an unnormalized unsigned 32-bit integer value.
kChannelTypeHalfFloatEach channel component is a 16-bit half-float value.
kChannelTypeFloatEach channel component is a single precision floating-point value.
(Read and Write property)

CLImageFormatMBS.ImageChannelOrder as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property OpenCL MBS MacFrameworks Plugin 11.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Specifies the number of channels and the channel layout i.e. the memory layout in which channels are stored in the image.

Valid values are described in the table below.

FormatDescription
kChannelOrderR, or kChannelOrderA
kChannelOrderIntensityThis format can only be used if channel data type = kChannelTypeUNormInt8, kChannelTypeUNormInt16, kChannelTypeSNormInt8, kChannelTypeSNormInt16, kChannelTypeHalfFloat, or kChannelTypeFloat.
kChannelOrderLuminanceThis format can only be used if channel data type = kChannelTypeUNormInt8, kChannelTypeUNormInt16, kChannelTypeSNormInt8, kChannelTypeSNormInt16, kChannelTypeHalfFloat, or kChannelTypeFloat.
kChannelOrderRG, or kChannelOrderRA
kChannelOrderRGBThis format can only be used if channel data type = kChannelTypeUNormShort565, kChannelTypeUNormShort555 or kChannelTypeUNormInt101010.
kChannelOrderRGBA
kChannelOrderARGB, kChannelOrderBGRA.This format can only be used if channel data type = kChannelTypeUNormInt8, kChannelTypeSNormInt8, kChannelTypeSignedInt8 or kChannelTypeUnsignedInt8.
(Read and Write property)

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...