| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Gst.Structs.Sample
Description
A Sample is a small object containing data, a type, timing and
extra arbitrary information.
- newtype Sample = Sample (ManagedPtr Sample)
- noSample :: Maybe Sample
- sampleGetBuffer :: (HasCallStack, MonadIO m) => Sample -> m (Maybe Buffer)
- sampleGetBufferList :: (HasCallStack, MonadIO m) => Sample -> m (Maybe BufferList)
- sampleGetCaps :: (HasCallStack, MonadIO m) => Sample -> m (Maybe Caps)
- sampleGetInfo :: (HasCallStack, MonadIO m) => Sample -> m Structure
- sampleGetSegment :: (HasCallStack, MonadIO m) => Sample -> m Segment
- sampleNew :: (HasCallStack, MonadIO m) => Maybe Buffer -> Maybe Caps -> Maybe Segment -> Maybe Structure -> m Sample
- sampleSetBufferList :: (HasCallStack, MonadIO m) => Sample -> BufferList -> m ()
Exported types
Methods
getBuffer
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Sample |
|
| -> m (Maybe Buffer) | Returns: the buffer of |
Get the buffer associated with sample
getBufferList
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Sample |
|
| -> m (Maybe BufferList) | Returns: the buffer list of |
Get the buffer list associated with sample
Since: 1.6
getCaps
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Sample |
|
| -> m (Maybe Caps) | Returns: the caps of |
Get the caps associated with sample
getInfo
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Sample |
|
| -> m Structure | Returns: the extra info of |
Get extra information associated with sample.
getSegment
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Sample |
|
| -> m Segment | Returns: the segment of |
Get the segment associated with sample
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Maybe Buffer | |
| -> Maybe Caps | |
| -> Maybe Segment | |
| -> Maybe Structure | |
| -> m Sample | Returns: the new |
Create a new Sample with the provided details.
Free-function: gst_sample_unref
setBufferList
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Sample |
|
| -> BufferList |
|
| -> m () |
Set the buffer list associated with sample
Since: 1.6