public class FileHeader extends Chunk
chunkLength, guid, position
Constructor and Description |
---|
FileHeader(BigInteger chunckLen,
BigInteger size,
BigInteger fileTime,
BigInteger pkgCount,
BigInteger dur,
BigInteger timestampStart,
BigInteger timestampEnd,
long headerFlags,
long minPkgSize,
long maxPkgSize,
long uncmpVideoFrameSize)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
getDuration() |
int |
getDurationInSeconds()
This method converts
getDuration() from 100ns steps to normal
seconds. |
Date |
getFileCreationTime() |
BigInteger |
getFileSize() |
long |
getFlags() |
long |
getMaxPackageSize() |
long |
getMinPackageSize() |
BigInteger |
getPackageCount() |
float |
getPreciseDuration()
This method converts
getDuration() from 100ns steps to normal
seconds with a fractional part taking milliseconds. |
BigInteger |
getTimeEndPos() |
BigInteger |
getTimeStartPos() |
long |
getUncompressedFrameSize() |
String |
prettyPrint(String prefix)
(overridden)
|
getChunckEnd, getChunkEnd, getChunkLength, getGuid, getPosition, setPosition, toString
public FileHeader(BigInteger chunckLen, BigInteger size, BigInteger fileTime, BigInteger pkgCount, BigInteger dur, BigInteger timestampStart, 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 BigInteger getDuration()
public int getDurationInSeconds()
getDuration()
from 100ns steps to normal
seconds.public Date getFileCreationTime()
public BigInteger getFileSize()
public long getFlags()
public long getMaxPackageSize()
public long getMinPackageSize()
public BigInteger getPackageCount()
public float getPreciseDuration()
getDuration()
from 100ns steps to normal
seconds with a fractional part taking milliseconds.public BigInteger getTimeEndPos()
public BigInteger getTimeStartPos()
public long getUncompressedFrameSize()
public String prettyPrint(String prefix)
prettyPrint
in class Chunk
prefix
- each line gets this string prepended.Chunk.prettyPrint(String)
Copyright © 2005–2020 jthink.net. All rights reserved.