isobmff-builder-0.10.0.0: A (bytestring-) builder for the ISO-14496-12 base media file format

Safe HaskellNone
LanguageHaskell2010

Data.ByteString.IsoBaseFileFormat.Brands.Dash

Description

Predefined Box composition matching the dash brand. TODO this is an incomplete, special-purpose variant of this brand, serving my personal, educational, current need. This is a convenient way of building documents of that kind.

Synopsis

Documentation

data Dash version Source #

A phantom type to indicate this branding. Version can be 0 or 1 it is used in some boxes to switch between 32/64 bits.

Instances

IsBrand * (Dash v) Source #

A BoxLayout which contains the stuff needed for the dash brand. TODO incomplete

Associated Types

type BoxLayout (Dash v) (brand :: Dash v) :: * Source #

Methods

mediaBuilder :: (IsBoxContent t, (Bool ~ IsRuleConform * * t (BoxLayout (Dash v) brand)) True) => proxy brand -> t -> Builder Source #

type BoxLayout * (Dash v) Source # 
type BoxLayout * (Dash v) = Boxes ((:) * (OM_ FileType) ((:) * (OM Movie ((:) * (OM_ (MovieHeader v)) ((:) * (SM Track ((:) * (OM_ (TrackHeader v)) ((:) * (OM Media ((:) * (OM_ (MediaHeader v)) ((:) * (OM_ Handler) ((:) * (OM MediaInformation ((:) Type (OneOf ((:) * (OM_ VideoMediaHeader) ((:) * (OM_ SoundMediaHeader) ((:) * (OM_ HintMediaHeader) ((:) * (OM_ NullMediaHeader) ([] *)))))) ((:) Type (OM DataInformation ((:) * (OM DataReference ((:) Type (OneOf ((:) * (OM_ DataEntryUrl) ((:) * (OM_ DataEntryUrn) ([] *)))) ((:) Type (SomeOptionalX Type (OneOf ((:) * (OM_ DataEntryUrl) ((:) * (OM_ DataEntryUrn) ([] *))))) ([] Type)))) ([] *))) ([] Type)))) ([] *))))) ([] *)))) ([] *)))) ((:) * (SO_ Skip) ([] *))))

data SingleAudioTrackInit Source #

A record which contains the stuff needed for a single track initialization document according to the Dash brand. TODO incomplete

mkSingleTrackInit :: SingleAudioTrackInit -> Builder Source #

Convert a SingleAudioTrackInit record to a generic Boxes collection.