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

SampleAuxiliaryInformationOffsetsBox

public class SampleAuxiliaryInformationOffsetsBox extends com.googlecode.mp4parser.AbstractFullBox

Fields Summary
public static final String
TYPE
private List
offsets
private long
auxInfoType
private long
auxInfoTypeParameter
Constructors Summary
public SampleAuxiliaryInformationOffsetsBox()


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

        parseVersionAndFlags(content);

        if ((getFlags() & 1) == 1) {
            auxInfoType = IsoTypeReader.readUInt32(content);
            auxInfoTypeParameter = IsoTypeReader.readUInt32(content);
        }

        int entryCount = l2i(IsoTypeReader.readUInt32(content));
        offsets.clear();

        for (int i = 0; i < entryCount; i++) {
            if (getVersion() == 0) {
                offsets.add(IsoTypeReader.readUInt32(content));
            } else {
                offsets.add(IsoTypeReader.readUInt64(content));
            }
        }
    
public longgetAuxInfoType()

        return auxInfoType;
    
public longgetAuxInfoTypeParameter()

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

        writeVersionAndFlags(byteBuffer);
        if ((getFlags() & 1) == 1) {
            IsoTypeWriter.writeUInt32(byteBuffer, auxInfoType);
            IsoTypeWriter.writeUInt32(byteBuffer, auxInfoTypeParameter);
        }

        IsoTypeWriter.writeUInt32(byteBuffer, offsets.size());
        for (Long offset : offsets) {
            if (getVersion() == 0) {
                IsoTypeWriter.writeUInt32(byteBuffer, offset);
            } else {
                IsoTypeWriter.writeUInt64(byteBuffer, offset);
            }
        }
    
protected longgetContentSize()

        return 8 + (getVersion() == 0 ? 4 * offsets.size() : 8 * offsets.size()) + ((getFlags() & 1) == 1 ? 8 : 0);
    
public java.util.ListgetOffsets()

        return offsets;
    
public voidsetAuxInfoType(long auxInfoType)

        this.auxInfoType = auxInfoType;
    
public voidsetAuxInfoTypeParameter(long auxInfoTypeParameter)

        this.auxInfoTypeParameter = auxInfoTypeParameter;
    
public voidsetOffsets(java.util.List offsets)

        this.offsets = offsets;