isobmff-0.13.0.0: A parser and generator for the ISO-14496-12/14 base media file format

Safe HaskellNone
LanguageHaskell2010

Data.ByteString.IsoBaseFileFormat.Boxes.TrackExtends

Contents

Description

Default values for duration, size and other metadata of track fragments. This might allow a more efficient transfer and decoding of media.

Synopsis

trex Box

trackExtendsUnknownDuration :: Word32 -> Word32 -> Box (FullBox TrackExtends 0) Source #

Construct a TrackExtends box, with all durations and sizes set to 0. Only the track index and the index into the sample description table is passed set.

trackExtends Source #

Arguments

:: Word32

Track ID

-> Word32

Sample Description Index

-> Word32

Sample Duration

-> Word32

Sample Size

-> B 2

is leading

-> B 2

sample depends on

-> B 2

sample is depended on

-> B 2

sample has redundancy

-> B 3

padding value

-> Bool

is non sync sample

-> Word16

sample degradation priority

-> Box (FullBox TrackExtends 0) 

Construct a TrackExtends box from all its parameters

type TrackExtendsBody = ("track_ID" @: FieldU32) .+: (("default_sample_description_index" @: FieldU32) .+: (("default_sample_duration" @: FieldU32) .+: (("default_sample_size" @: FieldU32) .+: TrackExtendsDefaultSampleFlags))) Source #

Defaults for movie fragment - the content

type TrackExtendsDefaultSampleFlags = (("reserved" @: Field 4) := 0) .+: (("is_leading" @: Field 2) .+: (("sample_depends_on" @: Field 2) .+: (("sample_is_depended_on" @: Field 2) .+: (("sample_has_redundancy" @: Field 2) .+: (("sample_padding_value" @: Field 3) .+: (("sample_is_non_sync_sample" @: Flag) .+: (("sample_degradation_priority" @: FieldU16) .+: EmptyBitRecord))))))) Source #