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.GstVideo.Objects.VideoSink
Description
Provides useful functions and a base class for video sinks.
GstVideoSink will configure the default base sink to drop frames that arrive later than 20ms as this is considered the default threshold for observing out-of-sync frames.
- newtype VideoSink = VideoSink (ManagedPtr VideoSink)
- class GObject o => IsVideoSink o
- toVideoSink :: (MonadIO m, IsVideoSink o) => o -> m VideoSink
- noVideoSink :: Maybe VideoSink
- videoSinkCenterRect :: (HasCallStack, MonadIO m) => VideoRectangle -> VideoRectangle -> VideoRectangle -> Bool -> m ()
- constructVideoSinkShowPrerollFrame :: IsVideoSink o => Bool -> IO (GValueConstruct o)
- getVideoSinkShowPrerollFrame :: (MonadIO m, IsVideoSink o) => o -> m Bool
- setVideoSinkShowPrerollFrame :: (MonadIO m, IsVideoSink o) => o -> Bool -> m ()
Exported types
Constructors
VideoSink (ManagedPtr VideoSink) |
class GObject o => IsVideoSink o Source #
Instances
toVideoSink :: (MonadIO m, IsVideoSink o) => o -> m VideoSink Source #
Methods
centerRect
Arguments
:: (HasCallStack, MonadIO m) | |
=> VideoRectangle |
|
-> VideoRectangle |
|
-> VideoRectangle |
|
-> Bool |
|
-> m () |
Takes src
rectangle and position it at the center of dst
rectangle with or
without scaling
. It handles clipping if the src
rectangle is bigger than
the dst
one and scaling
is set to FALSE.
Properties
showPrerollFrame
constructVideoSinkShowPrerollFrame :: IsVideoSink o => Bool -> IO (GValueConstruct o) Source #
getVideoSinkShowPrerollFrame :: (MonadIO m, IsVideoSink o) => o -> m Bool Source #
setVideoSinkShowPrerollFrame :: (MonadIO m, IsVideoSink o) => o -> Bool -> m () Source #