Enum VsyncMethod

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AUTO
      Chooses between CFR and VFR depending on muxer capabilities.
      CFR
      Frames will be duplicated and dropped to achieve exactly the requested constant frame rate.
      DROP
      As passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate.
      PASSTHROUGH
      Each frame is passed with its timestamp from the demuxer to the muxer.
      VFR
      Frames are passed through with their timestamp or dropped so as to prevent 2 frames from having the same timestamp.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String methodName  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private VsyncMethod​(java.lang.String parameter)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMethodName()  
      static VsyncMethod valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static VsyncMethod[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • PASSTHROUGH

        public static final VsyncMethod PASSTHROUGH
        Each frame is passed with its timestamp from the demuxer to the muxer.
      • CFR

        public static final VsyncMethod CFR
        Frames will be duplicated and dropped to achieve exactly the requested constant frame rate.
      • VFR

        public static final VsyncMethod VFR
        Frames are passed through with their timestamp or dropped so as to prevent 2 frames from having the same timestamp.
      • DROP

        public static final VsyncMethod DROP
        As passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate.
      • AUTO

        public static final VsyncMethod AUTO
        Chooses between CFR and VFR depending on muxer capabilities. This is the default method.
    • Field Detail

      • methodName

        private final java.lang.String methodName
    • Constructor Detail

      • VsyncMethod

        private VsyncMethod​(java.lang.String parameter)
    • Method Detail

      • values

        public static VsyncMethod[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (VsyncMethod c : VsyncMethod.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VsyncMethod valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getMethodName

        public java.lang.String getMethodName()