@Name(value="JbData") public static class lept.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| 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 |
|---|---|
int |
h()
max height of original page images
|
lept.JBDATA |
h(int h) |
int |
latticeh()
lattice height for template composite
|
lept.JBDATA |
latticeh(int latticeh) |
int |
latticew()
lattice width for template composite
|
lept.JBDATA |
latticew(int latticew) |
lept.NUMA |
naclass()
array of class ids for each component
|
lept.JBDATA |
naclass(lept.NUMA naclass) |
lept.NUMA |
napage()
array of page nums for each component
|
lept.JBDATA |
napage(lept.NUMA napage) |
int |
nclass()
number of classes
|
lept.JBDATA |
nclass(int nclass) |
int |
npages()
number of pages
|
lept.JBDATA |
npages(int npages) |
lept.PIX |
pix()
template composite for all classes
|
lept.JBDATA |
pix(lept.PIX pix) |
lept.JBDATA |
position(long position) |
lept.PTA |
ptaul()
component
|
lept.JBDATA |
ptaul(lept.PTA ptaul) |
int |
w()
max width of original page images
|
lept.JBDATA |
w(int w) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic JBDATA()
public JBDATA(long size)
Pointer.position(long).public JBDATA(Pointer p)
Pointer.Pointer(Pointer).public lept.JBDATA position(long position)
public lept.PIX pix()
public lept.JBDATA pix(lept.PIX pix)
public lept.JBDATA npages(int npages)
public lept.JBDATA w(int w)
public lept.JBDATA h(int h)
public lept.JBDATA nclass(int nclass)
public lept.JBDATA latticew(int latticew)
public lept.JBDATA latticeh(int latticeh)
public lept.NUMA naclass()
public lept.JBDATA naclass(lept.NUMA naclass)
public lept.NUMA napage()
public lept.JBDATA napage(lept.NUMA napage)
public lept.PTA ptaul()
public lept.JBDATA ptaul(lept.PTA ptaul)
Copyright © 2019. All rights reserved.