gi-gstpbutils-1.0.22: GStreamer Plugins Base Utils bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.GstPbutils.Objects.EncodingProfile

Description

The opaque base class object for all encoding profiles. This contains generic information like name, description, format and preset.

Synopsis

Exported types

newtype EncodingProfile Source #

Memory-managed wrapper type.

Constructors

EncodingProfile (ManagedPtr EncodingProfile) 

Instances

Instances details
Eq EncodingProfile Source # 
Instance details

Defined in GI.GstPbutils.Objects.EncodingProfile

GObject EncodingProfile Source # 
Instance details

Defined in GI.GstPbutils.Objects.EncodingProfile

ManagedPtrNewtype EncodingProfile Source # 
Instance details

Defined in GI.GstPbutils.Objects.EncodingProfile

TypedObject EncodingProfile Source # 
Instance details

Defined in GI.GstPbutils.Objects.EncodingProfile

Methods

glibType :: IO GType

IsGValue EncodingProfile Source #

Convert EncodingProfile to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.GstPbutils.Objects.EncodingProfile

Methods

toGValue :: EncodingProfile -> IO GValue

fromGValue :: GValue -> IO EncodingProfile

HasParentTypes EncodingProfile Source # 
Instance details

Defined in GI.GstPbutils.Objects.EncodingProfile

type ParentTypes EncodingProfile Source # 
Instance details

Defined in GI.GstPbutils.Objects.EncodingProfile

type ParentTypes EncodingProfile = '[Object]

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

Instances details
(GObject o, IsDescendantOf EncodingProfile o) => IsEncodingProfile o Source # 
Instance details

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.

Methods

Overloaded methods

copy

encodingProfileCopy Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

self: The EncodingProfile to copy

-> m EncodingProfile

Returns: The copy of self

Makes a deep copy of self

Since: 1.12

find

encodingProfileFind Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

targetname: The name of the target

-> Maybe Text

profilename: The name of the profile, if Nothing provided, it will default to the encoding profile called default.

-> Maybe Text

category: The target category. Can be Nothing

-> m EncodingProfile

Returns: The matching EncodingProfile or Nothing.

Find the EncodingProfile with the specified name and category.

fromDiscoverer

encodingProfileFromDiscoverer Source #

Arguments

:: (HasCallStack, MonadIO m, IsDiscovererInfo a) 
=> a

info: The DiscovererInfo to read from

-> m EncodingProfile

Returns: The new EncodingProfile or Nothing.

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

profile: a EncodingProfile

-> 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

profile: a EncodingProfile

-> m Text

Returns: the description of the profile, can be Nothing.

No description available in the introspection data.

getFileExtension

encodingProfileGetFileExtension Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> m Text

Returns: a suitable file extension for profile, or NULL.

No description available in the introspection data.

getFormat

encodingProfileGetFormat Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> m Caps

Returns: the Caps corresponding to the media format used in the profile. Unref after usage.

No description available in the introspection data.

getInputCaps

encodingProfileGetInputCaps Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> m Caps

Returns: The full caps the given profile can consume. Call gst_caps_unref() when you are done with the caps.

Computes the full output caps that this profile will be able to consume.

getName

encodingProfileGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> m Text

Returns: the name of the profile, can be Nothing.

No description available in the introspection data.

getPresence

encodingProfileGetPresence Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> 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

profile: a EncodingProfile

-> m Text

Returns: the name of the Preset to be used in the profile. This is the name that has been set when saving the preset.

No description available in the introspection data.

getPresetName

encodingProfileGetPresetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> m Text

Returns: the name of the Preset factory to be used in the profile.

No description available in the introspection data.

getRestriction

encodingProfileGetRestriction Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> m Caps

Returns: The restriction Caps to apply before the encoder that will be used in the profile. The fields present in restriction caps are properties of the raw stream (that is before encoding), such as height and width for video and depth and sampling rate for audio. Does not apply to EncodingContainerProfile (since there is no corresponding raw stream). Can be Nothing. Unref after usage.

No description available in the introspection data.

getTypeNick

encodingProfileGetTypeNick Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> m Text

Returns: the human-readable name of the type of profile.

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

a: a EncodingProfile

-> b

b: a EncodingProfile

-> m Bool

Returns: True if a and b are equal, else False.

Checks whether the two EncodingProfile are equal

setAllowDynamicOutput

encodingProfileSetAllowDynamicOutput Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> Bool

allowDynamicOutput: Whether the format that has been negotiated first can be renegotiated during the encoding

-> 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

profile: a EncodingProfile

-> Maybe Text

description: the description to set on the profile

-> 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

profile: a EncodingProfile

-> Bool

enabled: False to disable profile, True to enable it

-> m () 

Set whether the profile should be used or not.

Since: 1.6

setFormat

encodingProfileSetFormat Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> Caps

format: the media format to use in the profile.

-> m () 

Sets the media format used in the profile.

setName

encodingProfileSetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> Maybe Text

name: the name to set on the profile

-> 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

profile: a EncodingProfile

-> Word32

presence: the number of time the profile can be used

-> 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

profile: a EncodingProfile

-> Maybe Text

preset: the element preset to use

-> m () 

Sets the name of the Element that implements the Preset interface to use for the profile. This is the name that has been set when saving the preset.

setPresetName

encodingProfileSetPresetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> Maybe Text

presetName: The name of the preset to use in this profile.

-> m () 

Sets the name of the Preset's factory to be used in the profile.

setRestriction

encodingProfileSetRestriction Source #

Arguments

:: (HasCallStack, MonadIO m, IsEncodingProfile a) 
=> a

profile: a EncodingProfile

-> Maybe Caps

restriction: the restriction to apply

-> 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, MonadIO m) => Caps -> m (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

set encodingProfile [ #restrictionCaps := value ]