[][src]Struct gstreamer_gl::GLUpload

pub struct GLUpload(_, _);

GLUpload is an object that uploads data from system memory into GL textures.

A GLUpload can be created with GLUpload::new

Implements

gst::ObjectExt, glib::object::ObjectExt

Implementations

impl GLUpload[src]

pub fn new<P: IsA<GLContext>>(context: &P) -> GLUpload[src]

context

a GLContext

Returns

a new GLUpload object

pub fn get_caps(&self) -> (Caps, Caps)[src]

in_caps

the input gst::Caps

out_caps

the output gst::Caps

pub fn set_caps(&self, in_caps: &Caps, out_caps: &Caps) -> Result<(), BoolError>[src]

Initializes self with the information required for upload.

in_caps

input gst::Caps

out_caps

output gst::Caps

Returns

whether in_caps and out_caps could be set on self

pub fn set_context<P: IsA<GLContext>>(&self, context: &P)[src]

pub fn transform_caps<P: IsA<GLContext>>(
    &self,
    context: &P,
    direction: PadDirection,
    caps: &Caps,
    filter: &Caps
) -> Option<Caps>
[src]

pub fn get_input_template_caps() -> Caps[src]

Trait Implementations

impl Clone for GLUpload[src]

impl Debug for GLUpload[src]

impl Eq for GLUpload[src]

impl Hash for GLUpload[src]

impl IsA<Object> for GLUpload[src]

impl Ord for GLUpload[src]

impl<T: ObjectType> PartialEq<T> for GLUpload[src]

impl<T: ObjectType> PartialOrd<T> for GLUpload[src]

impl Send for GLUpload[src]

impl StaticType for GLUpload[src]

impl Sync for GLUpload[src]

Auto Trait Implementations

impl RefUnwindSafe for GLUpload

impl Unpin for GLUpload

impl UnwindSafe for GLUpload

Blanket Implementations

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

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

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

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

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

impl<O> GObjectExtManualGst for O where
    O: IsA<Object>, 
[src]

impl<O> GstObjectExt for O where
    O: IsA<Object>, 
[src]

impl<O> GstObjectExtManual for O where
    O: IsA<Object>, 
[src]

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

impl<T> ObjectExt for T where
    T: ObjectType
[src]

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

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> 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, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToValue for T where
    T: SetValue + ?Sized
[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.