gi-gstvideo-1.0.14: GStreamerVideo bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.GstVideo.Objects.VideoSink

Contents

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

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