Package com.avpkit.ferry
A collection of classes that ferry objects from Java to native code and back,
and manage native memory.
This package contains a variety of classes used by AVPKit to manage communication between Java and and Native Code.
Classes and methods marked "Internal Only" are not meant for usage by anyone outside these libraries. They are public members only because they need to be for other AVPKit packages to use them -- don't go calling methods on these objects from outside AVPKit as you can quickly bring down the Java virtual machine if you don't know what you're doing.
Tuning Ferry (And AVPKit) Memory Management
A complicated subject, but if you're ready for it, take a look at the
JNIMemoryManager object and start reading.
-
Interface Summary Interface Description ITempFileCreator JNIThreadProxy.Interruptable Interface that global interrupt handlers should use. -
Class Summary Class Description AtomicInteger Internal only.Ferry Internal Only.FerryJNI IBuffer Allows Java code to get data from a native buffers, and optionally modify native memory directly.ITempFileCreator.Builder ITempFileCreator.DefaultTempFileCreator JNIEnv A set of utilities that can be used to find out information about the Native environment that we are running within.JNILibrary JNILibraryLoader Internal Only.JNIMemoryAllocator Internal Only.JNIMemoryManager Manages the native memory that Ferry objects allocate and destroy.JNINativeFinalizer Internal Only.JNIPointerReference Internal Only.JNIReference Returned byIBuffer.getByteBuffer(int, int, java.util.concurrent.atomic.AtomicReference)for users that want to explicitly manage when the returnedByteBufferis released.JNIThreadProxy Proxy forThreadthat is called by Ferry native code.Logger Internal OnlyMutex Internal Only.NativeLogger Internal Only.RefCounted Parent of all Ferry objects -- it mains reference counts
in native code.RefCountedTester Internal Only. -
Enum Summary Enum Description IBuffer.Type JNIMemoryManager.MemoryModel The different types of native memory allocation models Ferry supports.Logger.Level Different logging levels (noiseness) supported by us.