net.sourceforge.lept4j.L_StrCode 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 java.util.Arrays;
import java.util.List;
/**
* stringcode.h
* Data structure to hold accumulating generated code for storing
* and extracing serializable leptonica objects (e.g., pixa, recog).
* Also a flag for selecting a string from the L_GenAssoc struct
* in stringcode.
* native declaration : stringcode.h:12
* 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 L_StrCode extends Structure {
/**
* index for function and output file names
* C type : l_int32
*/
public int fileno;
/**
* index into struct currently being stored
* C type : l_int32
*/
public int ifunc;
/**
* store case code for extraction
* C type : SARRAY*
*/
public net.sourceforge.lept4j.Sarray.ByReference function;
/**
* store base64 encoded data as strings
* C type : SARRAY*
*/
public net.sourceforge.lept4j.Sarray.ByReference data;
/**
* store line in description table
* C type : SARRAY*
*/
public net.sourceforge.lept4j.Sarray.ByReference descr;
/**
* number of data strings
* C type : l_int32
*/
public int n;
public L_StrCode() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("fileno", "ifunc", "function", "data", "descr", "n");
}
/**
* @param fileno index for function and output file names
* C type : l_int32
* @param ifunc index into struct currently being stored
* C type : l_int32
* @param function store case code for extraction
* C type : SARRAY*
* @param data store base64 encoded data as strings
* C type : SARRAY*
* @param descr store line in description table
* C type : SARRAY*
* @param n number of data strings
* C type : l_int32
*/
public L_StrCode(int fileno, int ifunc, net.sourceforge.lept4j.Sarray.ByReference function, net.sourceforge.lept4j.Sarray.ByReference data, net.sourceforge.lept4j.Sarray.ByReference descr, int n) {
super();
this.fileno = fileno;
this.ifunc = ifunc;
this.function = function;
this.data = data;
this.descr = descr;
this.n = n;
}
public L_StrCode(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_StrCode implements Structure.ByReference {
};
public static class ByValue extends L_StrCode implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy