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

HintMediaHeaderBox

public class HintMediaHeaderBox extends AbstractMediaHeaderBox
The hint media header contains general information, independent of the protocaol, for hint tracks. Resides in Media Information Box.
see
com.coremedia.iso.boxes.MediaInformationBox

Fields Summary
private int
maxPduSize
private int
avgPduSize
private long
maxBitrate
private long
avgBitrate
public static final String
TYPE
Constructors Summary
public HintMediaHeaderBox()


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

        parseVersionAndFlags(content);
        maxPduSize = IsoTypeReader.readUInt16(content);
        avgPduSize = IsoTypeReader.readUInt16(content);
        maxBitrate = IsoTypeReader.readUInt32(content);
        avgBitrate = IsoTypeReader.readUInt32(content);
        IsoTypeReader.readUInt32(content);    // reserved!

    
public longgetAvgBitrate()

        return avgBitrate;
    
public intgetAvgPduSize()

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

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeUInt16(byteBuffer, maxPduSize);
        IsoTypeWriter.writeUInt16(byteBuffer, avgPduSize);
        IsoTypeWriter.writeUInt32(byteBuffer, maxBitrate);
        IsoTypeWriter.writeUInt32(byteBuffer, avgBitrate);
        IsoTypeWriter.writeUInt32(byteBuffer, 0);
    
protected longgetContentSize()

        return 20;
    
public longgetMaxBitrate()

        return maxBitrate;
    
public intgetMaxPduSize()

        return maxPduSize;
    
public java.lang.StringtoString()

        return "HintMediaHeaderBox{" +
                "maxPduSize=" + maxPduSize +
                ", avgPduSize=" + avgPduSize +
                ", maxBitrate=" + maxBitrate +
                ", avgBitrate=" + avgBitrate +
                '}";