[−][src]Struct gstreamer_pbutils::DiscovererInfo
Structure containing the information of a URI analyzed by Discoverer
.
Implements
Implementations
impl DiscovererInfo
[src][−]
pub fn copy(&self) -> DiscovererInfo
[src][−]
Returns
A copy of the DiscovererInfo
pub fn get_audio_streams(&self) -> Vec<DiscovererStreamInfo>
[src][−]
Finds all the DiscovererAudioInfo
contained in self
Returns
A glib::List
of
matching DiscovererStreamInfo
. The caller should free it with
DiscovererStreamInfo::list_free
.
pub fn get_container_streams(&self) -> Vec<DiscovererStreamInfo>
[src][−]
Finds all the DiscovererContainerInfo
contained in self
Returns
A glib::List
of
matching DiscovererStreamInfo
. The caller should free it with
DiscovererStreamInfo::list_free
.
pub fn get_duration(&self) -> ClockTime
[src][−]
Returns
the duration of the URI in gst::ClockTime
(nanoseconds).
pub fn get_live(&self) -> bool
[src][−]
pub fn get_misc(&self) -> Option<Structure>
[src][−]
Deprecated
This functions is deprecated since version 1.4, use
DiscovererInfo::get_missing_elements_installer_details
Returns
Miscellaneous information stored as a gst::Structure
(for example: information about missing plugins). If you wish to use the
gst::Structure
after the life-time of self
, you will need to copy it.
pub fn get_missing_elements_installer_details(&self) -> Vec<GString>
[src][−]
Get the installer details for missing elements
Returns
An array of strings
containing information about how to install the various missing elements
for self
to be usable. If you wish to use the strings after the life-time
of self
, you will need to copy them.
pub fn get_result(&self) -> DiscovererResult
[src][−]
Returns
the result of the discovery as a DiscovererResult
.
pub fn get_seekable(&self) -> bool
[src][−]
Returns
the whether the URI is seekable.
pub fn get_stream_info(&self) -> Option<DiscovererStreamInfo>
[src][−]
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.
pub fn get_stream_list(&self) -> Vec<DiscovererStreamInfo>
[src][−]
Returns
the list of
all streams contained in the info
. Free after usage
with DiscovererStreamInfo::list_free
.
pub fn get_streams(&self, streamtype: Type) -> Vec<DiscovererStreamInfo>
[src][−]
Finds the DiscovererStreamInfo
contained in self
that match the
given streamtype
.
streamtype
a glib::Type
derived from DiscovererStreamInfo
Returns
A glib::List
of
matching DiscovererStreamInfo
. The caller should free it with
DiscovererStreamInfo::list_free
.
pub fn get_subtitle_streams(&self) -> Vec<DiscovererStreamInfo>
[src][−]
Finds all the DiscovererSubtitleInfo
contained in self
Returns
A glib::List
of
matching DiscovererStreamInfo
. The caller should free it with
DiscovererStreamInfo::list_free
.
pub fn get_tags(&self) -> Option<TagList>
[src][−]
Returns
all tags contained in the URI. If you wish to use
the tags after the life-time of self
, you will need to copy them.
pub fn get_toc(&self) -> Option<Toc>
[src][−]
Returns
TOC contained in the URI. If you wish to use
the TOC after the life-time of self
, you will need to copy it.
pub fn get_uri(&self) -> Option<GString>
[src][−]
Returns
the URI to which this information corresponds to.
Copy it if you wish to use it after the life-time of self
.
pub fn get_video_streams(&self) -> Vec<DiscovererStreamInfo>
[src][−]
Finds all the DiscovererVideoInfo
contained in self
Returns
A glib::List
of
matching DiscovererStreamInfo
. The caller should free it with
DiscovererStreamInfo::list_free
.
pub fn to_variant(
&self,
flags: DiscovererSerializeFlags
) -> Result<Variant, BoolError>
[src][−]
&self,
flags: DiscovererSerializeFlags
) -> Result<Variant, BoolError>
Serializes self
to a glib::Variant
that can be parsed again
through DiscovererInfo::from_variant
.
Note that any gst::Toc
(s) that might have been discovered will not be serialized
for now.
flags
A combination of DiscovererSerializeFlags
to specify
what needs to be serialized.
Returns
A newly-allocated glib::Variant
representing self
.
pub fn from_variant(variant: &Variant) -> Result<DiscovererInfo, BoolError>
[src][−]
Trait Implementations
impl Clone for DiscovererInfo
[src][+]
impl Debug for DiscovererInfo
[src][+]
impl Eq for DiscovererInfo
[src]
impl Hash for DiscovererInfo
[src][+]
impl Ord for DiscovererInfo
[src][+]
impl<T: ObjectType> PartialEq<T> for DiscovererInfo
[src][+]
impl<T: ObjectType> PartialOrd<T> for DiscovererInfo
[src][+]
impl Send for DiscovererInfo
[src]
impl StaticType for DiscovererInfo
[src][+]
impl Sync for DiscovererInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for DiscovererInfo
impl Unpin for DiscovererInfo
impl UnwindSafe for DiscovererInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Super, Sub> CanDowncast<Sub> for Super where
Sub: IsA<Super>,
Super: IsA<Super>,
[src]
Sub: IsA<Super>,
Super: IsA<Super>,
impl<T> Cast for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<T> From<T> for T
[src][+]
impl<O> GObjectExtManualGst for O where
O: IsA<Object>,
[src][+]
O: IsA<Object>,
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ObjectExt for T where
T: ObjectType,
[src][+]
T: ObjectType,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
[src][+]
T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
[src][+]
T: ToValue + SetValue + Send + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src][+]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,