Package org.jitsi.impl.neomedia.codec
Class EncodingConfigurationImpl
- java.lang.Object
-
- org.jitsi.service.neomedia.codec.EncodingConfiguration
-
- org.jitsi.impl.neomedia.codec.EncodingConfigurationImpl
-
- Direct Known Subclasses:
EncodingConfigurationConfigImpl
public class EncodingConfigurationImpl extends EncodingConfiguration
Configuration of encoding priorities.- Author:
- Damian Minkov, Lyubomir Marinov, Boris Grozev
-
-
Field Summary
Fields Modifier and Type Field Description static booleanG729The indicator which determines whether the G.729 codec is enabled.-
Fields inherited from class org.jitsi.service.neomedia.codec.EncodingConfiguration
encodingPreferences
-
-
Constructor Summary
Constructors Constructor Description EncodingConfigurationImpl()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcompareEncodingPreferences(MediaFormat enc1, MediaFormat enc2)Compares the two formats for order.MediaFormat[]getAllEncodings(org.jitsi.utils.MediaType type)Returns all the available encodings for a specific MediaType.protected voidsetEncodingPreference(String encoding, double clockRate, int pref)Sets pref as the preference associated with encoding.-
Methods inherited from class org.jitsi.service.neomedia.codec.EncodingConfiguration
getEnabledEncodings, getEncodingPreferenceKey, getPriority, hasEnabledFormat, loadEncodingConfiguration, loadProperties, loadProperties, setPriority, storeProperties, storeProperties
-
-
-
-
Field Detail
-
G729
public static final boolean G729
The indicator which determines whether the G.729 codec is enabled. WARNING: The use of G.729 may require a license fee and/or royalty fee in some countries and is licensed by SIPRO Lab Telecom.- See Also:
- Constant Field Values
-
-
Method Detail
-
setEncodingPreference
protected void setEncodingPreference(String encoding, double clockRate, int pref)
Sets pref as the preference associated with encoding. Use this method for both audio and video encodings and don't worry if preferences are equal since we rarely need to compare prefs of video encodings to those of audio encodings.- Specified by:
setEncodingPreferencein classEncodingConfiguration- Parameters:
encoding- the SDP int of the encoding whose pref we're setting.clockRate- clock ratepref- a positive int indicating the preference for that encoding.
-
getAllEncodings
public MediaFormat[] getAllEncodings(org.jitsi.utils.MediaType type)
Returns all the available encodings for a specific MediaType. This includes disabled ones (ones with priority 0).- Specified by:
getAllEncodingsin classEncodingConfiguration- Parameters:
type- the MediaType we would like to know the available encodings of- Returns:
- array of MediaFormat supported for the MediaType
-
compareEncodingPreferences
protected int compareEncodingPreferences(MediaFormat enc1, MediaFormat enc2)
Compares the two formats for order. Returns a negative integer, zero, or a positive integer as the first format has been assigned a preference higher, equal to, or greater than the one of the second.- Specified by:
compareEncodingPreferencesin classEncodingConfiguration- Parameters:
enc1- the first format to compare for preference.enc2- the second format to compare for preference- Returns:
- a negative integer, zero, or a positive integer as the first format has been assigned a preference higher, equal to, or greater than the one of the second
-
-