gstreamer-0.12.8: Binding to the GStreamer open source multimedia framework.

Maintainergtk2hs-devel@lists.sourceforge.net Stability : alpha Portability : portable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

Media.Streaming.GStreamer.Core.Format

Contents

Description

 

Synopsis

Types

data Format Source #

An enumeration of standard predefined formats.

Constructors

FormatUndefined

no format

FormatDefault

the default format of the pad or element; this can be, e.g., samples for raw audio

FormatBytes

bytes

FormatTime

time in nanoseconds

FormatBuffers

buffers

FormatPercent

percentage of stream

FormatUser FormatId

a user defined format

Format Operations

formatPercentMax :: Int64 Source #

The format value for FormatPercent is between 0 and this value.

formatPercentScale :: Int64 Source #

The value used to scale down the reported FormatPercent format value to its real value.

formatGetName Source #

Arguments

:: Format

format - a format

-> IO String

the name of the format

Get a printable name for the given format.

formatToQuark Source #

Arguments

:: Format

format - a format

-> IO Quark

the unique quark for the format

Get the unique quark for the given format.

formatRegister Source #

Arguments

:: String

nick - the nickname for the format

-> String

description - the description for the format

-> IO Format

the format with the given nickname

Create a new format based on the given nickname, or register a new format with that nickname.

formatGetByNick Source #

Arguments

:: String

nick - the nickname for the format

-> IO Format

the 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 Source #

Arguments

:: Format

format - 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) Source #

Get an Iterator over all registered formats.