org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class TrackHeaderBox

java.lang.Object
  extended by org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
      extended by org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
          extended by org.mobicents.media.server.impl.resource.mediaplayer.mpeg.TrackHeaderBox

public class TrackHeaderBox
extends FullBox

8.3.2.1 Definition

This box specifies the characteristics of a single track. Exactly one Track Header Box is contained in a track. In the absence of an edit list, the presentation of a track starts at the beginning of the overall presentation. An empty edit is used to offset the start time of a track.

The default value of the track header flags for media tracks is 7 (track_enabled, track_in_movie, track_in_preview). If in a presentation all tracks have neither track_in_movie nor track_in_preview set, then all tracks shall be treated as if both flags were set on all tracks. Hint tracks should have the track header flags set to 0, so that they are ignored for local playback and preview.

The width and height in the track header are measured on a notional �?square’ (uniform) grid. Track video data is normalized to these dimensions (logically) before any transformation or placement caused by a layup or composition system. Track (and movie) matrices, if used, also operate in this uniformly-scaled space.

Author:
kulikov, amit bhayani

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
bytetoTypeMap
 
Constructor Summary
TrackHeaderBox(long size)
           
 
Method Summary
 int getAlternateGroup()
           
 long getCreationTime()
           
 long getDuration()
           
 double getHeight()
           
 int getLayer()
           
 int[] getMatrix()
           
 long getModificationTime()
           
 long getTrackID()
           
 float getVolume()
           
 double getWidth()
           
protected  int load(java.io.DataInputStream fin)
          Loads Box from stream.
 
Methods inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
getFlags, getVersion, read64
 
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
 

Constructor Detail

TrackHeaderBox

public TrackHeaderBox(long size)
Method Detail

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.

getCreationTime

public long getCreationTime()

getModificationTime

public long getModificationTime()

getDuration

public long getDuration()

getTrackID

public long getTrackID()

getLayer

public int getLayer()

getAlternateGroup

public int getAlternateGroup()

getVolume

public float getVolume()

getMatrix

public int[] getMatrix()

getWidth

public double getWidth()

getHeight

public double getHeight()


Copyright © 2010. All Rights Reserved.