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 |
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 Type | Description |
kChannelTypeSNormInt8 | Each channel component is a normalized signed 8-bit integer value. |
kChannelTypeSNormInt16 | Each channel component is a normalized signed 16-bit integer value. |
kChannelTypeUNormInt8 | Each channel component is a normalized unsigned 8-bit integer value. |
kChannelTypeUNormInt16 | Each channel component is a normalized unsigned 16-bit integer value. |
kChannelTypeUNormShort565 | Represents a normalized 5-6-5 3-channel RGB image. The channel order must be kChannelOrderRGB. |
kChannelTypeUNormShort555 | Represents a normalized x-5-5-5 4-channel xRGB image. The channel order must be kChannelOrderRGB. |
kChannelTypeUNormInt101010 | Represents a normalized x-10-10-10 4-channel xRGB image. The channel order must be kChannelOrderRGB. |
kChannelTypeSignedInt8 | Each channel component is an unnormalized signed 8-bit integer value. |
kChannelTypeSignedInt16 | Each channel component is an unnormalized signed 16-bit integer value. |
kChannelTypeSignedInt32 | Each channel component is an unnormalized signed 32-bit integer value. |
kChannelTypeUnsignedInt8 | Each channel component is an unnormalized unsigned 8-bit integer value. |
kChannelTypeUnsignedInt16 | Each channel component is an unnormalized unsigned 16-bit integer value. |
kChannelTypeUnsignedInt32 | Each channel component is an unnormalized unsigned 32-bit integer value. |
kChannelTypeHalfFloat | Each channel component is a 16-bit half-float value. |
kChannelTypeFloat | Each channel component is a single precision floating-point value. |
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 |
Valid values are described in the table below.
Format | Description |
kChannelOrderR, or kChannelOrderA | |
kChannelOrderIntensity | This format can only be used if channel data type = kChannelTypeUNormInt8, kChannelTypeUNormInt16, kChannelTypeSNormInt8, kChannelTypeSNormInt16, kChannelTypeHalfFloat, or kChannelTypeFloat. |
kChannelOrderLuminance | This format can only be used if channel data type = kChannelTypeUNormInt8, kChannelTypeUNormInt16, kChannelTypeSNormInt8, kChannelTypeSNormInt16, kChannelTypeHalfFloat, or kChannelTypeFloat. |
kChannelOrderRG, or kChannelOrderRA | |
kChannelOrderRGB | This 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. |
The items on this page are in the following plugins: MBS MacFrameworks Plugin.