Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MoovHeader ¶
type MoovHeader struct {
MOOV_loc int64
//start location of trac atoms
TRAC_locs []TrakLocInfo
}
func ReadMVHDTimescaleAndDuration ¶
func ReadMVHDTimescaleAndDuration(file *os.File) (moov_info *MoovHeader, timescale uint32, duration uint64, err error)
The function doesn't assume anything regarding the position of the file. It will start from the beginning, and it will read until an MOOV atom is found. If not found, it errors out with the position of the file being left most probably at the EOF. IF an error occurs even before that, the file position is left where the error occurred. The user shouldn't make any assumption as of where the file's position is located.
type TrakLocInfo ¶
Click to show internal directories.
Click to hide internal directories.