org.jcodec.containers.mp4.boxes
Class TrakBox

java.lang.Object
  extended by org.jcodec.containers.mp4.boxes.Box
      extended by org.jcodec.containers.mp4.boxes.NodeBox
          extended by org.jcodec.containers.mp4.boxes.TrakBox

public class TrakBox
extends NodeBox

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Creates MP4 file out of a set of samples

Author:
The JCodec project

Field Summary
 
Fields inherited from class org.jcodec.containers.mp4.boxes.NodeBox
boxes, factory
 
Fields inherited from class org.jcodec.containers.mp4.boxes.Box
header
 
Constructor Summary
TrakBox()
           
TrakBox(Header atom)
           
 
Method Summary
 void fixMediaTimescale(int ts)
           
static String fourcc()
           
 Size getCodedSize()
          Retrieves coded size of this video track.
 long getDuration()
           
 List<Edit> getEdits()
           
 int getFrameCount()
           
 String getHandlerType()
           
 MediaBox getMdia()
           
 long getMediaDuration()
           
 String getName()
           
 Rational getPAR()
           
 long getSampleCount()
           
 SampleEntry[] getSampleEntries()
           
 int getTimescale()
           
 TrackHeaderBox getTrackHeader()
           
 boolean hasDataRef()
           
 boolean isAudio()
           
 boolean isPureRef()
           
 boolean isTimecode()
           
 boolean isVideo()
           
 long rescale(long tv, long ts)
           
 void setAperture(Size sar, Size dar)
           
 void setClipRect(short x, short y, short width, short height)
           
 void setDataRef(String url)
           
 void setDimensions(Size dd)
           
 void setDuration(long duration)
           
 void setEdits(List<Edit> edits)
           
 void setName(String string)
           
 void setPAR(Rational par)
           
 
Methods inherited from class org.jcodec.containers.mp4.boxes.NodeBox
add, addFirst, doWrite, dump, dumpBoxes, getBoxes, newBox, parse, parseBox, parseChildBox, removeChildren, replace
 
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

TrakBox

public TrakBox(Header atom)

TrakBox

public TrakBox()
Method Detail

fourcc

public static String fourcc()

setDataRef

public void setDataRef(String url)

getMdia

public MediaBox getMdia()

getTrackHeader

public TrackHeaderBox getTrackHeader()

getEdits

public List<Edit> getEdits()

setEdits

public void setEdits(List<Edit> edits)

isVideo

public boolean isVideo()

isTimecode

public boolean isTimecode()

getHandlerType

public String getHandlerType()

isAudio

public boolean isAudio()

getTimescale

public int getTimescale()

rescale

public long rescale(long tv,
                    long ts)

setDuration

public void setDuration(long duration)

getDuration

public long getDuration()

getMediaDuration

public long getMediaDuration()

isPureRef

public boolean isPureRef()

hasDataRef

public boolean hasDataRef()

getPAR

public Rational getPAR()

setPAR

public void setPAR(Rational par)

getSampleEntries

public SampleEntry[] getSampleEntries()

setClipRect

public void setClipRect(short x,
                        short y,
                        short width,
                        short height)

getSampleCount

public long getSampleCount()

setAperture

public void setAperture(Size sar,
                        Size dar)

setDimensions

public void setDimensions(Size dd)

getFrameCount

public int getFrameCount()

getName

public String getName()

fixMediaTimescale

public void fixMediaTimescale(int ts)

setName

public void setName(String string)

getCodedSize

public Size getCodedSize()
Retrieves coded size of this video track. Note: May be different from video display dimension.

Returns:


Copyright © 2013. All Rights Reserved.