| 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.EncodingProfile
Contents
- Exported types
- Methods
- copy
- find
- fromDiscoverer
- getAllowDynamicOutput
- getDescription
- getFileExtension
- getFormat
- getInputCaps
- getName
- getPresence
- getPreset
- getPresetName
- getRestriction
- getTypeNick
- isEnabled
- isEqual
- setAllowDynamicOutput
- setDescription
- setEnabled
- setFormat
- setName
- setPresence
- setPreset
- setPresetName
- setRestriction
- Properties
Description
The opaque base class object for all encoding profiles. This contains generic information like name, description, format and preset.
Synopsis
- newtype EncodingProfile = EncodingProfile (ManagedPtr EncodingProfile)
- class (GObject o, IsDescendantOf EncodingProfile o) => IsEncodingProfile o
- toEncodingProfile :: (MonadIO m, IsEncodingProfile o) => o -> m EncodingProfile
- noEncodingProfile :: Maybe EncodingProfile
- encodingProfileCopy :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m EncodingProfile
- encodingProfileFind :: (HasCallStack, MonadIO m) => Text -> Maybe Text -> Maybe Text -> m EncodingProfile
- encodingProfileFromDiscoverer :: (HasCallStack, MonadIO m, IsDiscovererInfo a) => a -> m EncodingProfile
- encodingProfileGetAllowDynamicOutput :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Bool
- encodingProfileGetDescription :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Text
- encodingProfileGetFileExtension :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Text
- encodingProfileGetFormat :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Caps
- encodingProfileGetInputCaps :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Caps
- encodingProfileGetName :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Text
- encodingProfileGetPresence :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Word32
- encodingProfileGetPreset :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Text
- encodingProfileGetPresetName :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Text
- encodingProfileGetRestriction :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Caps
- encodingProfileGetTypeNick :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Text
- encodingProfileIsEnabled :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Bool
- encodingProfileIsEqual :: (HasCallStack, MonadIO m, IsEncodingProfile a, IsEncodingProfile b) => a -> b -> m Bool
- encodingProfileSetAllowDynamicOutput :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Bool -> m ()
- encodingProfileSetDescription :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Maybe Text -> m ()
- encodingProfileSetEnabled :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Bool -> m ()
- encodingProfileSetFormat :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Caps -> m ()
- encodingProfileSetName :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Maybe Text -> m ()
- encodingProfileSetPresence :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Word32 -> m ()
- encodingProfileSetPreset :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Maybe Text -> m ()
- encodingProfileSetPresetName :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Maybe Text -> m ()
- encodingProfileSetRestriction :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> Maybe Caps -> m ()
- clearEncodingProfileRestrictionCaps :: (MonadIO m, IsEncodingProfile o) => o -> m ()
- constructEncodingProfileRestrictionCaps :: IsEncodingProfile o => Caps -> IO (GValueConstruct o)
- getEncodingProfileRestrictionCaps :: (MonadIO m, IsEncodingProfile o) => o -> m (Maybe Caps)
- setEncodingProfileRestrictionCaps :: (MonadIO m, IsEncodingProfile o) => o -> Caps -> m ()
Exported types
newtype EncodingProfile Source #
Memory-managed wrapper type.
Constructors
| EncodingProfile (ManagedPtr EncodingProfile) |
Instances
| GObject EncodingProfile Source # | |
Defined in GI.GstPbutils.Objects.EncodingProfile Methods gobjectType :: IO GType | |
| HasParentTypes EncodingProfile Source # | |
Defined in GI.GstPbutils.Objects.EncodingProfile | |
| type ParentTypes EncodingProfile Source # | |
Defined in GI.GstPbutils.Objects.EncodingProfile | |
class (GObject o, IsDescendantOf EncodingProfile o) => IsEncodingProfile o Source #
Type class for types which can be safely cast to EncodingProfile, for instance with toEncodingProfile.
Instances
| (GObject o, IsDescendantOf EncodingProfile o) => IsEncodingProfile o Source # | |
Defined in GI.GstPbutils.Objects.EncodingProfile | |
toEncodingProfile :: (MonadIO m, IsEncodingProfile o) => o -> m EncodingProfile Source #
Cast to EncodingProfile, for types for which this is known to be safe. For general casts, use castTo.
noEncodingProfile :: Maybe EncodingProfile Source #
A convenience alias for Nothing :: Maybe EncodingProfile.
Methods
copy
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m EncodingProfile | Returns: The copy of Since 1.12 |
Makes a deep copy of self
find
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Maybe Text |
|
| -> Maybe Text |
|
| -> m EncodingProfile | Returns: The matching |
Find the EncodingProfile with the specified name and category.
fromDiscoverer
encodingProfileFromDiscoverer Source #
Arguments
| :: (HasCallStack, MonadIO m, IsDiscovererInfo a) | |
| => a |
|
| -> m EncodingProfile | Returns: The new |
Creates a EncodingProfile matching the formats from the given
DiscovererInfo. Streams other than audio or video (eg,
subtitles), are currently ignored.
getAllowDynamicOutput
encodingProfileGetAllowDynamicOutput Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Bool |
Get whether the format that has been negotiated in at some point can be renegotiated later during the encoding.
getDescription
encodingProfileGetDescription Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Text | Returns: the description of the profile, can be |
No description available in the introspection data.
getFileExtension
encodingProfileGetFileExtension Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Text | Returns: a suitable file extension for |
No description available in the introspection data.
getFormat
encodingProfileGetFormat Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Caps | Returns: the |
No description available in the introspection data.
getInputCaps
encodingProfileGetInputCaps Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Caps | Returns: The full caps the given |
Computes the full output caps that this profile will be able to consume.
getName
encodingProfileGetName Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Text | Returns: the name of the profile, can be |
No description available in the introspection data.
getPresence
encodingProfileGetPresence Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Word32 | Returns: The number of times the profile is used in its parent container profile. If 0, it is not a mandatory stream. |
No description available in the introspection data.
getPreset
encodingProfileGetPreset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Text | Returns: the name of the |
No description available in the introspection data.
getPresetName
encodingProfileGetPresetName Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Text | Returns: the name of the |
No description available in the introspection data.
getRestriction
encodingProfileGetRestriction Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Caps | Returns: The restriction |
No description available in the introspection data.
getTypeNick
encodingProfileGetTypeNick Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> m Text | Returns: the human-readable name of the type of |
No description available in the introspection data.
isEnabled
encodingProfileIsEnabled :: (HasCallStack, MonadIO m, IsEncodingProfile a) => a -> m Bool Source #
No description available in the introspection data.
isEqual
encodingProfileIsEqual Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a, IsEncodingProfile b) | |
| => a |
|
| -> b |
|
| -> m Bool |
Checks whether the two EncodingProfile are equal
setAllowDynamicOutput
encodingProfileSetAllowDynamicOutput Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether the format that has been negotiated in at some point can be renegotiated later during the encoding.
setDescription
encodingProfileSetDescription Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
Set description as the given description for the profile. A copy of
description will be made internally.
setEnabled
encodingProfileSetEnabled Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Bool | |
| -> m () |
Set whether the profile should be used or not.
Since 1.6
setFormat
encodingProfileSetFormat Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Caps |
|
| -> m () |
Sets the media format used in the profile.
setName
encodingProfileSetName Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
Set name as the given name for the profile. A copy of name will be made
internally.
setPresence
encodingProfileSetPresence Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Word32 |
|
| -> m () |
Set the number of time the profile is used in its parent container profile. If 0, it is not a mandatory stream
setPreset
encodingProfileSetPreset Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
setPresetName
encodingProfileSetPresetName Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Maybe Text |
|
| -> m () |
Sets the name of the 'GI.Gst.Interfaces.Preset.Preset'\'s factory to be used in the profile.
setRestriction
encodingProfileSetRestriction Source #
Arguments
| :: (HasCallStack, MonadIO m, IsEncodingProfile a) | |
| => a |
|
| -> Maybe Caps |
|
| -> m () |
Set the restriction Caps to apply before the encoder
that will be used in the profile. See encodingProfileGetRestriction
for more about restrictions. Does not apply to EncodingContainerProfile.
Properties
restrictionCaps
No description available in the introspection data.
clearEncodingProfileRestrictionCaps :: (MonadIO m, IsEncodingProfile o) => o -> m () Source #
Set the value of the “restriction-caps” property to Nothing.
When overloading is enabled, this is equivalent to
clear #restrictionCaps
constructEncodingProfileRestrictionCaps :: IsEncodingProfile o => Caps -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “restriction-caps” property. This is rarely needed directly, but it is used by new.
getEncodingProfileRestrictionCaps :: (MonadIO m, IsEncodingProfile o) => o -> m (Maybe Caps) Source #
Get the value of the “restriction-caps” property.
When overloading is enabled, this is equivalent to
get encodingProfile #restrictionCaps
setEncodingProfileRestrictionCaps :: (MonadIO m, IsEncodingProfile o) => o -> Caps -> m () Source #
Set the value of the “restriction-caps” property.
When overloading is enabled, this is equivalent to
setencodingProfile [ #restrictionCaps:=value ]