Package ws.schild.jave.encode.enums
Enum VsyncMethod
- java.lang.Object
-
- java.lang.Enum<VsyncMethod>
-
- ws.schild.jave.encode.enums.VsyncMethod
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VsyncMethod>
public enum VsyncMethod extends java.lang.Enum<VsyncMethod>
Add VSYNC methods described in the FFMPEG Documentation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOChooses between CFR and VFR depending on muxer capabilities.CFRFrames will be duplicated and dropped to achieve exactly the requested constant frame rate.DROPAs passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate.PASSTHROUGHEach frame is passed with its timestamp from the demuxer to the muxer.VFRFrames 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.StringmethodName
-
Constructor Summary
Constructors Modifier Constructor Description privateVsyncMethod(java.lang.String parameter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMethodName()static VsyncMethodvalueOf(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.
-
-
-
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.
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
getMethodName
public java.lang.String getMethodName()
-
-