Safe Haskell | None |
---|---|
Language | Haskell2010 |
A box containing the sample count and sample size table.
- 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
.