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

SyncSampleBox

public class SyncSampleBox extends com.googlecode.mp4parser.AbstractFullBox
This box provides a compact marking of the random access points withinthe stream. The table is arranged in strictly decreasinf order of sample number. Defined in ISO/IEC 14496-12.

Fields Summary
public static final String
TYPE
private long[]
sampleNumber
Constructors Summary
public SyncSampleBox()


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

        parseVersionAndFlags(content);
        int entryCount = l2i(IsoTypeReader.readUInt32(content));

        sampleNumber = new long[entryCount];
        for (int i = 0; i < entryCount; i++) {
            sampleNumber[i] = IsoTypeReader.readUInt32(content);
        }
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);

        IsoTypeWriter.writeUInt32(byteBuffer, sampleNumber.length);

        for (long aSampleNumber : sampleNumber) {
            IsoTypeWriter.writeUInt32(byteBuffer, aSampleNumber);
        }

    
protected longgetContentSize()

        return sampleNumber.length * 4 + 8;
    
public long[]getSampleNumber()
Gives the numbers of the samples that are random access points in the stream.

return
random access sample numbers.

        return sampleNumber;
    
public voidsetSampleNumber(long[] sampleNumber)

        this.sampleNumber = sampleNumber;
    
public java.lang.StringtoString()

        return "SyncSampleBox[entryCount=" + sampleNumber.length + "]";