[][src]Struct gstreamer::query::Query

pub struct Query(_);

Methods

impl Query[src]

pub unsafe fn from_glib_none(ptr: *const GstQuery) -> Self[src]

pub unsafe fn from_glib_full(ptr: *const GstQuery) -> Self[src]

pub unsafe fn from_glib_borrow(ptr: *const GstQuery) -> Self[src]

pub unsafe fn into_ptr(self) -> *mut GstQuery[src]

pub fn copy(&self) -> Self[src]

impl Query[src]

pub fn new_position(fmt: Format) -> Position<Self>[src]

Constructs a new query stream position query object. Use gst_query_unref when done with it. A position query is used to query the current position of playback in the streams, in some format.

Free-function: gst_query_unref

format

the default Format for the new query

Returns

a new Query

pub fn new_duration(fmt: Format) -> Duration<Self>[src]

Constructs a new stream duration query object to query in the given format. Use gst_query_unref when done with it. A duration query will give the total length of the stream.

Free-function: gst_query_unref

format

the Format for this duration query

Returns

a new Query

pub fn new_latency() -> Latency<Self>[src]

Constructs a new latency query object. Use gst_query_unref when done with it. A latency query is usually performed by sinks to compensate for additional latency introduced by elements in the pipeline.

Free-function: gst_query_unref

Returns

a Query

pub fn new_seeking(fmt: Format) -> Seeking<Self>[src]

Constructs a new query object for querying seeking properties of the stream.

Free-function: gst_query_unref

format

the default Format for the new query

Returns

a new Query

pub fn new_segment(fmt: Format) -> Segment<Self>[src]

Constructs a new segment query object. Use gst_query_unref when done with it. A segment query is used to discover information about the currently configured segment for playback.

Free-function: gst_query_unref

format

the Format for the new query

Returns

a new Query

pub fn new_convert<V: Into<GenericFormattedValue>>(
    value: V,
    dest_fmt: Format
) -> Convert<Self>
[src]

Constructs a new convert query object. Use gst_query_unref when done with it. A convert query is used to ask for a conversion between one format and another.

Free-function: gst_query_unref

src_format

the source Format for the new query

value

the value to convert

dest_format

the target Format

Returns

a Query

pub fn new_formats() -> Formats<Self>[src]

Constructs a new query object for querying formats of the stream.

Free-function: gst_query_unref

Returns

a new Query

pub fn new_buffering(fmt: Format) -> Buffering<Self>[src]

Constructs a new query object for querying the buffering status of a stream.

Free-function: gst_query_unref

format

the default Format for the new query

Returns

a new Query

pub fn new_custom(structure: Structure) -> Custom<Self>[src]

Constructs a new custom query object. Use gst_query_unref when done with it.

Free-function: gst_query_unref

type_

the query type

structure

a structure for the query

Returns

a new Query

pub fn new_uri() -> Uri<Self>[src]

Constructs a new query URI query object. Use gst_query_unref when done with it. An URI query is used to query the current URI that is used by the source or sink.

Free-function: gst_query_unref

Returns

a new Query

pub fn new_allocation(caps: &Caps, need_pool: bool) -> Allocation<Self>[src]

Constructs a new query object for querying the allocation properties.

Free-function: gst_query_unref

caps

the negotiated caps

need_pool

return a pool

Returns

a new Query

pub fn new_scheduling() -> Scheduling<Self>[src]

Constructs a new query object for querying the scheduling properties.

Free-function: gst_query_unref

Returns

a new Query

pub fn new_accept_caps(caps: &Caps) -> AcceptCaps<Self>[src]

Constructs a new query object for querying if caps are accepted.

Free-function: gst_query_unref

caps

a fixed Caps

Returns

a new Query

pub fn new_caps(filter: Option<&Caps>) -> Caps<Self>[src]

Constructs a new query object for querying the caps.

The CAPS query should return the allowable caps for a pad in the context of the element's state, its link to other elements, and the devices or files it has opened. These caps must be a subset of the pad template caps. In the NULL state with no links, the CAPS query should ideally return the same caps as the pad template. In rare circumstances, an object property can affect the caps returned by the CAPS query, but this is discouraged.

For most filters, the caps returned by CAPS query is directly affected by the allowed caps on other pads. For demuxers and decoders, the caps returned by the srcpad's getcaps function is directly related to the stream data. Again, the CAPS query should return the most specific caps it reasonably can, since this helps with autoplugging.

The filter is used to restrict the result caps, only the caps matching filter should be returned from the CAPS query. Specifying a filter might greatly reduce the amount of processing an element needs to do.

