com.jogamp.opencl
Enum CLImageFormat.ChannelType

java.lang.Object
  extended by java.lang.Enum<CLImageFormat.ChannelType>
      extended by 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
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
 int TYPE
          Value of wrapped OpenCL flag.
 
Method Summary
static CLImageFormat.ChannelType valueOf(int channelFlag)
           
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 be CLImageFormat.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 be CLImageFormat.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 be CLImageFormat.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.

Field Detail

TYPE

public final int TYPE
Value of wrapped OpenCL flag.

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 name
NullPointerException - if the argument is null

valueOf

public static CLImageFormat.ChannelType valueOf(int channelFlag)