Platforms to show: All Mac Windows Linux Cross-Platform
CLImageFormatMBS class Deprecated
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | OpenCL | MBS MacFrameworks Plugin | 11.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This item is deprecated and should no longer be used.
the OpenCL class for an image format.- 2 properties
- property ImageChannelDataType as Integer
- property ImageChannelOrder as Integer
- 25 constants
Channel Order Constants
Constant | Value | Description |
---|---|---|
kChannelOrderA | &h10B1 | |
kChannelOrderARGB | &h10B7 | |
kChannelOrderBGRA | &h10B6 | |
kChannelOrderIntensity | &h10B8 |
This format can only be used if channel data type = kChannelTypeUNormInt8, kChannelTypeUNormInt16, kChannelTypeSNormInt8, kChannelTypeSNormInt16, kChannelTypeHalfFloat, or kChannelTypeFloat. |
kChannelOrderLuminance | &h10B9 |
This format can only be used if channel data type = kChannelTypeUNormInt8, kChannelTypeUNormInt16, kChannelTypeSNormInt8, kChannelTypeSNormInt16, kChannelTypeHalfFloat, or kChannelTypeFloat. |
kChannelOrderR | &h10B0 | |
kChannelOrderRA | &h10B3 | |
kChannelOrderRG | &h10B2 | |
kChannelOrderRGB | &h10B4 |
This format can only be used if channel data type = kChannelTypeUNormShort565, kChannelTypeUNormShort555 or kChannelTypeUNormInt101010. |
kChannelOrderRGBA | &h10B5 |
Channel data type constants
Constant | Value | Description |
---|---|---|
kChannelTypeFloat | &h10DE |
Each channel component is a single precision floating-point value. |
kChannelTypeHalfFloat | &h10DD |
Each channel component is a 16-bit half-float value. |
kChannelTypeSignedInt16 | &h10D8 |
Each channel component is an unnormalized signed 16-bit integer value. |
kChannelTypeSignedInt32 | &h10D9 |
Each channel component is an unnormalized signed 32-bit integer value. |
kChannelTypeSignedInt8 | &h10D7 |
Each channel component is an unnormalized signed 8-bit integer value. |
kChannelTypeSNormInt16 | &h10D1 |
Each channel component is a normalized signed 16-bit integer value. |
kChannelTypeSNormInt8 | &h10D0 |
Each channel component is a normalized signed 8-bit integer value. |
kChannelTypeUNormInt101010 | &h10D6 |
Represents a normalized x-10-10-10 4-channel xRGB image. The channel order must be kChannelOrderRGB. |
kChannelTypeUNormInt16 | &h10D3 |
Each channel component is a normalized unsigned 16-bit integer value. |
kChannelTypeUNormInt8 | &h10D2 |
Each channel component is a normalized unsigned 8-bit integer value. |
kChannelTypeUNormShort555 | &h10D5 |
Represents a normalized x-5-5-5 4-channel xRGB image. The channel order must be kChannelOrderRGB. |
kChannelTypeUNormShort565 | &h10D4 |
Represents a normalized 5-6-5 3-channel RGB image. The channel order must be kChannelOrderRGB. |
kChannelTypeUnsignedInt16 | &h10DB |
Each channel component is an unnormalized unsigned 16-bit integer value. |
kChannelTypeUnsignedInt32 | &h10DC |
Each channel component is an unnormalized unsigned 32-bit integer value. |
kChannelTypeUnsignedInt8 | &h10DA |
Each channel component is an unnormalized unsigned 8-bit integer value. |
This class has no sub classes.
Some methods using this class:
- CLContextMBS.GetSupportedImageFormats(flags as UInt64, type as UInt32) as CLImageFormatMBS()
- CLMemMBS.Constructor(Context as CLContextMBS, Flags as UInt64, ImageFormat as CLImageFormatMBS, Width as Integer, Height as Integer, Depth as Integer, RowPitch as Integer, SlicePitch as Integer, HostPtr as Memoryblock = nil)
- CLMemMBS.Constructor(Context as CLContextMBS, Flags as UInt64, ImageFormat as CLImageFormatMBS, Width as Integer, Height as Integer, RowPitch as Integer, HostPtr as Memoryblock = nil)
- CLMemMBS.ImageFormat as CLImageFormatMBS
- OpenCLMBS.GetPictureImageFormat(pic as picture, byref RowPitch as Integer) as CLImageFormatMBS
Some examples using this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.