Enum ImageChannelDataType
- java.lang.Object
-
- java.lang.Enum<ImageChannelDataType>
-
- net.haesleinhuepf.clij.clearcl.enums.ImageChannelDataType
-
- All Implemented Interfaces:
Serializable,Comparable<ImageChannelDataType>
public enum ImageChannelDataType extends Enum<ImageChannelDataType>
OpenCL image channel data type- Author:
- royer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FloatHalfFloatSignedInt16SignedInt32SignedInt8SignedNormalizedInt16SignedNormalizedInt8UnsignedInt16UnsignedInt32UnsignedInt8UnsignedNormalizedInt16UnsignedNormalizedInt8
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description net.haesleinhuepf.clij.coremem.enums.NativeTypeEnumgetNativeType()Return correspodning native type.booleanisFloat()Returns true if this is a float channel data type.booleanisInteger()Returns true if this is an integer channel data type.booleanisNormalized()Returns true if this image channel data type is normalizedbooleanisSigned()Returns true if this is channel data type has a sign.booleanisUnSigned()Returns true if this is channel data type is unsigned.static ImageChannelDataTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ImageChannelDataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SignedNormalizedInt8
public static final ImageChannelDataType SignedNormalizedInt8
-
SignedNormalizedInt16
public static final ImageChannelDataType SignedNormalizedInt16
-
UnsignedNormalizedInt8
public static final ImageChannelDataType UnsignedNormalizedInt8
-
UnsignedNormalizedInt16
public static final ImageChannelDataType UnsignedNormalizedInt16
-
SignedInt8
public static final ImageChannelDataType SignedInt8
-
SignedInt16
public static final ImageChannelDataType SignedInt16
-
SignedInt32
public static final ImageChannelDataType SignedInt32
-
UnsignedInt8
public static final ImageChannelDataType UnsignedInt8
-
UnsignedInt16
public static final ImageChannelDataType UnsignedInt16
-
UnsignedInt32
public static final ImageChannelDataType UnsignedInt32
-
HalfFloat
public static final ImageChannelDataType HalfFloat
-
Float
public static final ImageChannelDataType Float
-
-
Method Detail
-
values
public static ImageChannelDataType[] 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 (ImageChannelDataType c : ImageChannelDataType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ImageChannelDataType 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
-
getNativeType
public net.haesleinhuepf.clij.coremem.enums.NativeTypeEnum getNativeType()
Return correspodning native type.- Returns:
- native type.
-
isNormalized
public boolean isNormalized()
Returns true if this image channel data type is normalized- Returns:
- true if normalized, false otherwise
-
isFloat
public boolean isFloat()
Returns true if this is a float channel data type.- Returns:
- true if float data type, false otherwise
-
isInteger
public boolean isInteger()
Returns true if this is an integer channel data type.- Returns:
- true if integer data type, false otherwise
-
isSigned
public boolean isSigned()
Returns true if this is channel data type has a sign.- Returns:
- true if data type has sign, false otherwise
-
isUnSigned
public boolean isUnSigned()
Returns true if this is channel data type is unsigned.- Returns:
- true if data type is unsigned, false otherwise
-
-