net.sourceforge.lept4j.CCBorda Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lept4j Show documentation
Show all versions of lept4j Show documentation
# Lept4J
## Description:
A Java JNA wrapper for Leptonica Image Processing library.
Lept4J is released and distributed under the Apache License, v2.0.
package net.sourceforge.lept4j;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.PointerByReference;
import java.util.Arrays;
import java.util.List;
/**
* Array of CCBord
* native declaration : ccbord.h:27
* 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 CCBorda extends Structure {
/**
* input pix (may be null)
* C type : Pix*
*/
public net.sourceforge.lept4j.Pix.ByReference pix;
/**
* width of pix
* C type : l_int32
*/
public int w;
/**
* height of pix
* C type : l_int32
*/
public int h;
/**
* number of ccbord in ptr array
* C type : l_int32
*/
public int n;
/**
* number of ccbord ptrs allocated
* C type : l_int32
*/
public int nalloc;
/**
* ccb ptr array
* C type : CCBord**
*/
public PointerByReference ccb;
public CCBorda() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("pix", "w", "h", "n", "nalloc", "ccb");
}
/**
* @param pix input pix (may be null)
* C type : Pix*
* @param w width of pix
* C type : l_int32
* @param h height of pix
* C type : l_int32
* @param n number of ccbord in ptr array
* C type : l_int32
* @param nalloc number of ccbord ptrs allocated
* C type : l_int32
* @param ccb ccb ptr array
* C type : CCBord**
*/
public CCBorda(net.sourceforge.lept4j.Pix.ByReference pix, int w, int h, int n, int nalloc, PointerByReference ccb) {
super();
this.pix = pix;
this.w = w;
this.h = h;
this.n = n;
this.nalloc = nalloc;
// if ((ccb.length != this.ccb.length))
// throw new IllegalArgumentException("Wrong array size !");
this.ccb = ccb;
}
public CCBorda(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends CCBorda implements Structure.ByReference {
};
public static class ByValue extends CCBorda implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy