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

Safe HaskellNone
LanguageHaskell2010

Data.ByteString.IsoBaseFileFormat.Boxes.Language

Description

Boxfield indicating an ISO 639-2 alpha-3 language code.

Synopsis

Documentation

data Language Source #

A Boxfield contains an ISO 639-2-T alpha-3 language code, which is encoded as a single bit followed by three 5 bit words, each representing the lower-case character from the language code subtracted by 0x60. If available, the code for terminoligy purposes should be used (T-code).

mkLanguage :: String -> Language Source #

Create a Language, throw a runtime error when bad characters were given. The characters must be in a - z (lower-case!), there must be exactly three characters.