-
Classes Class Description com.avpkit.core.ITimeValue . Do not use.
-
Methods Method Description com.avpkit.core.IContainer.addNewStream(int) Use {#addNewStream(ICodec.ID)} instead.
Creates a new stream in this container and returns it.
com.avpkit.core.IContainer.getPreload() use {#getPropertyAsLong} instead.
The amount container will attemtp to preload.
com.avpkit.core.IContainer.setPreload(int) use {#setProperty} instead.
If the container has not already been opened, sets the AVFormatContext.preload property
which can be useful in some circumstances such as when dealing with mpeg formats.
com.avpkit.core.IStreamCoder.make(IStreamCoder.Direction) Use {#make(Direction, ICodec)} instead.
Create a standalone StreamCoder that can decode data without regard to
which IStream or IContainer it came from.
If you're reading or writing to a AVPKIT file or URL you almost definitely
don't want to use this method. Use the {IContainer#getStream(long)}
and {IStream#getStreamCoder()} methods instead as it will set up the
resulting IStreamCoder with sensible defaults. Use of a un-attached
StreamCoder returned from this method is for advanced users only.
com.avpkit.core.IStreamCoder.open() Use {#open(IMetaData,IMetaData)} instead.
Open the Codec associated with this StreamCoder.
You can get the codec through getCodec(...) and
set it with setCodec(...). You cannot call any
set* methods after you've called open() on this StreamCoder
until you close() it.
You must call close() when you're done, but if you don't,
the container will clean up after you (but yell at you)
when it is closed.
com.avpkit.core.Utils.imageToVideoPicture(BufferedImage, long) Image and picture conversion functionality has been replaced byConverterFactory. The current implementation ofUtils.imageToVideoPicture(java.awt.image.BufferedImage, long)creates a newIConverteron each call, which is not very efficient.com.avpkit.core.Utils.videoPictureToImage(IVideoPicture) Image and picture conversion functionality has been replaced byConverterFactory. The current implementation ofUtils.videoPictureToImage(com.avpkit.core.IVideoPicture)creates a newIConverteron each call, which is not very efficient.com.avpkit.ferry.JNILibraryLoader.loadLibrary(String, Long) UseJNILibraryinstead. Attempts to find and load the given library, with the given version of the library if version is asked for.First, if we detect that we've already loaded the given library, we'll just return rather than attempt a second load (which will fail on some OSes).
If we haven't already loaded this library, we will search in the path defined by the property java.library.path for the library, creating OS-dependent names, and using version strings. If we can't find it in that property, we'll search through the OS-dependent shared-library specification environment variable.
If we can't find a versioned library (and one was requested) but can find an unversioned library, we'll use the unversioned library. But we will first search all directories for a versioned library under the assumption that if you asked for a version, you care more about meeting that requirement than finding it in the first directory we run across.
If all that still fails, we'll fall back to the
System.loadLibrary(String)method (for example, if we cannot guess a libtool-like convention for the OS we're on).We assume a libtool-like library name for the shared library, but will check for common variants on that name.
Hopefully an illustration will make this all clearer. Assume we're looking for a library named "foo" with version 1, this method will search as follows:
OS Filenames searched for (in order) Directories looked in (in order) On Windows: - foo-1.dll
- libfoo-1.dll
- cygfoo-1.dll
- foo.dll
- libfoo.dll
- cygfoo.dll
- Every directory in the java property java.library.path
- Every directory in the environment variable PATH
On Linux: - libfoo.so.1
- libfoo.so
- Every directory in the java property java.library.path
- Every directory in the environment variable LD_LIBRARY_PATH
On Apple OS-X: - libfoo.1.dylib
- libfoo.dylib
- Every directory in the java property java.library.path
- Every directory in the environment variable DYLD_LIBRARY_PATH