Free-function: gst_query_unref

filter

a filter

Returns

a new Query

pub fn new_drain() -> Drain<Self>[src]

Constructs a new query object for querying the drain state.

Free-function: gst_query_unref

Returns

a new Query

pub fn new_context(context_type: &str) -> Context<Self>[src]

Constructs a new query object for querying the pipeline-local context.

Free-function: gst_query_unref

context_type

Context type to query

Returns

a new Query

pub fn new_bitrate() -> Bitrate<Self>[src]

Constructs a new query object for querying the bitrate.

Free-function: gst_query_unref

Feature: v1_16

Returns

a new Query

Methods from Deref<Target = GstRc<QueryRef>>

pub fn make_mut(&mut self) -> &mut T[src]

pub fn get_mut(&mut self) -> Option<&mut T>[src]

pub fn is_writable(&self) -> bool[src]

pub fn add_parent<U: MiniObject>(&self, parent: &U)[src]

pub fn remove_parent<U: MiniObject>(&self, parent: &U)[src]

Trait Implementations

impl AsPtr for Query[src]

impl AsMutPtr for Query[src]

impl From<GstRc<QueryRef>> for Query[src]

impl From<Position<Query>> for Query[src]

impl From<Duration<Query>> for Query[src]

impl From<Latency<Query>> for Query[src]

impl From<Jitter<Query>> for Query[src]

impl From<Rate<Query>> for Query[src]

impl From<Seeking<Query>> for Query[src]

impl From<Segment<Query>> for Query[src]

impl From<Convert<Query>> for Query[src]

impl From<Formats<Query>> for Query[src]

impl From<Buffering<Query>> for Query[src]

impl From<Custom<Query>> for Query[src]

impl From<Uri<Query>> for Query[src]

impl From<Allocation<Query>> for Query[src]

impl From<Scheduling<Query>> for Query[src]

impl From<AcceptCaps<Query>> for Query[src]

impl From<Caps<Query>> for Query[src]

impl From<Drain<Query>> for Query[src]

impl From<Context<Query>> for Query[src]

impl From<Bitrate<Query>> for Query[src]

impl From<Other<Query>> for Query[src]

impl AsRef<QueryRef> for Query[src]

impl Clone for Query[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Into<GstRc<QueryRef>> for Query[src]

impl DerefMut for Query[src]

impl Deref for Query[src]

type Target = GstRc<QueryRef>

The resulting type after dereferencing.

impl Debug for Query[src]

impl Borrow<QueryRef> for Query[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstQuery, *mut *mut GstQuery> for Query[src]

impl FromGlibPtrArrayContainerAsVec<*mut GstQuery, *const *mut GstQuery> for Query[src]

impl<'a> ToGlibContainerFromSlice<'a, *mut *mut GstQuery> for Query[src]

impl<'a> ToGlibContainerFromSlice<'a, *const *mut GstQuery> for Query[src]

impl<'a> ToGlibPtr<'a, *const GstQuery> for Query[src]

type Storage = Stash<'a, *const GstQuery, GstRc<QueryRef>>

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl<'a> ToGlibPtr<'a, *mut GstQuery> for Query[src]

type Storage = Stash<'a, *mut GstQuery, GstRc<QueryRef>>

fn to_glib_container(&'a self) -> Stash<'a, P, Self>[src]

Transfer: container. Read more

impl FromGlibPtrFull<*const GstQuery> for Query[src]

impl FromGlibPtrFull<*mut GstQuery> for Query[src]

impl FromGlibContainerAsVec<*mut GstQuery, *mut *mut GstQuery> for Query[src]

impl FromGlibContainerAsVec<*mut GstQuery, *const *mut GstQuery> for Query[src]

impl<'a> ToGlibPtrMut<'a, *mut GstQuery> for Query[src]

type Storage = StashMut<'a, *mut GstQuery, GstRc<QueryRef>>

impl FromGlibPtrNone<*const GstQuery> for Query[src]

impl FromGlibPtrNone<*mut GstQuery> for Query[src]

impl FromGlibPtrBorrow<*const GstQuery> for Query[src]

impl FromGlibPtrBorrow<*mut GstQuery> for Query[src]

impl GlibPtrDefault for Query[src]

impl StaticType for Query[src]

impl SetValue for Query[src]

impl<'a> FromValueOptional<'a> for Query[src]

impl SetValueOptional for Query[src]

Auto Trait Implementations

impl Send for Query

impl Sync for Query

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]