| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.GstPbutils.Objects.EncodingVideoProfile
Description
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
- noEncodingVideoProfile :: Maybe 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.
Constructors
| EncodingVideoProfile (ManagedPtr EncodingVideoProfile) |
Instances
| GObject EncodingVideoProfile Source # | |
Defined in GI.GstPbutils.Objects.EncodingVideoProfile Methods gobjectType :: IO GType | |
| HasParentTypes EncodingVideoProfile Source # | |
Defined in GI.GstPbutils.Objects.EncodingVideoProfile | |
| type ParentTypes EncodingVideoProfile Source # | |
Defined in GI.GstPbutils.Objects.EncodingVideoProfile | |
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.
noEncodingVideoProfile :: Maybe EncodingVideoProfile Source #
A convenience alias for Nothing :: Maybe EncodingVideoProfile.
Methods
getPass
encodingVideoProfileGetPass Source #
Arguments
| :: (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 #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) | |
| => a |
|
| -> m Bool | Returns: Whether non-constant video framerate is allowed for encoding. |
No description available in the introspection data.
new
encodingVideoProfileNew Source #
Arguments
| :: (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 #
Arguments
| :: (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 #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingVideoProfile a) | |
| => a |
|
| -> Bool |
|
| -> m () |