public class FileHeader extends Chunk
Modifier and Type | Field and Description |
---|---|
private java.math.BigInteger |
duration
Duration of the media content in 100ns steps.
|
private java.util.Date |
fileCreationTime
The time the file was created.
|
private java.math.BigInteger |
fileSize
Size of the file or stream.
|
private long |
flags
Usually contains value of 2.
|
private long |
maxPackageSize
Maximum size of stream packages.
|
private long |
minPackageSize
Minimun size of stream packages.
|
private java.math.BigInteger |
packageCount
Number of stream packages within the File.
|
private java.math.BigInteger |
timeEndPos
No Idea of the Meaning, but stored anyway.
|
private java.math.BigInteger |
timeStartPos
Like
timeEndPos no Idea. |
private long |
uncompressedFrameSize
Size of an uncompressed video frame.
|
chunkLength, guid, position
Constructor and Description |
---|
FileHeader(java.math.BigInteger chunckLen,
java.math.BigInteger size,
java.math.BigInteger fileTime,
java.math.BigInteger pkgCount,
java.math.BigInteger dur,
java.math.BigInteger timestampStart,
java.math.BigInteger timestampEnd,
long headerFlags,
long minPkgSize,
long maxPkgSize,
long uncmpVideoFrameSize)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
getDuration() |
int |
getDurationInSeconds()
This method converts
getDuration() from 100ns steps to normal
seconds. |
java.util.Date |
getFileCreationTime() |
java.math.BigInteger |
getFileSize() |
long |
getFlags() |
long |
getMaxPackageSize() |
long |
getMinPackageSize() |
java.math.BigInteger |
getPackageCount() |
float |
getPreciseDuration()
This method converts
getDuration() from 100ns steps to normal
seconds with a fractional part taking milliseconds. |
java.math.BigInteger |
getTimeEndPos() |
java.math.BigInteger |
getTimeStartPos() |
long |
getUncompressedFrameSize() |
java.lang.String |
prettyPrint(java.lang.String prefix)
(overridden)
|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
private final java.math.BigInteger duration
private final java.util.Date fileCreationTime
private final java.math.BigInteger fileSize
private final long flags
private final long maxPackageSize
minPackageSize
. Its not
known how to handle deviating values.private final long minPackageSize
maxPackageSize
. Its not
known how to handle deviating values.private final java.math.BigInteger packageCount
private final java.math.BigInteger timeEndPos
private final java.math.BigInteger timeStartPos
timeEndPos
no Idea.private final long uncompressedFrameSize
public FileHeader(java.math.BigInteger chunckLen, java.math.BigInteger size, java.math.BigInteger fileTime, java.math.BigInteger pkgCount, java.math.BigInteger dur, java.math.BigInteger timestampStart, java.math.BigInteger timestampEnd, long headerFlags, long minPkgSize, long maxPkgSize, long uncmpVideoFrameSize)
chunckLen
- Length of the file header (chunk)size
- Size of file or streamfileTime
- Time file or stream was created. Time is calculated since 1st
january of 1601 in 100ns steps.pkgCount
- Number of stream packages.dur
- Duration of media clip in 100ns stepstimestampStart
- Timestamp of start timeStartPos
timestampEnd
- Timestamp of end timeEndPos
headerFlags
- some stream related flags.minPkgSize
- minimum size of packagesmaxPkgSize
- maximum size of packagesuncmpVideoFrameSize
- Size of an uncompressed Video Frame.public java.math.BigInteger getDuration()
public int getDurationInSeconds()
getDuration()
from 100ns steps to normal
seconds.public java.util.Date getFileCreationTime()
public java.math.BigInteger getFileSize()
public long getFlags()
public long getMaxPackageSize()
public long getMinPackageSize()
public java.math.BigInteger getPackageCount()
public float getPreciseDuration()
getDuration()
from 100ns steps to normal
seconds with a fractional part taking milliseconds.public java.math.BigInteger getTimeEndPos()
public java.math.BigInteger getTimeStartPos()
public long getUncompressedFrameSize()
public java.lang.String prettyPrint(java.lang.String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.Chunk.prettyPrint(String)
Copyright © 2005-2013 java.net. All Rights Reserved.