Package org.bytedeco.leptonica
Class AbstractFPIX
java.lang.Object
org.bytedeco.javacpp.Pointer
org.bytedeco.leptonica.AbstractFPIX
- All Implemented Interfaces:
AutoCloseable
,Indexable
- Direct Known Subclasses:
FPIX
@Properties(inherit=leptonica.class)
public abstract class AbstractFPIX
extends Pointer
implements Indexable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Calls fpixClone(), and registers a deallocator.static FPIX
create
(int width, int height) Calls fpixCreate(), and registers a deallocator.createBuffer
(int index) createIndexer
(boolean direct) static FPIX
createTemplate
(FPIX fpixs) Calls fpixCreateTemplate(), and registers a deallocator.void
destroy()
Calls the deallocator, if registered, otherwise has no effect.Methods inherited from class org.bytedeco.javacpp.Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
-
Constructor Details
-
AbstractFPIX
-
-
Method Details
-
create
Calls fpixCreate(), and registers a deallocator.- Returns:
- FPIX created. Do not call fpixDestroy() on it.
-
createTemplate
Calls fpixCreateTemplate(), and registers a deallocator.- Returns:
- FPIX created. Do not call fpixDestroy() on it.
-
clone
Calls fpixClone(), and registers a deallocator. -
createBuffer
- Returns:
createBuffer(0)
-
createBuffer
- Returns:
FPIX.data()
wrapped in aFloatBuffer
starting at given byte index.
-
createIndexer
- Returns:
createIndexer(true)
-
createIndexer
- Specified by:
createIndexer
in interfaceIndexable
-
destroy
public void destroy()Calls the deallocator, if registered, otherwise has no effect.
-