entagged.audioformats.asf.data
Class StreamBitratePropertiesChunk
java.lang.Object
entagged.audioformats.asf.data.Chunk
entagged.audioformats.asf.data.StreamBitratePropertiesChunk
public class StreamBitratePropertiesChunk
- extends Chunk
This class represents the "Stream Bitrate Properties" chunk of an asf media
file.
It is optional, but contains useful information about the streams bitrate.
- Author:
- Christian Laireiter
Method Summary |
void |
addBitrateRecord(int streamNum,
long averageBitrate)
Adds the public values of a stream-record. |
long |
getAvgBitrate(int streamNumber)
Returns the average bitrate of the given stream.
|
String |
prettyPrint()
(overridden) |
StreamBitratePropertiesChunk
public StreamBitratePropertiesChunk(long pos,
BigInteger chunkSize)
- Creates an instance.
- Parameters:
pos
- Position of the chunk within file or streamchunkLen
- Length of current chunk.
addBitrateRecord
public void addBitrateRecord(int streamNum,
long averageBitrate)
- Adds the public values of a stream-record.
- Parameters:
streamNum
- The number of the refered stream.averageBitrate
- Its average Bitrate.
getAvgBitrate
public long getAvgBitrate(int streamNumber)
- Returns the average bitrate of the given stream.
- Parameters:
streamNumber
- Number of the stream whose bitrate to determine.
- Returns:
- The average bitrate of the numbered stream.
-1
if
no information was given.
prettyPrint
public String prettyPrint()
- (overridden)
- Overrides:
prettyPrint
in class Chunk
- Returns:
- Information of current Chunk Object.
- See Also:
Chunk.prettyPrint()
Copyright © 2007-2008. All Rights Reserved.