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 |
Variant of EncodingProfile
for video streams, allows specifying the pass
.
Synopsis
- newtype EncodingVideoProfile = EncodingVideoProfile (ManagedPtr EncodingVideoProfile)
- class (GObject o, IsDescendantOf EncodingVideoProfile o) => IsEncodingVideoProfile o
- toEncodingVideoProfile :: (MonadIO m, IsEncodingVideoProfile o) => o -> m EncodingVideoProfile
- encodingVideoProfileGetPass :: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) => a -> m Word32
- encodingVideoProfileGetVariableframerate :: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) => a -> m Bool
- encodingVideoProfileNew :: (HasCallStack, MonadIO m) => Caps -> Maybe Text -> Maybe Caps -> Word32 -> m EncodingVideoProfile
- encodingVideoProfileSetPass :: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) => a -> Word32 -> m ()
- encodingVideoProfileSetVariableframerate :: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) => a -> Bool -> m ()
Exported types
newtype EncodingVideoProfile Source #
Memory-managed wrapper type.
EncodingVideoProfile (ManagedPtr EncodingVideoProfile) |
Instances
class (GObject o, IsDescendantOf EncodingVideoProfile o) => IsEncodingVideoProfile o Source #
Type class for types which can be safely cast to EncodingVideoProfile
, for instance with toEncodingVideoProfile
.
Instances
(GObject o, IsDescendantOf EncodingVideoProfile o) => IsEncodingVideoProfile o Source # | |
Defined in GI.GstPbutils.Objects.EncodingVideoProfile |
toEncodingVideoProfile :: (MonadIO m, IsEncodingVideoProfile o) => o -> m EncodingVideoProfile Source #
Cast to EncodingVideoProfile
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, copy, forceFloating, freezeNotify, getv, isEnabled, isEqual, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAllowDynamicOutput, getData, getDescription, getElementProperties, getFileExtension, getFormat, getInputCaps, getName, getPass, getPresence, getPreset, getPresetName, getProperty, getQdata, getRestriction, getSingleSegment, getTypeNick, getVariableframerate.
Setters
setAllowDynamicOutput, setData, setDataFull, setDescription, setElementProperties, setEnabled, setFormat, setName, setPass, setPresence, setPreset, setPresetName, setProperty, setRestriction, setSingleSegment, setVariableframerate.
getPass
encodingVideoProfileGetPass Source #
:: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) | |
=> a |
|
-> m Word32 | Returns: The pass number. Starts at 1 for multi-pass. 0 if this is not a multi-pass profile |
Get the pass number if this is part of a multi-pass profile.
getVariableframerate
encodingVideoProfileGetVariableframerate Source #
:: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) | |
=> a |
|
-> m Bool | Returns: Whether non-constant video framerate is allowed for encoding. |
*NOTE*: Fixed framerate won\'t be enforced when @/encodebin:avoid-reencoding/@ is set.
new
encodingVideoProfileNew Source #
:: (HasCallStack, MonadIO m) | |
=> Caps |
|
-> Maybe Text |
|
-> Maybe Caps |
|
-> Word32 |
|
-> m EncodingVideoProfile | Returns: the newly created |
Creates a new EncodingVideoProfile
All provided allocatable arguments will be internally copied, so can be safely freed/unreferenced after calling this method.
If you wish to control the pass number (in case of multi-pass scenarios),
please refer to the encodingVideoProfileSetPass
documentation.
If you wish to use/force a constant framerate please refer to the
encodingVideoProfileSetVariableframerate
documentation.
setPass
encodingVideoProfileSetPass Source #
:: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the pass number of this video profile. The first pass profile should have this value set to 1. If this video profile isn't part of a multi-pass profile, you may set it to 0 (the default value).
setVariableframerate
encodingVideoProfileSetVariableframerate Source #
:: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) | |
=> a |
|
-> Bool |
|
-> m () |