org.jaudiotagger.audio.mp4.atom
Class Mp4MvhdBox

java.lang.Object
  extended by org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
      extended by org.jaudiotagger.audio.mp4.atom.Mp4MvhdBox

public class Mp4MvhdBox
extends AbstractMp4Box

MvhdBox (movie (presentation) header box)

This MP4Box contains important audio information we need. It can be used to calculate track length, depending on the version field this can be in either short or long format


Field Summary
static int CREATED_DATE_LONG_LENGTH
           
static int CREATED_DATE_LONG_POS
           
static int CREATED_DATE_SHORT_LENGTH
           
static int CREATED_DATE_SHORT_POS
           
static int DURATION_LONG_LENGTH
           
static int DURATION_LONG_POS
           
static int DURATION_SHORT_LENGTH
           
static int DURATION_SHORT_POS
           
private static int LONG_FORMAT
           
static int MODIFIED_DATE_LONG_LENGTH
           
static int MODIFIED_DATE_LONG_POS
           
static int MODIFIED_DATE_SHORT_LENGTH
           
static int MODIFIED_DATE_SHORT_POS
           
static int OTHER_FLAG_LENGTH
           
static int OTHER_FLAG_POS
           
private  long timeLength
           
private  int timeScale
           
static int TIMESCALE_LENGTH
           
static int TIMESCALE_LONG_POS
           
static int TIMESCALE_SHORT_POS
           
static int VERSION_FLAG_LENGTH
           
static int VERSION_FLAG_POS
           
 
Fields inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
dataBuffer, header
 
Constructor Summary
Mp4MvhdBox(Mp4BoxHeader header, java.nio.ByteBuffer dataBuffer)
           
 
Method Summary
 int getLength()
           
 
Methods inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
getData, getHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_FLAG_POS

public static final int VERSION_FLAG_POS
See Also:
Constant Field Values

OTHER_FLAG_POS

public static final int OTHER_FLAG_POS
See Also:
Constant Field Values

CREATED_DATE_SHORT_POS

public static final int CREATED_DATE_SHORT_POS
See Also:
Constant Field Values

MODIFIED_DATE_SHORT_POS

public static final int MODIFIED_DATE_SHORT_POS
See Also:
Constant Field Values

TIMESCALE_SHORT_POS

public static final int TIMESCALE_SHORT_POS
See Also:
Constant Field Values

DURATION_SHORT_POS

public static final int DURATION_SHORT_POS
See Also:
Constant Field Values

CREATED_DATE_LONG_POS

public static final int CREATED_DATE_LONG_POS
See Also:
Constant Field Values

MODIFIED_DATE_LONG_POS

public static final int MODIFIED_DATE_LONG_POS
See Also:
Constant Field Values

TIMESCALE_LONG_POS

public static final int TIMESCALE_LONG_POS
See Also:
Constant Field Values

DURATION_LONG_POS

public static final int DURATION_LONG_POS
See Also:
Constant Field Values

VERSION_FLAG_LENGTH

public static final int VERSION_FLAG_LENGTH
See Also:
Constant Field Values

OTHER_FLAG_LENGTH

public static final int OTHER_FLAG_LENGTH
See Also:
Constant Field Values

CREATED_DATE_SHORT_LENGTH

public static final int CREATED_DATE_SHORT_LENGTH
See Also:
Constant Field Values

MODIFIED_DATE_SHORT_LENGTH

public static final int MODIFIED_DATE_SHORT_LENGTH
See Also:
Constant Field Values

CREATED_DATE_LONG_LENGTH

public static final int CREATED_DATE_LONG_LENGTH
See Also:
Constant Field Values

MODIFIED_DATE_LONG_LENGTH

public static final int MODIFIED_DATE_LONG_LENGTH
See Also:
Constant Field Values

TIMESCALE_LENGTH

public static final int TIMESCALE_LENGTH
See Also:
Constant Field Values

DURATION_SHORT_LENGTH

public static final int DURATION_SHORT_LENGTH
See Also:
Constant Field Values

DURATION_LONG_LENGTH

public static final int DURATION_LONG_LENGTH
See Also:
Constant Field Values

LONG_FORMAT

private static final int LONG_FORMAT
See Also:
Constant Field Values

timeScale

private int timeScale

timeLength

private long timeLength
Constructor Detail

Mp4MvhdBox

public Mp4MvhdBox(Mp4BoxHeader header,
                  java.nio.ByteBuffer dataBuffer)
Parameters:
header - header info
dataBuffer - data of box (doesnt include header data)
Method Detail

getLength

public int getLength()