gi-gstvideo-1.0.23: GStreamerVideo bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

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

Exported types

newtype VideoSink Source #

Memory-managed wrapper type.

Constructors

VideoSink (ManagedPtr VideoSink) 

Instances

Instances details
Eq VideoSink Source # 
Instance details

Defined in GI.GstVideo.Objects.VideoSink

Methods

(==) :: VideoSink -> VideoSink -> Bool

(/=) :: VideoSink -> VideoSink -> Bool

GObject VideoSink Source # 
Instance details

Defined in GI.GstVideo.Objects.VideoSink

ManagedPtrNewtype VideoSink Source # 
Instance details

Defined in GI.GstVideo.Objects.VideoSink

Methods

toManagedPtr :: VideoSink -> ManagedPtr VideoSink

TypedObject VideoSink Source # 
Instance details

Defined in GI.GstVideo.Objects.VideoSink

Methods

glibType :: IO GType

IsGValue VideoSink Source #

Convert VideoSink to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.GstVideo.Objects.VideoSink

Methods

toGValue :: VideoSink -> IO GValue

fromGValue :: GValue -> IO VideoSink

HasParentTypes VideoSink Source # 
Instance details

Defined in GI.GstVideo.Objects.VideoSink

type ParentTypes VideoSink Source # 
Instance details

Defined in GI.GstVideo.Objects.VideoSink

type ParentTypes VideoSink = '[BaseSink, Element, Object, Object]

class (GObject o, IsDescendantOf VideoSink o) => IsVideoSink o Source #

Type class for types which can be safely cast to VideoSink, for instance with toVideoSink.

Instances

Instances details
(GObject o, IsDescendantOf VideoSink o) => IsVideoSink o Source # 
Instance details

Defined in GI.GstVideo.Objects.VideoSink

toVideoSink :: (MonadIO m, IsVideoSink o) => o -> m VideoSink Source #

Cast to VideoSink, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

centerRect

videoSinkCenterRect Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> VideoRectangle

src: the VideoRectangle describing the source area

-> VideoRectangle

dst: the VideoRectangle describing the destination area

-> VideoRectangle

result: a pointer to a VideoRectangle which will receive the result area

-> Bool

scaling: a Bool indicating if scaling should be applied or not

-> 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, MonadIO m) => Bool -> m (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 ]