FileDocCategorySizeDatePackage
BitRateControl.javaAPI DocJMF 2.1.1e1720Mon May 12 12:20:34 BST 2003javax.media.control

BitRateControl

public interface BitRateControl implements Control
This interface is a Control for specifying the parameters for bit rate. The bit rates are specified in bits per second. This Control can be used to export the bit rate information for an incoming stream or to control the encoding bit rate of a compressor.
since
JMF 2.0

Fields Summary
Constructors Summary
Methods Summary
public intgetBitRate()
Returns the current bit rate of the owning object. If the stream is of variable bit rate, then the value returned is an instantaneous or average bit rate over a period of time. The bit rates are specified in bits per second.

return
the bit rate

public intgetMaxSupportedBitRate()
Returns the highest bit rate that this object can encode the data stream to. The bit rates are specified in bits per second.

return
the maximal supported bit rate

public intgetMinSupportedBitRate()
Returns the lowest bit rate that this object can encode the data stream to. The bit rates are specified in bits per second.

return
the lowest supported bit rate

public intsetBitRate(int bitrate)
Sets the bit rate of the owning object. This is mostly relevant in the case of encoders. If the bit rate cannot be controlled, then the return value is -1. The bit rates are specified in bits per second.

return
the bit rate that was actually set on the object, or -1 if the bit rate is not controllable.