FileDocCategorySizeDatePackage
QualityControl.javaAPI DocJMF 2.1.1e1916Mon May 12 12:20:36 BST 2003javax.media.control

QualityControl

public interface QualityControl implements Control
This interface is a Control for specifying the parameters for quality. Quality is referenced by a float value of 0.0 for minimal quality and 1.0 for maximum quality. There is usually a tradeoff between CPU usage and the quality: higher quality requires higher CPU usage.
since
JMF 2.0

Fields Summary
Constructors Summary
Methods Summary
public floatgetPreferredQuality()
Returns the default quality recommended for decoding or encoding.

return
the preferred decoding or encoding quality.

public floatgetQuality()
Returns the current value of the decoding or encoding quality parameter.

return
the current decoding or encoding quality.

public booleanisTemporalSpatialTradeoffSupported()
Returns if the encoder can increase frame rate with reduced resolution and vica-versa.

return
if the encoder can increase frame rate with reduced resolution and vica-versa.

public floatsetQuality(float newQuality)
Set the quality for the decoding or encoding. This value may have different effects depending on the type of compression. A higher quality setting will result in better quality of the resulting outputb, e.g. better image quality for video. There is usually a tradeoff between CPU usage and the quality: higher quality requires higher CPU usage. This value is only a hint and the codec can choose to ignore it. The actual value that was set is returned. It should be in the range of 0.0 to 1.0.

param
newQuality the decoding or encoding quality.
return
the quality that is actually set.