Package org.jitsi.service.neomedia
Class QualityPreset
- java.lang.Object
-
- org.jitsi.service.neomedia.QualityPreset
-
- All Implemented Interfaces:
Comparable<QualityPreset>
public class QualityPreset extends Object implements Comparable<QualityPreset>
Predefined quality preset used to specify some video settings during an existing call or when starting a new call.- Author:
- Damian Minkov, Lyubomir Marinov
-
-
Field Summary
Fields Modifier and Type Field Description static QualityPresetHD_QUALITY720p HDstatic QualityPresetLO_QUALITYLowstatic QualityPresetSD_QUALITYSD
-
Constructor Summary
Constructors Constructor Description QualityPreset(Dimension resolution)Initializes a new quality preset with a specific resolution and an unspecified frameRate.QualityPreset(Dimension resolution, float frameRate)Initializes a new quality preset with a specific resolution and a specific frameRate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(QualityPreset o)Compares to presets and its dimensions.floatgetFameRate()Returns this preset frame rate.DimensiongetResolution()Returns this preset resolution.
-
-
-
Field Detail
-
HD_QUALITY
public static final QualityPreset HD_QUALITY
720p HD
-
LO_QUALITY
public static final QualityPreset LO_QUALITY
Low
-
SD_QUALITY
public static final QualityPreset SD_QUALITY
SD
-
-
Constructor Detail
-
QualityPreset
public QualityPreset(Dimension resolution, float frameRate)
Initializes a new quality preset with a specific resolution and a specific frameRate.- Parameters:
resolution- the resolutionframeRate- the frame rate
-
QualityPreset
public QualityPreset(Dimension resolution)
Initializes a new quality preset with a specific resolution and an unspecified frameRate.- Parameters:
resolution- the resolution
-
-
Method Detail
-
getFameRate
public float getFameRate()
Returns this preset frame rate.- Returns:
- the frame rate.
-
getResolution
public Dimension getResolution()
Returns this preset resolution.- Returns:
- the resolution.
-
compareTo
public int compareTo(QualityPreset o)
Compares to presets and its dimensions.- Specified by:
compareToin interfaceComparable<QualityPreset>- Parameters:
o- object to compare to.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
-