javax.media.control
Interface BitRateControl
- public interface BitRateControl
- extends 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
Method Summary |
int |
getBitRate()
Returns the current bit rate of the owning object. |
int |
getMaxSupportedBitRate()
Returns the highest bit rate that this object can encode the
data stream to. |
int |
getMinSupportedBitRate()
Returns the lowest bit rate that this object can encode the
data stream to. |
int |
setBitRate(int bitrate)
Sets the bit rate of the owning object. |
getBitRate
public int getBitRate()
- 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.
- Returns:
- the bit rate
setBitRate
public int setBitRate(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.
- Returns:
- the bit rate that was actually set on the object, or -1
if the bit rate is not controllable.
getMinSupportedBitRate
public int getMinSupportedBitRate()
- Returns the lowest bit rate that this object can encode the
data stream to.
The bit rates are specified in bits per second.
- Returns:
- the lowest supported bit rate
getMaxSupportedBitRate
public int getMaxSupportedBitRate()
- Returns the highest bit rate that this object can encode the
data stream to.
The bit rates are specified in bits per second.
- Returns:
- the maximal supported bit rate
Submit a bug or feature
Copyright 1994-2004 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.