FileDocCategorySizeDatePackage
BitRateBox.javaAPI Docmp4parser 1.0-RC-172585Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes

BitRateBox

public final class BitRateBox extends com.googlecode.mp4parser.AbstractBox
class BitRateBox extends Box('btrt') {
unsigned int(32) bufferSizeDB;
// gives the size of the decoding buffer for
// the elementary stream in bytes.
unsigned int(32) maxBitrate;
// gives the maximum rate in bits/second
// over any window of one second.
unsigned int(32) avgBitrate;
// avgBitrate gives the average rate in
// bits/second over the entire presentation.
}

Fields Summary
public static final String
TYPE
private long
bufferSizeDb
private long
maxBitrate
private long
avgBitrate
Constructors Summary
public BitRateBox()


      
        super(TYPE);
    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        bufferSizeDb = IsoTypeReader.readUInt32(content);
        maxBitrate = IsoTypeReader.readUInt32(content);
        avgBitrate = IsoTypeReader.readUInt32(content);
    
public longgetAvgBitrate()

        return avgBitrate;
    
public longgetBufferSizeDb()

        return bufferSizeDb;
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        IsoTypeWriter.writeUInt32(byteBuffer, bufferSizeDb);
        IsoTypeWriter.writeUInt32(byteBuffer, maxBitrate);
        IsoTypeWriter.writeUInt32(byteBuffer, avgBitrate);
    
protected longgetContentSize()

        return 12;
    
public longgetMaxBitrate()

        return maxBitrate;
    
public voidsetAvgBitrate(long avgBitrate)

        this.avgBitrate = avgBitrate;
    
public voidsetBufferSizeDb(long bufferSizeDb)

        this.bufferSizeDb = bufferSizeDb;
    
public voidsetMaxBitrate(long maxBitrate)

        this.maxBitrate = maxBitrate;