org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class CompositionOffsetBox
java.lang.Object
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.CompositionOffsetBox
public class CompositionOffsetBox
- extends FullBox
8.6.1.3.1 Definition
- Box Type: �?ctts’
- Container:
SampleTableBox (�?stbl’)
- Mandatory: No
- Quantity: Zero or one
This box provides the offset between decoding time and composition time. Since decoding time must be less than the
composition time, the offsets are expressed as unsigned numbers such that CT(n) = DT(n) + CTTS(n) where CTTS(n) is
the (uncompressed) table entry for sample n.
The composition time to sample table is optional and must only be present if DT and CT differ for any samples. Hint
tracks do not use this box.
- Author:
- amit bhayani
| Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box |
bytetoTypeMap |
| Methods inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box |
comparebytes, getSize, getType, read, read16, read24, read32, readFixedPoint1616, readText, readType, readU32, readU64 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositionOffsetBox
public CompositionOffsetBox(long size)
load
protected int load(java.io.DataInputStream fin)
throws java.io.IOException
- Description copied from class:
Box
- Loads Box from stream.
- Overrides:
load in class FullBox
- Parameters:
fin - the stream to load box from
- Returns:
- the number of bytes readed from stream; *
- Throws:
java.io.IOException - if some I/O error occured.
getSampleCount
public long[] getSampleCount()
getSampleOffset
public long[] getSampleOffset()
Copyright © 2010. All Rights Reserved.