com.jogamp.opencl
Class CLImageFormat

java.lang.Object
  extended by com.jogamp.opencl.CLImageFormat

public final class CLImageFormat
extends Object

Represents the OpenCL image format with its channeltype and order.

Author:
Michael Bien
See Also:
CLContext.getSupportedImage2dFormats(com.jogamp.opencl.CLMemory.Mem[]), CLContext.getSupportedImage3dFormats(com.jogamp.opencl.CLMemory.Mem[])

Nested Class Summary
static class CLImageFormat.ChannelOrder
          Specifies the number of channels and the channel layout i.e.
static class CLImageFormat.ChannelType
          Describes the size of the channel data type.
 
Constructor Summary
CLImageFormat(CLImageFormat.ChannelOrder order, CLImageFormat.ChannelType type)
           
 
Method Summary
 boolean equals(Object obj)
           
 CLImageFormatImpl getFormatImpl()
          Returns the struct accessor for the cl_image_format struct.
 CLImageFormat.ChannelType getImageChannelDataType()
           
 CLImageFormat.ChannelOrder getImageChannelOrder()
           
 int hashCode()
           
 CLImageFormat setImageChannelDataType(CLImageFormat.ChannelType type)
           
 CLImageFormat setImageChannelOrder(CLImageFormat.ChannelOrder order)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLImageFormat

public CLImageFormat(CLImageFormat.ChannelOrder order,
                     CLImageFormat.ChannelType type)
Method Detail

setImageChannelOrder

public CLImageFormat setImageChannelOrder(CLImageFormat.ChannelOrder order)

setImageChannelDataType

public CLImageFormat setImageChannelDataType(CLImageFormat.ChannelType type)

getImageChannelOrder

public CLImageFormat.ChannelOrder getImageChannelOrder()

getImageChannelDataType

public CLImageFormat.ChannelType getImageChannelDataType()

getFormatImpl

public CLImageFormatImpl getFormatImpl()
Returns the struct accessor for the cl_image_format struct.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object