org.jcodec.containers.mp4.boxes
Class MediaHeaderBox

java.lang.Object
  extended by org.jcodec.containers.mp4.boxes.Box
      extended by org.jcodec.containers.mp4.boxes.FullBox
          extended by org.jcodec.containers.mp4.boxes.MediaHeaderBox

public class MediaHeaderBox
extends FullBox

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License A media header atom

Author:
Jay Codec

Field Summary
 
Fields inherited from class org.jcodec.containers.mp4.boxes.FullBox
flags, version
 
Fields inherited from class org.jcodec.containers.mp4.boxes.Box
header
 
Constructor Summary
MediaHeaderBox()
           
MediaHeaderBox(int timescale, long duration, int language, long created, long modified, int quality)
           
 
Method Summary
 void doWrite(ByteBuffer out)
           
protected  void dump(StringBuilder sb)
           
static String fourcc()
           
 long getDuration()
           
 int getTimescale()
           
 void parse(ByteBuffer input)
           
 void setDuration(long duration)
           
 void setTimescale(int timescale)
           
 
Methods inherited from class org.jcodec.containers.mp4.boxes.FullBox
getFlags, getVersion, setFlags, setVersion
 
Methods inherited from class org.jcodec.containers.mp4.boxes.Box
as, findAll, findAll, findFirst, findFirst, getFourcc, getHeader, toString, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MediaHeaderBox

public MediaHeaderBox(int timescale,
                      long duration,
                      int language,
                      long created,
                      long modified,
                      int quality)

MediaHeaderBox

public MediaHeaderBox()
Method Detail

fourcc

public static String fourcc()

parse

public void parse(ByteBuffer input)
Overrides:
parse in class FullBox

getTimescale

public int getTimescale()

getDuration

public long getDuration()

doWrite

public void doWrite(ByteBuffer out)
Overrides:
doWrite in class FullBox

setDuration

public void setDuration(long duration)

setTimescale

public void setTimescale(int timescale)

dump

protected void dump(StringBuilder sb)
Overrides:
dump in class Box


Copyright © 2013. All Rights Reserved.