public class TrackHeaderBox extends FullBox
Box.LeafBox
header, MAX_BOX_SIZE
Constructor and Description |
---|
TrackHeaderBox(Header header) |
Modifier and Type | Method and Description |
---|---|
static TrackHeaderBox |
createTrackHeaderBox(int trackId,
long duration,
float width,
float height,
long created,
long modified,
float volume,
short layer,
long altGroup,
int[] matrix) |
void |
doWrite(ByteBuffer out) |
int |
estimateSize() |
static String |
fourcc() |
long |
getAltGroup() |
long |
getCreated() |
long |
getDuration() |
float |
getHeight() |
short |
getLayer() |
int[] |
getMatrix() |
long |
getModified() |
int |
getNo() |
int |
getTrackId() |
float |
getVolume() |
float |
getWidth() |
boolean |
isOrientation0() |
boolean |
isOrientation180() |
boolean |
isOrientation270() |
boolean |
isOrientation90() |
void |
parse(ByteBuffer input) |
void |
setDuration(long duration) |
void |
setHeight(float height) |
void |
setNo(int no) |
void |
setWidth(float width) |
getFlags, getVersion, setFlags, setVersion
public TrackHeaderBox(Header header)
public static String fourcc()
public static TrackHeaderBox createTrackHeaderBox(int trackId, long duration, float width, float height, long created, long modified, float volume, short layer, long altGroup, int[] matrix)
public void parse(ByteBuffer input)
public int getNo()
public long getDuration()
public float getWidth()
public float getHeight()
public void doWrite(ByteBuffer out)
public int estimateSize()
estimateSize
in class Box
public int getTrackId()
public long getCreated()
public long getModified()
public float getVolume()
public short getLayer()
public long getAltGroup()
public int[] getMatrix()
public void setWidth(float width)
public void setHeight(float height)
public void setDuration(long duration)
public void setNo(int no)
public boolean isOrientation0()
public boolean isOrientation90()
public boolean isOrientation180()
public boolean isOrientation270()
Copyright © 2019. All rights reserved.