@Name(value="JbData") @Properties(inherit=leptonica.class) public class JBDATA extends Pointer
The JbData struct holds all the data required for the compressed jbig-type representation of a set of images. The data can be written to file, read back, and used to regenerate an approximate version of the original, which differs in two ways from the original: (1) It uses a template image for each c.c. instead of the original instance, for each occurrence on each page. (2) It discards components with either a height or width larger than the maximuma, given here by the lattice dimensions used for storing the templates.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
JBDATA()
Default native constructor.
|
JBDATA(long size)
Native array allocator.
|
JBDATA(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
JBDATA |
getPointer(long i) |
int |
h()
max height of original page images
|
JBDATA |
h(int setter) |
int |
latticeh()
lattice height for template composite
|
JBDATA |
latticeh(int setter) |
int |
latticew()
lattice width for template composite
|
JBDATA |
latticew(int setter) |
NUMA |
naclass()
array of class ids for each component
|
JBDATA |
naclass(NUMA setter) |
NUMA |
napage()
array of page nums for each component
|
JBDATA |
napage(NUMA setter) |
int |
nclass()
number of classes
|
JBDATA |
nclass(int setter) |
int |
npages()
number of pages
|
JBDATA |
npages(int setter) |
PIX |
pix()
template composite for all classes
|
JBDATA |
pix(PIX setter) |
JBDATA |
position(long position) |
PTA |
ptaul()
component
|
JBDATA |
ptaul(PTA setter) |
int |
w()
max width of original page images
|
JBDATA |
w(int setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public JBDATA()
public JBDATA(long size)
Pointer.position(long)
.public JBDATA(Pointer p)
Pointer(Pointer)
.public JBDATA getPointer(long i)
getPointer
in class Pointer
public PIX pix()
public JBDATA npages(int setter)
public JBDATA w(int setter)
public JBDATA h(int setter)
public JBDATA nclass(int setter)
public JBDATA latticew(int setter)
public JBDATA latticeh(int setter)
public NUMA naclass()
public NUMA napage()
public PTA ptaul()
Copyright © 2024. All rights reserved.