Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.GES.Objects.TestClip
Description
Useful for testing purposes.
Asset
The default asset ID is GESTestClip, but the framerate and video size can be overridden using an ID of the form:
framerate=60/1, width=1920, height=1080, max-duration=5.0
Note: max-duration
can be provided in seconds as float, or as GstClockTime
as guint64 or gint.
Synopsis
- newtype TestClip = TestClip (ManagedPtr TestClip)
- class (GObject o, IsDescendantOf TestClip o) => IsTestClip o
- toTestClip :: (MonadIO m, IsTestClip o) => o -> m TestClip
- testClipGetFrequency :: (HasCallStack, MonadIO m, IsTestClip a) => a -> m Double
- testClipGetVolume :: (HasCallStack, MonadIO m, IsTestClip a) => a -> m Double
- testClipGetVpattern :: (HasCallStack, MonadIO m, IsTestClip a) => a -> m VideoTestPattern
- testClipIsMuted :: (HasCallStack, MonadIO m, IsTestClip a) => a -> m Bool
- testClipNew :: (HasCallStack, MonadIO m) => m (Maybe TestClip)
- testClipNewForNick :: (HasCallStack, MonadIO m) => Text -> m (Maybe TestClip)
- testClipSetFrequency :: (HasCallStack, MonadIO m, IsTestClip a) => a -> Double -> m ()
- testClipSetMute :: (HasCallStack, MonadIO m, IsTestClip a) => a -> Bool -> m ()
- testClipSetVolume :: (HasCallStack, MonadIO m, IsTestClip a) => a -> Double -> m ()
- testClipSetVpattern :: (HasCallStack, MonadIO m, IsTestClip a) => a -> VideoTestPattern -> m ()
- constructTestClipFreq :: (IsTestClip o, MonadIO m) => Double -> m (GValueConstruct o)
- getTestClipFreq :: (MonadIO m, IsTestClip o) => o -> m Double
- setTestClipFreq :: (MonadIO m, IsTestClip o) => o -> Double -> m ()
- constructTestClipMute :: (IsTestClip o, MonadIO m) => Bool -> m (GValueConstruct o)
- getTestClipMute :: (MonadIO m, IsTestClip o) => o -> m Bool
- setTestClipMute :: (MonadIO m, IsTestClip o) => o -> Bool -> m ()
- constructTestClipVolume :: (IsTestClip o, MonadIO m) => Double -> m (GValueConstruct o)
- getTestClipVolume :: (MonadIO m, IsTestClip o) => o -> m Double
- setTestClipVolume :: (MonadIO m, IsTestClip o) => o -> Double -> m ()
- constructTestClipVpattern :: (IsTestClip o, MonadIO m) => VideoTestPattern -> m (GValueConstruct o)
- getTestClipVpattern :: (MonadIO m, IsTestClip o) => o -> m VideoTestPattern
- setTestClipVpattern :: (MonadIO m, IsTestClip o) => o -> VideoTestPattern -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq TestClip Source # | |
GObject TestClip Source # | |
Defined in GI.GES.Objects.TestClip | |
ManagedPtrNewtype TestClip Source # | |
Defined in GI.GES.Objects.TestClip Methods toManagedPtr :: TestClip -> ManagedPtr TestClip | |
TypedObject TestClip Source # | |
Defined in GI.GES.Objects.TestClip | |
HasParentTypes TestClip Source # | |
Defined in GI.GES.Objects.TestClip | |
IsGValue (Maybe TestClip) Source # | Convert |
Defined in GI.GES.Objects.TestClip Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TestClip -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe TestClip) | |
type ParentTypes TestClip Source # | |
Defined in GI.GES.Objects.TestClip type ParentTypes TestClip = '[SourceClip, Clip, Container, TimelineElement, Object, Extractable, MetaContainer] |
class (GObject o, IsDescendantOf TestClip o) => IsTestClip o Source #
Type class for types which can be safely cast to TestClip
, for instance with toTestClip
.
Instances
(GObject o, IsDescendantOf TestClip o) => IsTestClip o Source # | |
Defined in GI.GES.Objects.TestClip |
toTestClip :: (MonadIO m, IsTestClip o) => o -> m TestClip Source #
Methods
Click to display all available methods, including inherited ones
Methods
add, addAsset, addChildProperty, addChildToTrack, addMetasFromString, addTopEffect, bindProperty, bindPropertyFull, checkMetaRegistered, copy, edit, editFull, findTrackElement, findTrackElements, forceFloating, foreach, freezeNotify, getv, isFloating, isMuted, listChildrenProperties, lookupChild, metasToString, moveToLayer, moveToLayerFull, notify, notifyByPspec, paste, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, remove, removeChildProperty, removeTopEffect, ripple, rippleEnd, rollEnd, rollStart, runDispose, split, splitFull, stealData, stealQdata, thawNotify, trim, ungroup, unref, watchClosure.
Getters
getAsset, getBoolean, getChildProperty, getChildPropertyByPspec, getChildren, getData, getDate, getDateTime, getDouble, getDuration, getDurationLimit, getFloat, getFrequency, getId, getInpoint, getInt, getInt64, getInternalTimeFromTimelineTime, getLayer, getLayerPriority, getMarkerList, getMaxDuration, getMeta, getName, getNaturalFramerate, getParent, getPriority, getProperty, getQdata, getStart, getString, getSupportedFormats, getTimeline, getTimelineTimeFromInternalTime, getTimelineTimeFromSourceFrame, getTopEffectIndex, getTopEffectPosition, getTopEffects, getToplevelParent, getTrackTypes, getUint, getUint64, getVolume, getVpattern.
Setters
setAsset, setBoolean, setChildProperty, setChildPropertyByPspec, setChildPropertyFull, setData, setDataFull, setDate, setDateTime, setDouble, setDuration, setFloat, setFrequency, setInpoint, setInt, setInt64, setMarkerList, setMaxDuration, setMeta, setMute, setName, setParent, setPriority, setProperty, setStart, setString, setSupportedFormats, setTimeline, setTopEffectIndex, setTopEffectIndexFull, setTopEffectPriority, setUint, setUint64, setVolume, setVpattern.
getFrequency
Arguments
:: (HasCallStack, MonadIO m, IsTestClip a) | |
=> a |
|
-> m Double | Returns: The frequency |
Get the frequency self
generates.
getVolume
Arguments
:: (HasCallStack, MonadIO m, IsTestClip a) | |
=> a |
|
-> m Double | Returns: The volume of the test audio signal applied on |
Get the volume of the test audio signal applied on self
.
getVpattern
Arguments
:: (HasCallStack, MonadIO m, IsTestClip a) | |
=> a |
|
-> m VideoTestPattern | Returns: The |
Get the VideoTestPattern
which is applied on self
.
isMuted
Arguments
:: (HasCallStack, MonadIO m, IsTestClip a) | |
=> a |
|
-> m Bool | Returns: Whether the audio track of |
Let you know if the audio track of self
is muted or not.
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m (Maybe TestClip) | Returns: The newly created |
Creates a new TestClip
.
newForNick
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Maybe TestClip) | Returns: The newly created |
Creates a new TestClip
for the provided nick
.
setFrequency
Arguments
:: (HasCallStack, MonadIO m, IsTestClip a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the frequency to generate. See audiotestsrc element.
setMute
Arguments
:: (HasCallStack, MonadIO m, IsTestClip a) | |
=> a |
|
-> Bool | |
-> m () |
Sets whether the audio track of this clip is muted or not.
setVolume
Arguments
:: (HasCallStack, MonadIO m, IsTestClip a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the volume of the test audio signal.
setVpattern
Arguments
:: (HasCallStack, MonadIO m, IsTestClip a) | |
=> a |
|
-> VideoTestPattern |
|
-> m () |
Sets which video pattern to display on self
.
Properties
freq
The frequency to generate for audio track elements.
constructTestClipFreq :: (IsTestClip o, MonadIO m) => Double -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “freq
” property. This is rarely needed directly, but it is used by new
.
getTestClipFreq :: (MonadIO m, IsTestClip o) => o -> m Double Source #
Get the value of the “freq
” property.
When overloading is enabled, this is equivalent to
get
testClip #freq
setTestClipFreq :: (MonadIO m, IsTestClip o) => o -> Double -> m () Source #
Set the value of the “freq
” property.
When overloading is enabled, this is equivalent to
set
testClip [ #freq:=
value ]
mute
Whether the sound will be played or not.
constructTestClipMute :: (IsTestClip o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “mute
” property. This is rarely needed directly, but it is used by new
.
getTestClipMute :: (MonadIO m, IsTestClip o) => o -> m Bool Source #
Get the value of the “mute
” property.
When overloading is enabled, this is equivalent to
get
testClip #mute
setTestClipMute :: (MonadIO m, IsTestClip o) => o -> Bool -> m () Source #
Set the value of the “mute
” property.
When overloading is enabled, this is equivalent to
set
testClip [ #mute:=
value ]
volume
The volume for the audio track elements.
constructTestClipVolume :: (IsTestClip o, MonadIO m) => Double -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “volume
” property. This is rarely needed directly, but it is used by new
.
getTestClipVolume :: (MonadIO m, IsTestClip o) => o -> m Double Source #
Get the value of the “volume
” property.
When overloading is enabled, this is equivalent to
get
testClip #volume
setTestClipVolume :: (MonadIO m, IsTestClip o) => o -> Double -> m () Source #
Set the value of the “volume
” property.
When overloading is enabled, this is equivalent to
set
testClip [ #volume:=
value ]
vpattern
Video pattern to display in video track elements.
constructTestClipVpattern :: (IsTestClip o, MonadIO m) => VideoTestPattern -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “vpattern
” property. This is rarely needed directly, but it is used by new
.
getTestClipVpattern :: (MonadIO m, IsTestClip o) => o -> m VideoTestPattern Source #
Get the value of the “vpattern
” property.
When overloading is enabled, this is equivalent to
get
testClip #vpattern
setTestClipVpattern :: (MonadIO m, IsTestClip o) => o -> VideoTestPattern -> m () Source #
Set the value of the “vpattern
” property.
When overloading is enabled, this is equivalent to
set
testClip [ #vpattern:=
value ]