net.sourceforge.lept4j.FPix Maven / Gradle / Ivy
package net.sourceforge.lept4j;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.FloatByReference;
import java.util.Arrays;
import java.util.List;
/**
* Pix with float array
* native declaration : pix.h:183
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java or JNA.
*/
public class FPix extends Structure {
/**
* width in pixels
* C type : l_int32
*/
public int w;
/**
* height in pixels
* C type : l_int32
*/
public int h;
/**
* 32-bit words/line
* C type : l_int32
*/
public int wpl;
/**
* reference count (1 if no clones)
* C type : l_uint32
*/
public int refcount;
/**
* image res (ppi) in x direction
* C type : l_int32
*/
public int xres;
/**
* image res (ppi) in y direction
* C type : l_int32
*/
public int yres;
/**
* the float image data
* C type : l_float32*
*/
public FloatByReference data;
public FPix() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("w", "h", "wpl", "refcount", "xres", "yres", "data");
}
/**
* @param w width in pixels
* C type : l_int32
* @param h height in pixels
* C type : l_int32
* @param wpl 32-bit words/line
* C type : l_int32
* @param refcount reference count (1 if no clones)
* C type : l_uint32
* @param xres image res (ppi) in x direction
* C type : l_int32
* @param yres image res (ppi) in y direction
* C type : l_int32
* @param data the float image data
* C type : l_float32*
*/
public FPix(int w, int h, int wpl, int refcount, int xres, int yres, FloatByReference data) {
super();
this.w = w;
this.h = h;
this.wpl = wpl;
this.refcount = refcount;
this.xres = xres;
this.yres = yres;
this.data = data;
}
public FPix(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends FPix implements Structure.ByReference {
};
public static class ByValue extends FPix implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy