Class TrackReferenceTypeBox
java.lang.Object
org.mp4parser.support.AbstractBox
org.mp4parser.boxes.iso14496.part12.TrackReferenceTypeBox
- All Implemented Interfaces:
Box,ParsableBox
This box provides a reference from the containing track to another track in the presentation. These references
are typed. A 'hint' reference links from the containing hint track to the media data that it hints. A content
description reference 'cdsc' links a descriptive or metadata track to the content which it describes. The
'hind' dependency indicates that the referenced track(s)may contain media data required for decoding of
the track containing the track reference. The referenced tracks shall be hint tracks. The 'hind' dependency
can, for example, be used for indicating the dependencies between hint tracks documenting layered IP
multicast over RTP.
Exactly one Track Reference Box can be contained within the Track Box.
If this box is not present, the track is not referencing anyother track in any way. The reference array is sized
to fill the reference type box.
-
Field Summary
Fields inherited from class org.mp4parser.support.AbstractBox
content, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_parseDetails(ByteBuffer content) Parse the box's fields and child boxes if any.protected voidgetContent(ByteBuffer byteBuffer) Write the box's content into the givenByteBuffer.protected longGet the box's content size without its header.long[]voidsetTrackIds(long[] trackIds) Methods inherited from class org.mp4parser.support.AbstractBox
getBox, getSize, getType, getUserType, isParsed, parse, parseDetails
-
Constructor Details
-
TrackReferenceTypeBox
-
-
Method Details
-
getContentSize
protected long getContentSize()Description copied from class:AbstractBoxGet the box's content size without its header. This must be the exact number of bytes thatgetContent(ByteBuffer)writes.- Specified by:
getContentSizein classAbstractBox- Returns:
- Gets the box's content size in bytes
- See Also:
-
getContent
Description copied from class:AbstractBoxWrite the box's content into the givenByteBuffer. This must include flags and version in case of a full box.byteBufferhas been initialized withgetSize()bytes.- Specified by:
getContentin classAbstractBox- Parameters:
byteBuffer- the sink for the box's content
-
_parseDetails
Description copied from class:AbstractBoxParse the box's fields and child boxes if any.- Specified by:
_parseDetailsin classAbstractBox- Parameters:
content- the box's raw content beginning after the 4-cc field.
-
getTrackIds
public long[] getTrackIds() -
setTrackIds
public void setTrackIds(long[] trackIds)
-