Class VideoEncoder.Builder<B extends 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 Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public VideoEncoder build()
      Finish building the VideoEncoder object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to VideoEncoder.
      Overrides:
      build in class Element.Builder<B extends VideoEncoder.Builder<B>>
      Returns:
      a new instance of VideoEncoder with the properties that were set in the Builder object.
    • setMinForceKeyUnitInterval

      public B setMinForceKeyUnitInterval(long minForceKeyUnitInterval)
      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 the min-force-key-unit-interval property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      1.18
    • setQos

      public B setQos(boolean qos)