Class TrackExtendsBox

  • All Implemented Interfaces:
    Box, FullBox, ParsableBox

    public class TrackExtendsBox
    extends AbstractFullBox

    4cc = ""trex""

    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 }
    • Constructor Detail

      • TrackExtendsBox

        public TrackExtendsBox()
    • Method Detail

      • getContent

        protected void getContent​(ByteBuffer byteBuffer)
        Description copied from class: AbstractBox
        Write the box's content into the given ByteBuffer. This must include flags and version in case of a full box. byteBuffer has been initialized with getSize() bytes.
        Specified by:
        getContent in class AbstractBox
        Parameters:
        byteBuffer - the sink for the box's content
      • _parseDetails

        public void _parseDetails​(ByteBuffer content)
        Description copied from class: AbstractBox
        Parse the box's fields and child boxes if any.
        Specified by:
        _parseDetails in class AbstractBox
        Parameters:
        content - the box's raw content beginning after the 4-cc field.
      • getTrackId

        public long getTrackId()
      • setTrackId

        public void setTrackId​(long trackId)
      • getDefaultSampleDescriptionIndex

        public long getDefaultSampleDescriptionIndex()
      • setDefaultSampleDescriptionIndex

        public void setDefaultSampleDescriptionIndex​(long defaultSampleDescriptionIndex)
      • getDefaultSampleDuration

        public long getDefaultSampleDuration()
      • setDefaultSampleDuration

        public void setDefaultSampleDuration​(long defaultSampleDuration)
      • getDefaultSampleSize

        public long getDefaultSampleSize()
      • setDefaultSampleSize

        public void setDefaultSampleSize​(long defaultSampleSize)
      • getDefaultSampleFlags

        public SampleFlags getDefaultSampleFlags()
      • setDefaultSampleFlags

        public void setDefaultSampleFlags​(SampleFlags defaultSampleFlags)
      • getDefaultSampleFlagsStr

        public String getDefaultSampleFlagsStr()