Safe Haskell | None |
---|---|
Language | Haskell2010 |
A box containing the sample count and sample size table.
Synopsis
- type SampleSize = FullBox SampleSizeTable 0
- fixedSampleSize :: Word32 -> Word32 -> Box SampleSize
- individualSampleSizes :: [Word32] -> Box SampleSize
- data SampleSizeTable
- = FixedSampleSize {
- sampleSize :: !Word32
- sampleCount :: !Word32
- | SampleSizeTable !(ListContent Word32 Word32)
- = FixedSampleSize {
Documentation
type SampleSize = FullBox SampleSizeTable 0 Source #
Content type of the FullBox
containing the SampleSize
.
fixedSampleSize :: Word32 -> Word32 -> Box SampleSize Source #
Create a SampleSize
box for the case where all sample sizes are equal, no
table with the size of each sample is required.
individualSampleSizes :: [Word32] -> Box SampleSize Source #
Create a SampleSize
box for the case where samples have different sizes.
The list MUST contain an entry for **every sample** in the media file.
data SampleSizeTable Source #
The SampleSize
box content. If sampleSize == 0
then each sample has its
own size and the table
field contains an entry for **every** sample, the
number of entries is stored in sampleCount
. Otherwise the samples are
assumed to all have the same size: sampleSize
.
FixedSampleSize | |
| |
SampleSizeTable !(ListContent Word32 Word32) |
Instances
IsBoxContent SampleSizeTable Source # | |
Defined in Data.ByteString.IsoBaseFileFormat.Boxes.SampleSize boxSize :: SampleSizeTable -> BoxSize Source # boxBuilder :: SampleSizeTable -> Builder Source # | |
IsBox SampleSizeTable Source # | |
Defined in Data.ByteString.IsoBaseFileFormat.Boxes.SampleSize type BoxContent SampleSizeTable :: Type Source # toBoxType :: proxy SampleSizeTable -> BoxType Source # | |
type BoxContent SampleSizeTable Source # | |
type BoxTypeSymbol SampleSizeTable Source # | |