public class TrackHeaderBox extends AbstractFullBox
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
type
Constructor and Description |
---|
TrackHeaderBox() |
Modifier and Type | Method and Description |
---|---|
void |
_parseDetails(ByteBuffer content)
Parse the box's fields and child boxes if any.
|
int |
getAlternateGroup() |
void |
getContent(ByteBuffer byteBuffer)
Write the box's content into the given
ByteBuffer . |
protected long |
getContentSize()
Get the box's content size without its header.
|
Date |
getCreationTime() |
long |
getDuration() |
double |
getHeight() |
int |
getLayer() |
Matrix |
getMatrix() |
Date |
getModificationTime() |
long |
getTrackId() |
float |
getVolume() |
double |
getWidth() |
boolean |
isEnabled() |
boolean |
isInMovie() |
boolean |
isInPoster() |
boolean |
isInPreview() |
void |
setAlternateGroup(int alternateGroup) |
void |
setCreationTime(Date creationTime) |
void |
setDuration(long duration) |
void |
setEnabled(boolean enabled) |
void |
setHeight(double height) |
void |
setInMovie(boolean inMovie) |
void |
setInPoster(boolean inPoster) |
void |
setInPreview(boolean inPreview) |
void |
setLayer(int layer) |
void |
setMatrix(Matrix matrix) |
void |
setModificationTime(Date modificationTime) |
void |
setTrackId(long trackId) |
void |
setVolume(float volume) |
void |
setWidth(double width) |
String |
toString() |
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlags
getBox, getOffset, getParent, getPath, getSize, getType, getUserType, isParsed, parse, parseDetails, setDeadBytes, setParent
public static final String TYPE
public Date getCreationTime()
public Date getModificationTime()
public long getTrackId()
public long getDuration()
public int getLayer()
public int getAlternateGroup()
public float getVolume()
public Matrix getMatrix()
public double getWidth()
public double getHeight()
protected long getContentSize()
AbstractBox
getContent(ByteBuffer)
writes.getContentSize
in class AbstractBox
AbstractBox.getContent(java.nio.ByteBuffer)
public void _parseDetails(ByteBuffer content)
AbstractBox
_parseDetails
in class AbstractBox
content
- the box's raw content beginning after the 4-cc field.public void getContent(ByteBuffer byteBuffer)
AbstractBox
ByteBuffer
. This must include flags
and version in case of a full box. byteBuffer
has been initialized with
getSize()
bytes.getContent
in class AbstractBox
byteBuffer
- the sink for the box's contentpublic void setCreationTime(Date creationTime)
public void setModificationTime(Date modificationTime)
public void setTrackId(long trackId)
public void setDuration(long duration)
public void setLayer(int layer)
public void setAlternateGroup(int alternateGroup)
public void setVolume(float volume)
public void setMatrix(Matrix matrix)
public void setWidth(double width)
public void setHeight(double height)
public boolean isEnabled()
public boolean isInMovie()
public boolean isInPreview()
public boolean isInPoster()
public void setEnabled(boolean enabled)
public void setInMovie(boolean inMovie)
public void setInPreview(boolean inPreview)
public void setInPoster(boolean inPoster)
Copyright © 2014. All rights reserved.