net.java.sip.communicator.impl.neomedia.codec.video
Class FinalizableAVFrame
java.lang.Object
net.java.sip.communicator.impl.neomedia.codec.video.AVFrame
net.java.sip.communicator.impl.neomedia.codec.video.FinalizableAVFrame
public class FinalizableAVFrame
- extends AVFrame
Represents an AVFrame used to provide captured media data in native
format without representing the very frame data in the Java heap. Since the
user may not know when the AVFrame instances are really safe for
deallocation, FinalizableAVFrame relies on the Java finalization
mechanism to reclaim the represented native memory.
- Author:
- Lubomir Marinov
|
Constructor Summary |
FinalizableAVFrame()
Initializes a new FinalizableAVFrame instance which is to
allocate a new native FFmpeg AVFrame and represent it. |
|
Method Summary |
protected void |
finalize()
Deallocates the native memory represented by this instance. |
protected void |
freeData0(long data0)
Frees the memory pointed to by the data0 member of the native
AVFrame. |
static void |
read(javax.media.Buffer buffer,
javax.media.Format format,
ByteBuffer data,
ByteBufferPool byteBufferPool)
|
| Methods inherited from class net.java.sip.communicator.impl.neomedia.codec.video.AVFrame |
getPtr |
FinalizableAVFrame
public FinalizableAVFrame()
- Initializes a new FinalizableAVFrame instance which is to
allocate a new native FFmpeg AVFrame and represent it.
finalize
protected void finalize()
throws Throwable
- Deallocates the native memory represented by this instance.
- Overrides:
finalize in class Object
- Throws:
Throwable- See Also:
Object.finalize()
freeData0
protected void freeData0(long data0)
- Frees the memory pointed to by the data0 member of the native
AVFrame.
- Parameters:
data0 - pointer to free
read
public static void read(javax.media.Buffer buffer,
javax.media.Format format,
ByteBuffer data,
ByteBufferPool byteBufferPool)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.