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

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

Media.Streaming.GStreamer.Core.Pad

Description

Synopsis

- data Pad
- class ObjectClass o => PadClass o
- castToPad :: GObjectClass obj => obj -> Pad
- gTypePad :: GType
- data PadFlags
  - = PadBlocked
  - | PadFlushing
  - | PadInGetCaps
  - | PadInSetCaps
  - | PadBlocking
- data PadDirection
  - = PadUnknown
  - | PadSrc
  - | PadSink
- data PadLinkReturn
  - = PadLinkOk
  - | PadLinkWrongHierarchy
  - | PadLinkWasLinked
  - | PadLinkWrongDirection
  - | PadLinkNoformat
  - | PadLinkNosched
  - | PadLinkRefused
- data FlowReturn
  - = FlowCustomSuccess2
  - | FlowCustomSuccess1
  - | FlowCustomSuccess
  - | FlowResend
  - | FlowOk
  - | FlowNotLinked
  - | FlowWrongState
  - | FlowUnexpected
  - | FlowNotNegotiated
  - | FlowError
  - | FlowNotSupported
  - | FlowCustomError
  - | FlowCustomError1
  - | FlowCustomError2
- data ActivateMode
  - = ActivateNone
  - | ActivatePush
  - | ActivatePull
- padGetFlags :: PadClass padT => padT -> IO [PadFlags]
- padSetFlags :: PadClass padT => padT -> [PadFlags] -> IO ()
- padUnsetFlags :: PadClass padT => padT -> [PadFlags] -> IO ()
- padNew :: String -> PadDirection -> IO Pad
- padGetDirection :: PadClass pad => pad -> IO PadDirection
- padGetParentElement :: PadClass pad => pad -> IO Element
- padLink :: (PadClass srcpad, PadClass sinkpad) => srcpad -> sinkpad -> IO PadLinkReturn
- padUnlink :: (PadClass srcpad, PadClass sinkpad) => srcpad -> sinkpad -> IO Bool
- padIsLinked :: PadClass pad => pad -> IO Bool
- padCanLink :: (PadClass srcpad, PadClass sinkpad) => srcpad -> sinkpad -> IO Bool
- padGetCaps :: PadClass pad => pad -> IO Caps
- padGetAllowedCaps :: PadClass pad => pad -> IO (Maybe Caps)
- padGetNegotiatedCaps :: PadClass pad => pad -> IO (Maybe Caps)
- padGetPadTemplateCaps :: PadClass pad => pad -> IO Caps
- padSetCaps :: PadClass pad => pad -> Maybe Caps -> IO Bool
- padGetPeer :: PadClass pad => pad -> IO (Maybe Pad)
- padPeerGetCaps :: PadClass pad => pad -> IO (Maybe Caps)
- padIsActive :: PadClass pad => pad -> IO Bool
- padSetBlocked :: PadClass pad => pad -> Bool -> IO Bool
- padIsBlocked :: PadClass pad => pad -> IO Bool
- padIsBlocking :: PadClass pad => pad -> IO Bool
- padNewFromTemplate :: PadTemplateClass padTemplate => padTemplate -> String -> IO (Maybe Pad)
- padAcceptCaps :: PadClass pad => pad -> Caps -> IO Bool
- padProxyGetcaps :: PadClass pad => pad -> IO Caps
- padFixateCaps :: PadClass pad => pad -> Caps -> IO Caps
- padPeerAcceptCaps :: PadClass pad => pad -> Caps -> IO Bool
- padSendEvent :: (PadClass pad, EventClass event) => pad -> event -> IO Bool
- padQuery :: (PadClass pad, QueryClass query) => pad -> query -> IO (Maybe query)
- padQueryPosition :: PadClass pad => pad -> IO (Maybe (Format, Int64))
- padQueryDuration :: PadClass pad => pad -> IO (Maybe (Format, Int64))
- padQueryConvert :: PadClass pad => pad -> Format -> Int64 -> IO (Maybe (Format, Int64))
- padQueryPeerPosition :: PadClass pad => pad -> IO (Maybe (Format, Int64))
- padQueryPeerDuration :: PadClass pad => pad -> IO (Maybe (Format, Int64))
- padQueryPeerConvert :: PadClass pad => pad -> Format -> Int64 -> IO (Maybe (Format, Int64))
- padGetQueryTypes :: PadClass pad => pad -> IO [QueryType]
- onPadLinked :: PadClass pad => pad -> (Pad -> IO ()) -> IO (ConnectId pad)
- afterPadLinked :: PadClass pad => pad -> (Pad -> IO ()) -> IO (ConnectId pad)
- onPadRequestLink :: PadClass pad => pad -> IO () -> IO (ConnectId pad)
- afterPadRequestLink :: PadClass pad => pad -> IO () -> IO (ConnectId pad)
- onPadUnlinked :: PadClass pad => pad -> (Pad -> IO ()) -> IO (ConnectId pad)
- afterPadUnlinked :: PadClass pad => pad -> (Pad -> IO ()) -> IO (ConnectId pad)
- padCaps :: PadClass pad => ReadAttr pad Caps
- padDirection :: PadClass pad => ReadAttr pad PadDirection
- padTemplate :: PadClass pad => ReadAttr pad PadTemplate

# Documentation

data Pad Source

Instances

Eq Pad |
Ord Pad |
GObjectClass Pad |
PadClass Pad |
ObjectClass Pad |
Iterable Pad |

class ObjectClass o => PadClass o Source

Instances

PadClass GhostPad |
PadClass Pad |

castToPad :: GObjectClass obj => obj -> Pad Source

gTypePad :: GType Source

data PadFlags Source

The flags that a `Pad` may have.

