gi-gstpbutils-1.0.21: 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.DiscovererInfo

Description

Structure containing the information of a URI analyzed by Discoverer.

Synopsis

Exported types

class (GObject o, IsDescendantOf DiscovererInfo o) => IsDiscovererInfo o Source #

Type class for types which can be safely cast to DiscovererInfo, for instance with toDiscovererInfo.

Instances

Instances details
(GObject o, IsDescendantOf DiscovererInfo o) => IsDiscovererInfo o Source # 
Instance details

Defined in GI.GstPbutils.Objects.DiscovererInfo

toDiscovererInfo :: (MonadIO m, IsDiscovererInfo o) => o -> m DiscovererInfo Source #

Cast to DiscovererInfo, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

copy

discovererInfoCopy Source #

Arguments

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

ptr: a DiscovererInfo

-> m DiscovererInfo

Returns: A copy of the DiscovererInfo

No description available in the introspection data.

fromVariant

discovererInfoFromVariant Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GVariant

variant: A GVariant to deserialize into a DiscovererInfo.

-> m DiscovererInfo

Returns: A newly-allocated DiscovererInfo.

Parses a GVariant as produced by discovererInfoToVariant back to a DiscovererInfo.

Since: 1.6

getAudioStreams

discovererInfoGetAudioStreams Source #

Arguments

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

info: a DiscovererInfo

-> m [DiscovererStreamInfo]

Returns: A List of matching DiscovererStreamInfo. The caller should free it with discovererStreamInfoListFree.

Finds all the DiscovererAudioInfo contained in info

getContainerStreams

discovererInfoGetContainerStreams Source #

Arguments

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

info: a DiscovererInfo

-> m [DiscovererStreamInfo]

Returns: A List of matching DiscovererStreamInfo. The caller should free it with discovererStreamInfoListFree.

Finds all the DiscovererContainerInfo contained in info

getDuration

discovererInfoGetDuration Source #

Arguments

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

info: a DiscovererInfo

-> m Word64

Returns: the duration of the URI in GstClockTime (nanoseconds).

No description available in the introspection data.

getLive

discovererInfoGetLive Source #

Arguments

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

info: a DiscovererInfo

-> m Bool

Returns: whether the URI is live.

No description available in the introspection data.

Since: 1.14

getMisc

discovererInfoGetMisc Source #

Arguments

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

info: a DiscovererInfo

-> m Structure

Returns: Miscellaneous information stored as a Structure (for example: information about missing plugins). If you wish to use the Structure after the life-time of info, you will need to copy it.

Deprecated: This functions is deprecated since version 1.4, usegst_discoverer_info_get_missing_elements_installer_details

No description available in the introspection data.

getMissingElementsInstallerDetails

discovererInfoGetMissingElementsInstallerDetails Source #

Arguments

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

info: a DiscovererStreamInfo to retrieve installer detail for the missing element

-> m [Text]

Returns: An array of strings containing informations about how to install the various missing elements for info to be usable. If you wish to use the strings after the life-time of info, you will need to copy them.

Get the installer details for missing elements

Since: 1.4

getResult

discovererInfoGetResult Source #

Arguments

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

info: a DiscovererInfo

-> m DiscovererResult

Returns: the result of the discovery as a DiscovererResult.

No description available in the introspection data.

getSeekable

discovererInfoGetSeekable Source #

Arguments

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

info: a DiscovererInfo

-> m Bool

Returns: the whether the URI is seekable.

No description available in the introspection data.

getStreamInfo

discovererInfoGetStreamInfo Source #

Arguments

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

info: a DiscovererInfo

-> m DiscovererStreamInfo

Returns: the structure (or topology) of the URI as a DiscovererStreamInfo. This structure can be traversed to see the original hierarchy. Unref with gst_discoverer_stream_info_unref() after usage.

No description available in the introspection data.

getStreamList

discovererInfoGetStreamList Source #

Arguments

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

info: a DiscovererInfo

-> m [DiscovererStreamInfo]

Returns: the list of all streams contained in the info. Free after usage with discovererStreamInfoListFree.

No description available in the introspection data.

getStreams

discovererInfoGetStreams Source #

Arguments

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

info: a DiscovererInfo

-> GType

streamtype: a GType derived from DiscovererStreamInfo

-> m [DiscovererStreamInfo]

Returns: A List of matching DiscovererStreamInfo. The caller should free it with discovererStreamInfoListFree.

Finds the DiscovererStreamInfo contained in info that match the given streamtype.

getSubtitleStreams

discovererInfoGetSubtitleStreams Source #

Arguments

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

info: a DiscovererInfo

-> m [DiscovererStreamInfo]

Returns: A List of matching DiscovererStreamInfo. The caller should free it with discovererStreamInfoListFree.

Finds all the DiscovererSubtitleInfo contained in info

getTags

discovererInfoGetTags Source #

Arguments

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

info: a DiscovererInfo

-> m TagList

Returns: all tags contained in the URI. If you wish to use the tags after the life-time of info, you will need to copy them.

No description available in the introspection data.

getToc

discovererInfoGetToc Source #

Arguments

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

info: a DiscovererInfo

-> m Toc

Returns: TOC contained in the URI. If you wish to use the TOC after the life-time of info, you will need to copy it.

No description available in the introspection data.

getUri

discovererInfoGetUri Source #

Arguments

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

info: a DiscovererInfo

-> m Text

Returns: the URI to which this information corresponds to. Copy it if you wish to use it after the life-time of info.

No description available in the introspection data.

getVideoStreams

discovererInfoGetVideoStreams Source #

Arguments

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

info: a DiscovererInfo

-> m [DiscovererStreamInfo]

Returns: A List of matching DiscovererStreamInfo. The caller should free it with discovererStreamInfoListFree.

Finds all the DiscovererVideoInfo contained in info

toVariant

discovererInfoToVariant Source #

Arguments

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

info: A DiscovererInfo

-> [DiscovererSerializeFlags]

flags: A combination of DiscovererSerializeFlags to specify what needs to be serialized.

-> m GVariant

Returns: A newly-allocated GVariant representing info.

Serializes info to a GVariant that can be parsed again through discovererInfoFromVariant.

Note that any Toc (s) that might have been discovered will not be serialized for now.

Since: 1.6