public class Sample extends MiniObject
See upstream documentation at https://gstreamer.freedesktop.org/data/doc/gstreamer/stable/gstreamer/html/GstSample.html
MiniObject.Handle
NativeObject.Initializer, NativeObject.TypeProvider, NativeObject.TypeRegistration<T extends NativeObject>
Modifier and Type | Field and Description |
---|---|
static String |
GTYPE_NAME |
Modifier and Type | Method and Description |
---|---|
Buffer |
getBuffer()
Get the
Buffer associated with sample, or NULL when there is no
buffer. |
Caps |
getCaps()
Get the
Caps associated with sample, or NULL when there is no caps. |
void |
setBuffer(Buffer buffer)
Set the
Buffer associated with sample. |
void |
setCaps(Caps caps)
Set the
Caps associated with sample. |
copy, getRefCount, isWritable, makeWritable
close, disown, dispose, equals, getPointer, getRawPointer, hashCode, invalidate, toString
public static final String GTYPE_NAME
public Caps getCaps()
Caps
associated with sample, or NULL when there is no caps.
The caps remains valid as long as sample is valid.
If you need to hold on to the caps for longer than that, take a ref to the caps@Gst.Since(minor=16) public void setCaps(Caps caps)
Caps
associated with sample.
This sample must be writable.
Since GStreamer 1.16caps
- public Buffer getBuffer()
Buffer
associated with sample, or NULL when there is no
buffer.
The buffer remains valid as long as sample is valid.
If you need to hold on to it for longer than that, take a ref to the buffer.@Gst.Since(minor=16) public void setBuffer(Buffer buffer)
Buffer
associated with sample.
This sample must be writable.
Since GStreamer 1.16buffer
- Copyright © 2021 gstreamer-java. All rights reserved.