|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.codec.video.AVFrame
net.java.sip.communicator.impl.neomedia.codec.video.FinalizableAVFrame
public class FinalizableAVFrame
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.
| 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)
Read the frame. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.codec.video.AVFrame |
|---|
getPtr |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FinalizableAVFrame()
| Method Detail |
|---|
protected void finalize()
throws Throwable
finalize in class ObjectThrowableObject.finalize()protected void freeData0(long data0)
data0 - pointer to free
public static void read(javax.media.Buffer buffer,
javax.media.Format format,
ByteBuffer data,
ByteBufferPool byteBufferPool)
buffer - bufferformat - format of the bufferdata - the databyteBufferPool - the ByteBuffer pool
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||