FileDocCategorySizeDatePackage
TemporalLevelEntry.javaAPI Docmp4parser 1.0-RC-173101Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser.boxes.mp4.samplegrouping

TemporalLevelEntry

public class TemporalLevelEntry extends GroupEntry
The Temporal Level sample grouping ('tele') provides a codec-independent sample grouping that can be used to group samples (access units) in a track (and potential track fragments) according to temporal level, where samples of one temporal level have no coding dependencies on samples of higher temporal levels. The temporal level equals the sample group description index (taking values 1, 2, 3, etc). The bitstream containing only the access units from the first temporal level to a higher temporal level remains conforming to the coding standard. A grouping according to temporal level facilitates easy extraction of temporal subsequences, for instance using the Subsegment Indexing box in 0.

Fields Summary
public static final String
TYPE
private boolean
levelIndependentlyDecodable
private short
reserved
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object o)

        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TemporalLevelEntry that = (TemporalLevelEntry) o;

        if (levelIndependentlyDecodable != that.levelIndependentlyDecodable) return false;
        if (reserved != that.reserved) return false;

        return true;
    
public java.nio.ByteBufferget()

        ByteBuffer content = ByteBuffer.allocate(1);
        content.put((byte) (levelIndependentlyDecodable ? 0x80 : 0x00));
        content.rewind();
        return content;
    
public inthashCode()

        int result = (levelIndependentlyDecodable ? 1 : 0);
        result = 31 * result + (int) reserved;
        return result;
    
public booleanisLevelIndependentlyDecodable()


       
        return levelIndependentlyDecodable;
    
public voidparse(java.nio.ByteBuffer byteBuffer)

        final byte b = byteBuffer.get();
        levelIndependentlyDecodable = ((b & 0x80) == 0x80);
    
public voidsetLevelIndependentlyDecodable(boolean levelIndependentlyDecodable)

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

        final StringBuilder sb = new StringBuilder();
        sb.append("TemporalLevelEntry");
        sb.append("{levelIndependentlyDecodable=").append(levelIndependentlyDecodable);
        sb.append('}");
        return sb.toString();