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.
Synopsis
- 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
Memory-managed wrapper type.
Constructors
VideoSink (ManagedPtr VideoSink) |
Instances
GObject VideoSink Source # | |
Defined in GI.GstVideo.Objects.VideoSink Methods gobjectType :: VideoSink -> IO GType # | |
IsObject VideoSink Source # | |
Defined in GI.GstVideo.Objects.VideoSink | |
IsObject VideoSink Source # | |
Defined in GI.GstVideo.Objects.VideoSink | |
IsElement VideoSink Source # | |
Defined in GI.GstVideo.Objects.VideoSink | |
IsBaseSink VideoSink Source # | |
Defined in GI.GstVideo.Objects.VideoSink | |
IsVideoSink VideoSink Source # | |
Defined in GI.GstVideo.Objects.VideoSink |
class GObject o => IsVideoSink o Source #
Type class for types which can be safely cast to VideoSink
, for instance with toVideoSink
.
Instances
(GObject a, (UnknownAncestorError VideoSink a :: Constraint)) => IsVideoSink a Source # | |
Defined in GI.GstVideo.Objects.VideoSink | |
IsVideoSink VideoSink Source # | |
Defined in GI.GstVideo.Objects.VideoSink |
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
Whether to show video frames during preroll. If set to False
, video
frames will only be rendered in PLAYING state.
constructVideoSinkShowPrerollFrame :: IsVideoSink o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-preroll-frame
” property. This is rarely needed directly, but it is used by new
.
getVideoSinkShowPrerollFrame :: (MonadIO m, IsVideoSink o) => o -> m Bool Source #
Get the value of the “show-preroll-frame
” property.
When overloading is enabled, this is equivalent to
get
videoSink #showPrerollFrame
setVideoSinkShowPrerollFrame :: (MonadIO m, IsVideoSink o) => o -> Bool -> m () Source #
Set the value of the “show-preroll-frame
” property.
When overloading is enabled, this is equivalent to
set
videoSink [ #showPrerollFrame:=
value ]