Constructors

PadBlocked | dataflow on the pad is blocked
PadFlushing | the pad is refusing buffers
PadInGetCaps | `padGetCaps` is executing
PadInSetCaps | `padSetCaps` is executing
PadBlocking | the pad is blocking on a buffer or event

Instances

Bounded PadFlags |
Enum PadFlags |
Eq PadFlags |
Show PadFlags |
Flags PadFlags |

data PadDirection Source

Constructors

PadUnknown |
PadSrc |
PadSink |

Instances

Enum PadDirection |
Eq PadDirection |
Show PadDirection |

data PadLinkReturn Source

Constructors

PadLinkOk |
PadLinkWrongHierarchy |
PadLinkWasLinked |
PadLinkWrongDirection |
PadLinkNoformat |
PadLinkNosched |
PadLinkRefused |

Instances

Enum PadLinkReturn |
Eq PadLinkReturn |
Show PadLinkReturn |

data FlowReturn Source

Constructors

FlowCustomSuccess2 |
FlowCustomSuccess1 |
FlowCustomSuccess |
FlowResend |
FlowOk |
FlowNotLinked |
FlowWrongState |
FlowUnexpected |
FlowNotNegotiated |
FlowError |
FlowNotSupported |
FlowCustomError |
FlowCustomError1 |
FlowCustomError2 |

Instances

Enum FlowReturn |
Eq FlowReturn |
Show FlowReturn |

data ActivateMode Source

Constructors

ActivateNone |
ActivatePush |
ActivatePull |

Instances

Enum ActivateMode |
Eq ActivateMode |
Show ActivateMode |

padGetFlags :: PadClass padT => padT -> IO [PadFlags]Source

padSetFlags :: PadClass padT => padT -> [PadFlags] -> IO ()Source

padUnsetFlags :: PadClass padT => padT -> [PadFlags] -> IO ()Source

padNew :: String -> PadDirection -> IO Pad Source

padGetDirection :: PadClass pad => pad -> IO PadDirection Source

padGetParentElement :: PadClass pad => pad -> IO Element Source

padLink :: (PadClass srcpad, PadClass sinkpad) => srcpad -> sinkpad -> IO PadLinkReturn Source

padUnlink :: (PadClass srcpad, PadClass sinkpad) => srcpad -> sinkpad -> IO Bool Source

padIsLinked :: PadClass pad => pad -> IO Bool Source

padCanLink :: (PadClass srcpad, PadClass sinkpad) => srcpad -> sinkpad -> IO Bool Source

padGetCaps :: PadClass pad => pad -> IO Caps Source

padGetAllowedCaps :: PadClass pad => pad -> IO (Maybe Caps)Source

padGetNegotiatedCaps :: PadClass pad => pad -> IO (Maybe Caps)Source

padGetPadTemplateCaps :: PadClass pad => pad -> IO Caps Source

padSetCaps :: PadClass pad => pad -> Maybe Caps -> IO Bool Source

padGetPeer :: PadClass pad => pad -> IO (Maybe Pad)Source

padPeerGetCaps :: PadClass pad => pad -> IO (Maybe Caps)Source

padIsActive :: PadClass pad => pad -> IO Bool Source

padSetBlocked :: PadClass pad => pad -> Bool -> IO Bool Source

padIsBlocked :: PadClass pad => pad -> IO Bool Source

padIsBlocking :: PadClass pad => pad -> IO Bool Source

padNewFromTemplate :: PadTemplateClass padTemplate => padTemplate -> String -> IO (Maybe Pad)Source

padAcceptCaps :: PadClass pad => pad -> Caps -> IO Bool Source

padProxyGetcaps :: PadClass pad => pad -> IO Caps Source

padFixateCaps :: PadClass pad => pad -> Caps -> IO Caps Source

padPeerAcceptCaps :: PadClass pad => pad -> Caps -> IO Bool Source

padSendEvent :: (PadClass pad, EventClass event) => pad -> event -> IO Bool Source

padQuery :: (PadClass pad, QueryClass query) => pad -> query -> IO (Maybe query)Source

padQueryPosition :: PadClass pad => pad -> IO (Maybe (Format, Int64))Source

padQueryDuration :: PadClass pad => pad -> IO (Maybe (Format, Int64))Source

padQueryConvert :: PadClass pad => pad -> Format -> Int64 -> IO (Maybe (Format, Int64))Source

padQueryPeerPosition :: PadClass pad => pad -> IO (Maybe (Format, Int64))Source

padQueryPeerDuration :: PadClass pad => pad -> IO (Maybe (Format, Int64))Source

padQueryPeerConvert :: PadClass pad => pad -> Format -> Int64 -> IO (Maybe (Format, Int64))Source

padGetQueryTypes :: PadClass pad => pad -> IO [QueryType]Source

onPadLinked :: PadClass pad => pad -> (Pad -> IO ()) -> IO (ConnectId pad)Source

afterPadLinked :: PadClass pad => pad -> (Pad -> IO ()) -> IO (ConnectId pad)Source

onPadRequestLink :: PadClass pad => pad -> IO () -> IO (ConnectId pad)Source

afterPadRequestLink :: PadClass pad => pad -> IO () -> IO (ConnectId pad)Source

onPadUnlinked :: PadClass pad => pad -> (Pad -> IO ()) -> IO (ConnectId pad)Source

afterPadUnlinked :: PadClass pad => pad -> (Pad -> IO ()) -> IO (ConnectId pad)Source

padCaps :: PadClass pad => ReadAttr pad Caps Source

padDirection :: PadClass pad => ReadAttr pad PadDirection Source

padTemplate :: PadClass pad => ReadAttr pad PadTemplate Source