Package com.jogamp.opencl
Enum CLImageFormat.ChannelType
- java.lang.Object
-
- java.lang.Enum<CLImageFormat.ChannelType>
-
- com.jogamp.opencl.CLImageFormat.ChannelType
-
- All Implemented Interfaces:
Serializable
,Comparable<CLImageFormat.ChannelType>
- Enclosing class:
- CLImageFormat
public static enum CLImageFormat.ChannelType extends Enum<CLImageFormat.ChannelType>
Describes the size of the channel data type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLOAT
Each channel component is a single precision floating-point value.HALF_FLOAT
Each channel component is a 16-bit half-float value.SIGNED_INT16
Each channel component is an unnormalized signed 16-bit integer value.SIGNED_INT32
Each channel component is an unnormalized signed 32-bit integer value.SIGNED_INT8
Each channel component is an unnormalized signed 8-bit integer value.SNORM_INT16
Each channel component is a normalized signed 16-bit integer value.SNORM_INT8
Each channel component is a normalized signed 8-bit integer value.UNORM_INT_101010
Represents a normalized x-10-10-10 4-channel xRGB image.UNORM_INT16
Each channel component is a normalized unsigned 16-bit integer value.UNORM_INT8
Each channel component is a normalized unsigned 8-bit integer value.UNORM_SHORT_555
Represents a normalized x-5-5-5 4-channel xRGB image.UNORM_SHORT_565
Represents a normalized 5-6-5 3-channel RGB image.UNSIGNED_INT16
Each channel component is an unnormalized unsigned 16-bit integer value.UNSIGNED_INT32
Each channel component is an unnormalized unsigned 32-bit integer value.UNSIGNED_INT8
Each channel component is an unnormalized unsigned 8-bit integer value.
-
Field Summary
Fields Modifier and Type Field Description int
TYPE
Value of wrapped OpenCL flag.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CLImageFormat.ChannelType
valueOf(int channelFlag)
Returns the enum constant of this type with the specified name.static CLImageFormat.ChannelType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CLImageFormat.ChannelType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SNORM_INT8
public static final CLImageFormat.ChannelType SNORM_INT8
Each channel component is a normalized signed 8-bit integer value.
-
SNORM_INT16
public static final CLImageFormat.ChannelType SNORM_INT16
Each channel component is a normalized signed 16-bit integer value.
-
UNORM_INT8
public static final CLImageFormat.ChannelType UNORM_INT8
Each channel component is a normalized unsigned 8-bit integer value.
-
UNORM_INT16
public static final CLImageFormat.ChannelType UNORM_INT16
Each channel component is a normalized unsigned 16-bit integer value.
-
UNORM_SHORT_565
public static final CLImageFormat.ChannelType UNORM_SHORT_565
Represents a normalized 5-6-5 3-channel RGB image. The channel order must beCLImageFormat.ChannelOrder.RGB
.
-
UNORM_SHORT_555
public static final CLImageFormat.ChannelType UNORM_SHORT_555
Represents a normalized x-5-5-5 4-channel xRGB image. The channel order must beCLImageFormat.ChannelOrder.RGB
.
-
UNORM_INT_101010
public static final CLImageFormat.ChannelType UNORM_INT_101010
Represents a normalized x-10-10-10 4-channel xRGB image. The channel order must beCLImageFormat.ChannelOrder.RGB
.
-
SIGNED_INT8
public static final CLImageFormat.ChannelType SIGNED_INT8
Each channel component is an unnormalized signed 8-bit integer value.
-
SIGNED_INT16
public static final CLImageFormat.ChannelType SIGNED_INT16
Each channel component is an unnormalized signed 16-bit integer value.
-
SIGNED_INT32
public static final CLImageFormat.ChannelType SIGNED_INT32
Each channel component is an unnormalized signed 32-bit integer value.
-
UNSIGNED_INT8
public static final CLImageFormat.ChannelType UNSIGNED_INT8
Each channel component is an unnormalized unsigned 8-bit integer value.
-
UNSIGNED_INT16
public static final CLImageFormat.ChannelType UNSIGNED_INT16
Each channel component is an unnormalized unsigned 16-bit integer value.
-
UNSIGNED_INT32
public static final CLImageFormat.ChannelType UNSIGNED_INT32
Each channel component is an unnormalized unsigned 32-bit integer value.
-
HALF_FLOAT
public static final CLImageFormat.ChannelType HALF_FLOAT
Each channel component is a 16-bit half-float value.
-
FLOAT
public static final CLImageFormat.ChannelType FLOAT
Each channel component is a single precision floating-point value.
-
-
Method Detail
-
values
public static CLImageFormat.ChannelType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CLImageFormat.ChannelType c : CLImageFormat.ChannelType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CLImageFormat.ChannelType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
public static CLImageFormat.ChannelType valueOf(int channelFlag)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
channelFlag
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-