Package org.bytedeco.leptonica
Class AbstractDPIX
java.lang.Object
org.bytedeco.javacpp.Pointer
org.bytedeco.leptonica.AbstractDPIX
- All Implemented Interfaces:
AutoCloseable
,Indexable
- Direct Known Subclasses:
DPIX
@Properties(inherit=leptonica.class)
public abstract class AbstractDPIX
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 dpixClone(), and registers a deallocator.static DPIX
create
(int width, int height) Calls dpixCreate(), and registers a deallocator.createBuffer
(int index) createIndexer
(boolean direct) static DPIX
createTemplate
(DPIX dpixs) Calls dpixCreateTemplate(), 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
-
AbstractDPIX
-
-
Method Details
-
create
Calls dpixCreate(), and registers a deallocator.- Returns:
- DPIX created. Do not call dpixDestroy() on it.
-
createTemplate
Calls dpixCreateTemplate(), and registers a deallocator.- Returns:
- DPIX created. Do not call dpixDestroy() on it.
-
clone
Calls dpixClone(), and registers a deallocator. -
createBuffer
- Returns:
createBuffer(0)
-
createBuffer
- Returns:
DPIX.data()
wrapped in aDoubleBuffer
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.
-