Package org.jocl

Examples of org.jocl.cl_image_format


       bi=convertedImg;
    }
    this.w=bi.getWidth();
    this.h=bi.getHeight();
   
    cl_image_format f=this.getImageFormat();
    ImageDataInfo info = getImageDataInfo(bi);
         
 
 
    cl_mem img= CL.clCreateImage2D(
View Full Code Here


  @Override
  public void create(int w, int h, boolean readable) {
    this.dispose();
    this.w=w;
    this.h=h;
    cl_image_format f = getImageFormat();
   
    this.setBuffer(
        CL.clCreateImage2D(
          context,
          readable? CL.CL_MEM_READ_WRITE:CL.CL_MEM_WRITE_ONLY ,
View Full Code Here

public class ImageRGBA extends ImageBase {
 
  @Override
  protected cl_image_format getImageFormat() {
    cl_image_format f=new cl_image_format();
      f.image_channel_order=CL.CL_RGBA;
      f.image_channel_data_type=CL.CL_UNORM_INT8;
    return f;
  }
View Full Code Here

public class ImageRGBA_SNORM_INT16 extends ImageBase {
 
  @Override
  protected cl_image_format getImageFormat() {
    cl_image_format f=new cl_image_format();
      f.image_channel_order=CL.CL_RGBA;
      f.image_channel_data_type=CL.CL_SNORM_INT16;
    return f;
  }
View Full Code Here

  protected cl_image_format getImageFormat() {
    /*cl_image_format f=new cl_image_format();
      f.image_channel_order=CL.CL_R;
      f.image_channel_data_type=CL.CL_UNORM_INT8;*/
   
    cl_image_format f=new cl_image_format();
      f.image_channel_order=CL.CL_LUMINANCE;
      f.image_channel_data_type=CL.CL_FLOAT;
    return f;
  }
View Full Code Here

TOP

Related Classes of org.jocl.cl_image_format

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.