[]Struct gstreamer_gl::GLColorConvert

pub struct GLColorConvert(_, _);

GLColorConvert is an object that converts between color spaces and/or formats using OpenGL Shaders.

A GLColorConvert can be created with GLColorConvert::new, the configuration negotiated with GLColorConvert::transform_caps and the conversion performed with GLColorConvert::perform.

The glcolorconvertelement provides a GStreamer element that uses GLColorConvert to convert between video formats and color spaces.

Implements

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

Methods

impl GLColorConvert[src]

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

context

a GLContext

Returns

a new GLColorConvert object

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

Initializes self with the information required for conversion.

in_caps

input gst::Caps

out_caps

output gst::Caps

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

Provides an implementation of gst_base::BaseTransformClass.transform_caps()

context

a GLContext to use for transforming caps

direction

a gst::PadDirection

caps

the gst::Caps to transform

filter

a set of filter gst::Caps

Returns

the converted gst::Caps

Trait Implementations

impl Clone for GLColorConvert

impl Debug for GLColorConvert

impl Eq for GLColorConvert

impl Hash for GLColorConvert

impl IsA<Object> for GLColorConvert

impl Ord for GLColorConvert

impl<T: ObjectType> PartialEq<T> for GLColorConvert

impl<T: ObjectType> PartialOrd<T> for GLColorConvert

impl Send for GLColorConvert[src]

impl StaticType for GLColorConvert

impl Sync for GLColorConvert[src]

Auto Trait Implementations

impl RefUnwindSafe for GLColorConvert

impl Unpin for GLColorConvert

impl UnwindSafe for GLColorConvert

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.