| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Data.ByteString.IsoBaseFileFormat.Boxes.TimeToSample
Description
A table assigns each video frame or audio sample block, this is useful for seeking in complex media files.
Synopsis
- type TimeToSample = FullBox TimeToSampleTable 0
 - type SttsEntry = U32 "sample_count" :+ U32 "sample_delta"
 - newtype TimeToSampleTable = TimeToSampleTable (ListContent (U32 "entry_count") SttsEntry)
 - timeToSample :: [SttsEntry] -> Box TimeToSample
 
Documentation
type TimeToSample = FullBox TimeToSampleTable 0 Source #
An alias for the box content type.
type SttsEntry = U32 "sample_count" :+ U32 "sample_delta" Source #
Define an entry of the compact table, that specifes the namber of samples with the same time delta. (All this to help random seeking in media).
newtype TimeToSampleTable Source #
A compact table to map decoding time to sample number.
Constructors
| TimeToSampleTable (ListContent (U32 "entry_count") SttsEntry) | 
Instances
| Default TimeToSampleTable Source # | |
Defined in Data.ByteString.IsoBaseFileFormat.Boxes.TimeToSample Methods  | |
| IsBoxContent TimeToSampleTable Source # | |
Defined in Data.ByteString.IsoBaseFileFormat.Boxes.TimeToSample Methods boxSize :: TimeToSampleTable -> BoxSize Source #  | |
| IsBox TimeToSampleTable Source # | |
Defined in Data.ByteString.IsoBaseFileFormat.Boxes.TimeToSample Associated Types type BoxContent TimeToSampleTable :: Type Source # Methods toBoxType :: proxy TimeToSampleTable -> BoxType Source #  | |
| type BoxContent TimeToSampleTable Source # | |
| type BoxTypeSymbol TimeToSampleTable Source # | |
timeToSample :: [SttsEntry] -> Box TimeToSample Source #
Create a hint media header data box.