org.jcodec.containers.mp4.muxer
Class AbstractMP4MuxerTrack

java.lang.Object
  extended by org.jcodec.containers.mp4.muxer.AbstractMP4MuxerTrack
Direct Known Subclasses:
FramesMP4MuxerTrack, PCMMP4MuxerTrack

public abstract class AbstractMP4MuxerTrack
extends Object

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

Author:
The JCodec project

Field Summary
protected  long chunkDuration
           
protected  int chunkNo
           
protected  List<ByteBuffer> curChunk
           
protected  List<Edit> edits
           
protected  boolean finished
           
protected  List<SampleEntry> sampleEntries
           
protected  List<SampleToChunkBox.SampleToChunkEntry> samplesInChunks
           
protected  int samplesInLastChunk
           
protected  Rational tgtChunkDuration
           
protected  Unit tgtChunkDurationUnit
           
protected  int timescale
           
protected  int trackId
           
protected  TrackType type
           
 
Constructor Summary
AbstractMP4MuxerTrack(int trackId, TrackType type, int timescale)
           
 
Method Summary
protected  void addDref(NodeBox minf)
           
 void addSampleEntry(SampleEntry se)
           
protected abstract  Box finish(MovieHeaderBox mvhd)
           
 Size getDisplayDimensions()
           
 List<SampleEntry> getEntries()
           
 int getTimescale()
           
abstract  long getTrackTotalDuration()
           
 boolean isAudio()
           
 boolean isTimecode()
           
 boolean isVideo()
           
protected  void mediaHeader(MediaInfoBox minf, TrackType type)
           
protected  void putEdits(TrakBox trak)
           
protected  void putName(TrakBox trak)
           
 void setEdits(List<Edit> edits)
           
 void setName(String name)
           
 void setTgtChunkDuration(Rational duration, Unit unit)
           
 void tapt(TrakBox trak)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trackId

protected int trackId

type

protected TrackType type

timescale

protected int timescale

tgtChunkDuration

protected Rational tgtChunkDuration

tgtChunkDurationUnit

protected Unit tgtChunkDurationUnit

chunkDuration

protected long chunkDuration

curChunk

protected List<ByteBuffer> curChunk

samplesInChunks

protected List<SampleToChunkBox.SampleToChunkEntry> samplesInChunks

samplesInLastChunk

protected int samplesInLastChunk

chunkNo

protected int chunkNo

finished

protected boolean finished

sampleEntries

protected List<SampleEntry> sampleEntries

edits

protected List<Edit> edits
Constructor Detail

AbstractMP4MuxerTrack

public AbstractMP4MuxerTrack(int trackId,
                             TrackType type,
                             int timescale)
Method Detail

setTgtChunkDuration

public void setTgtChunkDuration(Rational duration,
                                Unit unit)

getTrackTotalDuration

public abstract long getTrackTotalDuration()

getTimescale

public int getTimescale()

finish

protected abstract Box finish(MovieHeaderBox mvhd)
                       throws IOException
Throws:
IOException

isVideo

public boolean isVideo()

isTimecode

public boolean isTimecode()

isAudio

public boolean isAudio()

getDisplayDimensions

public Size getDisplayDimensions()

tapt

public void tapt(TrakBox trak)

addSampleEntry

public void addSampleEntry(SampleEntry se)

getEntries

public List<SampleEntry> getEntries()

setEdits

public void setEdits(List<Edit> edits)

putEdits

protected void putEdits(TrakBox trak)

setName

public void setName(String name)

putName

protected void putName(TrakBox trak)

mediaHeader

protected void mediaHeader(MediaInfoBox minf,
                           TrackType type)

addDref

protected void addDref(NodeBox minf)


Copyright © 2013. All Rights Reserved.