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

Safe HaskellNone
LanguageHaskell2010

Data.ByteString.IsoBaseFileFormat.Util.Versioned

Description

A binary version 0/1 field with seperate content for each version.

Synopsis

Documentation

data Versioned v0 v1 version where Source #

Two alternative representations based on a version index. Use this for box content that can be either 32 or 64 bit.

Constructors

V0 :: IsBoxContent v0 => !v0 -> Versioned v0 v1 0 
V1 :: IsBoxContent v1 => !v1 -> Versioned v0 v1 1 

Instances

((~) Nat version 0, IsBoxContent v0, Default v0) => Default (Versioned v0 v1 version) Source # 

Methods

def :: Versioned v0 v1 version #

IsBoxContent (Versioned v0 v1 version) Source # 

Methods

boxSize :: Versioned v0 v1 version -> BoxSize Source #

boxBuilder :: Versioned v0 v1 version -> Builder Source #