public enum VsyncMethod extends Enum<VsyncMethod>
| Enum Constant and 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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMethodName() |
static VsyncMethod |
valueOf(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.
|
public static final VsyncMethod PASSTHROUGH
public static final VsyncMethod CFR
public static final VsyncMethod VFR
public static final VsyncMethod DROP
public static final VsyncMethod AUTO
public static VsyncMethod[] values()
for (VsyncMethod c : VsyncMethod.values()) System.out.println(c);
public static VsyncMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getMethodName()
Copyright © 2020. All rights reserved.