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

Maintainer | gtk2hs-devel@lists.sourceforge.net Stability : alpha Portability : portable (depends on GHC)
Safe Haskell | None

Media.Streaming.GStreamer.Core.Iterator

Description

# Documentation

data Iterable a => Iterator a

class Iterable a

Instances

Iterable Element |
Iterable Pad |
Iterable QueryTypeDefinition |
Iterable FormatDefinition |

type IteratorFilter itemT = itemT -> IO Bool

type IteratorFoldFunction itemT accumT = itemT -> accumT -> IO (Bool, accumT)

data IteratorResult

Constructors

IteratorDone |
IteratorOk |
IteratorResync |
IteratorError |

Instances

Enum IteratorResult |
Eq IteratorResult |
Show IteratorResult |

iteratorNext :: Iterable a => Iterator a -> IO (IteratorResult, Maybe a)

iteratorResync :: Iterator a -> IO ()

iteratorFilter :: Iterable a => Iterator a -> IteratorFilter a -> IO (Iterator a)

iteratorFold :: Iterable itemT => Iterator itemT -> accumT -> IteratorFoldFunction itemT accumT -> IO (IteratorResult, accumT)

iteratorForeach :: Iterable itemT => Iterator itemT -> (itemT -> IO ()) -> IO IteratorResult

iteratorFind :: Iterable itemT => Iterator itemT -> (itemT -> IO Bool) -> IO (IteratorResult, Maybe itemT)