Package org.freedesktop.gstreamer.video
Class VideoEncoder.Builder<B extends VideoEncoder.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.freedesktop.gstreamer.gst.GstObject.Builder<B>
org.freedesktop.gstreamer.gst.Element.Builder<B>
org.freedesktop.gstreamer.video.VideoEncoder.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
VideoEncoder
public static class VideoEncoder.Builder<B extends VideoEncoder.Builder<B>>
extends Element.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theVideoEncoder
object.setMinForceKeyUnitInterval
(long minForceKeyUnitInterval) Minimum interval between force-keyunit requests in nanoseconds.setQos
(boolean qos) Methods inherited from class org.freedesktop.gstreamer.gst.Element.Builder
onNoMorePads, onPadAdded, onPadRemoved
Methods inherited from class org.freedesktop.gstreamer.gst.GstObject.Builder
onDeepNotify, setName, setParent
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theVideoEncoder
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toVideoEncoder
.- Overrides:
build
in classElement.Builder<B extends VideoEncoder.Builder<B>>
- Returns:
- a new instance of
VideoEncoder
with the properties that were set in the Builder object.
-
setMinForceKeyUnitInterval
Minimum interval between force-keyunit requests in nanoseconds. See gst_video_encoder_set_min_force_key_unit_interval() for more details.- Parameters:
minForceKeyUnitInterval
- the value for themin-force-key-unit-interval
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setQos
-