public class AVFrame
extends java.lang.Object
Constructor and Description |
---|
AVFrame()
Initializes a new FinalizableAVFrame instance which is to
allocate a new native FFmpeg AVFrame and represent it.
|
AVFrame(long ptr)
Initializes a new AVFrame instance which is to represent a
specific pointer to a native FFmpeg AVFrame object.
|
Modifier and Type | Method and Description |
---|---|
int |
avpicture_fill(ByteBuffer data,
AVFrameFormat format) |
protected void |
finalize()
Deallocates the native memory/FFmpeg AVFrame object represented
by this instance if this instance has allocated it upon initialization
and it has not been deallocated yet i.e.
|
void |
free()
Deallocates the native memory/FFmpeg AVFrame object represented
by this instance if this instance has allocated it upon initialization
and it has not been deallocated yet.
|
ByteBuffer |
getData()
Gets the ByteBuffer whose native memory is set on the native
counterpart of this instance/AVFrame.
|
long |
getPtr()
Gets the pointer to the native FFmpeg AVFrame object represented
by this instance.
|
static int |
read(javax.media.Buffer buffer,
javax.media.Format format,
ByteBuffer data) |
public AVFrame()
public AVFrame(long ptr)
ptr
- the pointer to the native FFmpeg AVFrame object to be
represented by the new instancepublic static int read(javax.media.Buffer buffer, javax.media.Format format, ByteBuffer data)
public int avpicture_fill(ByteBuffer data, AVFrameFormat format)
protected void finalize() throws java.lang.Throwable
free()
is
invoked on this instance.finalize
in class java.lang.Object
java.lang.Throwable
Object.finalize()
public void free()
public ByteBuffer getData()
public long getPtr()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.