Gtk2HsContentsIndex
Media.Streaming.GStreamer.Core.Format
Maintainergtk2hs-devel@lists.sourceforge.net Stability : alpha Portability : portable (depends on GHC)
Contents
Types
Format Operations
Description
Synopsis
data Format
= FormatUndefined
| FormatDefault
| FormatBytes
| FormatTime
| FormatBuffers
| FormatPercent
| FormatUser FormatId
data FormatDefinition = FormatDefinition {
formatValue :: FormatId
formatNick :: String
formatDescription :: String
formatQuark :: Quark
}
data FormatId
formatPercentMax :: Int64
formatPercentScale :: Int64
formatGetName :: Format -> IO String
formatToQuark :: Format -> IO Quark
formatRegister :: String -> String -> IO Format
formatGetByNick :: String -> IO Format
formatGetDetails :: Format -> IO (Maybe FormatDefinition)
formatIterateDefinitions :: IO (Iterator FormatDefinition)
Types
data Format
An enumeration of standard predefined formats.
Constructors
FormatUndefinedno format
FormatDefaultthe default format of the pad or element; this can be, e.g., samples for raw audio
FormatBytesbytes
FormatTimetime in nanoseconds
FormatBuffersbuffers
FormatPercentpercentage of stream
FormatUser FormatIda user defined format
show/hide Instances
Eq Format
Ord Format
Show Format
data FormatDefinition
A format definition.
Constructors
FormatDefinition
formatValue :: FormatIdthe unique id of this format
formatNick :: Stringa short nickname for the format
formatDescription :: Stringa longer description of the format
formatQuark :: Quarka quark for the nickname
show/hide Instances
data FormatId
A format identifier.
show/hide Instances
Format Operations
formatPercentMax :: Int64
The format value for FormatPercent is between 0 and this value.
formatPercentScale :: Int64
The value used to scale down the reported FormatPercent format value to its real value.
formatGetName
:: Formatformat - a format
-> IO Stringthe name of the format
Get a printable name for the given format.
formatToQuark
:: Formatformat - a format
-> IO Quarkthe unique quark for the format
Get the unique quark for the given format.
formatRegister
:: Stringnick - the nickname for the format
-> Stringdescription - the description for the format
-> IO Formatthe format with the given nickname
Create a new format based on the given nickname, or register a new format with that nickname.
formatGetByNick
:: Stringnick - the nickname for the format
-> IO Formatthe format with the given nickname, or FormatUndefined if it was not found
Get the format with the given nickname, or FormatUndefined if no format by that nickname was found.
formatGetDetails
:: Formatformat - a format
-> IO (Maybe FormatDefinition)the definition for the given format, or Nothing if the format was not found
Get the given format's definition.
formatIterateDefinitions :: IO (Iterator FormatDefinition)
Get an Iterator over all registered formats.
Produced by Haddock version 0.8