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

TrackExtendsBox

public class TrackExtendsBox extends com.googlecode.mp4parser.AbstractFullBox
aligned(8) class TrackExtendsBox extends FullBox('trex', 0, 0){ unsigned int(32) track_ID; unsigned int(32) default_sample_description_index; unsigned int(32) default_sample_duration; unsigned int(32) default_sample_size; unsigned int(32) default_sample_flags }

Fields Summary
public static final String
TYPE
private long
trackId
private long
defaultSampleDescriptionIndex
private long
defaultSampleDuration
private long
defaultSampleSize
private SampleFlags
defaultSampleFlags
Constructors Summary
public TrackExtendsBox()


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

        parseVersionAndFlags(content);
        trackId = IsoTypeReader.readUInt32(content);
        defaultSampleDescriptionIndex = IsoTypeReader.readUInt32(content);
        defaultSampleDuration = IsoTypeReader.readUInt32(content);
        defaultSampleSize = IsoTypeReader.readUInt32(content);
        defaultSampleFlags = new SampleFlags(content);
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeUInt32(byteBuffer, trackId);
        IsoTypeWriter.writeUInt32(byteBuffer, defaultSampleDescriptionIndex);
        IsoTypeWriter.writeUInt32(byteBuffer, defaultSampleDuration);
        IsoTypeWriter.writeUInt32(byteBuffer, defaultSampleSize);
        defaultSampleFlags.getContent(byteBuffer);
    
protected longgetContentSize()

        return 5 * 4 + 4;
    
public longgetDefaultSampleDescriptionIndex()

        return defaultSampleDescriptionIndex;
    
public longgetDefaultSampleDuration()

        return defaultSampleDuration;
    
public SampleFlagsgetDefaultSampleFlags()

        return defaultSampleFlags;
    
public java.lang.StringgetDefaultSampleFlagsStr()

        return defaultSampleFlags.toString();
    
public longgetDefaultSampleSize()

        return defaultSampleSize;
    
public longgetTrackId()

        return trackId;
    
public voidsetDefaultSampleDescriptionIndex(long defaultSampleDescriptionIndex)

        this.defaultSampleDescriptionIndex = defaultSampleDescriptionIndex;
    
public voidsetDefaultSampleDuration(long defaultSampleDuration)

        this.defaultSampleDuration = defaultSampleDuration;
    
public voidsetDefaultSampleFlags(SampleFlags defaultSampleFlags)

        this.defaultSampleFlags = defaultSampleFlags;

    
public voidsetDefaultSampleSize(long defaultSampleSize)

        this.defaultSampleSize = defaultSampleSize;
    
public voidsetTrackId(long trackId)

        this.trackId = trackId;