Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.neomedia
Class QualityPreset

java.lang.Object
  extended by net.java.sip.communicator.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
static QualityPreset HD_QUALITY
          720p HD
static QualityPreset LO_QUALITY
          Low
static QualityPreset SD_QUALITY
          SD
 
Constructor Summary
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
 int compareTo(QualityPreset o)
          Compares to presets and its dimensions.
 float getFameRate()
          Returns this preset frame rate.
 Dimension getResolution()
          Returns this preset resolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 resolution
frameRate - 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:
compareTo in interface Comparable<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.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.