pub struct VideoConverterConfig(Structure);

Tuple Fields§

§0: Structure

Implementations§

source§

impl VideoConverterConfig

source

pub fn new() -> Self

source

pub fn set_resampler_method(&mut self, v: VideoResamplerMethod)

source

pub fn resampler_method(&self) -> VideoResamplerMethod

source

pub fn set_chroma_resampler_method(&mut self, v: VideoResamplerMethod)

source

pub fn chroma_resampler_method(&self) -> VideoResamplerMethod

source

pub fn set_resampler_taps(&mut self, v: u32)

source

pub fn resampler_taps(&self) -> u32

source

pub fn set_dither_method(&mut self, v: VideoDitherMethod)

source

pub fn dither_method(&self) -> VideoDitherMethod

source

pub fn set_dither_quantization(&mut self, v: u32)

source

pub fn dither_quantization(&self) -> u32

source

pub fn set_src_x(&mut self, v: i32)

source

pub fn src_x(&self) -> i32

source

pub fn set_src_y(&mut self, v: i32)

source

pub fn src_y(&self) -> i32

source

pub fn set_src_width(&mut self, v: Option<i32>)

source

pub fn src_width(&self) -> Option<i32>

source

pub fn set_src_height(&mut self, v: Option<i32>)

source

pub fn src_height(&self) -> Option<i32>

source

pub fn set_dest_x(&mut self, v: i32)

source

pub fn dest_x(&self) -> i32

source

pub fn set_dest_y(&mut self, v: i32)

source

pub fn dest_y(&self) -> i32

source

pub fn set_dest_width(&mut self, v: Option<i32>)

source

pub fn dest_width(&self) -> Option<i32>

source

pub fn set_dest_height(&mut self, v: Option<i32>)

source

pub fn dest_height(&self) -> Option<i32>

source

pub fn set_fill_border(&mut self, v: bool)

source

pub fn fills_border(&self) -> bool

source

pub fn set_alpha_value(&mut self, v: f64)

source

pub fn alpha_value(&self) -> f64

source

pub fn set_alpha_mode(&mut self, v: VideoAlphaMode)

source

pub fn alpha_mode(&self) -> VideoAlphaMode

source

pub fn set_border_argb(&mut self, v: u32)

source

pub fn border_argb(&self) -> u32

source

pub fn set_chroma_mode(&mut self, v: VideoChromaMode)

source

pub fn chroma_mode(&self) -> VideoChromaMode

source

pub fn set_matrix_mode(&mut self, v: VideoMatrixMode)

source

pub fn matrix_mode(&self) -> VideoMatrixMode

source

pub fn set_gamma_mode(&mut self, v: VideoGammaMode)

source

pub fn gamma_mode(&self) -> VideoGammaMode

source

pub fn set_primaries_mode(&mut self, v: VideoPrimariesMode)

source

pub fn primaries_mode(&self) -> VideoPrimariesMode

source

pub fn set_threads(&mut self, v: u32)

source

pub fn threads(&self) -> u32

Methods from Deref<Target = StructureRef>§

source

pub fn as_ptr(&self) -> *const GstStructure

source

pub fn as_mut_ptr(&self) -> *mut GstStructure

source

pub fn get<'a, T>( &'a self, name: impl IntoGStr, ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
where T: FromValue<'a>,

source

pub fn get_optional<'a, T>( &'a self, name: impl IntoGStr, ) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
where T: FromValue<'a>,

source

pub fn value( &self, name: impl IntoGStr, ) -> Result<&SendValue, GetError<Infallible>>

source

pub fn get_by_quark<'a, T>( &'a self, name: Quark, ) -> Result<T, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
where T: FromValue<'a>,

source

pub fn get_optional_by_quark<'a, T>( &'a self, name: Quark, ) -> Result<Option<T>, GetError<<<T as FromValue<'a>>::Checker as ValueTypeChecker>::Error>>
where T: FromValue<'a>,

source

pub fn value_by_quark( &self, name: Quark, ) -> Result<&SendValue, GetError<Infallible>>

source

pub fn set(&mut self, name: impl IntoGStr, value: impl Into<Value> + Send)

source

pub fn set_value(&mut self, name: impl IntoGStr, value: SendValue)

source

pub fn set_by_quark(&mut self, name: Quark, value: impl Into<Value> + Send)

source

pub fn set_value_by_quark(&mut self, name: Quark, value: SendValue)

source

pub fn name<'a>(&self) -> &'a GStr

source

pub fn name_quark(&self) -> Quark

source

pub fn set_name(&mut self, name: impl IntoGStr)

source

pub fn has_name(&self, name: &str) -> bool

source

pub fn has_field(&self, field: impl IntoGStr) -> bool

source

pub fn has_field_with_type(&self, field: impl IntoGStr, type_: Type) -> bool

source

pub fn has_field_by_quark(&self, field: Quark) -> bool

source

pub fn has_field_with_type_by_quark(&self, field: Quark, type_: Type) -> bool

source

pub fn remove_field(&mut self, field: impl IntoGStr)

source

pub fn remove_fields(&mut self, fields: impl IntoIterator<Item = impl IntoGStr>)

source

pub fn remove_all_fields(&mut self)

source

pub fn fields(&self) -> FieldIterator<'_>

source

pub fn iter(&self) -> Iter<'_>

source

pub fn nth_field_name<'a>(&self, idx: u32) -> Option<&'a GStr>

source

pub fn n_fields(&self) -> u32

source

pub fn can_intersect(&self, other: &StructureRef) -> bool

source

pub fn intersect(&self, other: &StructureRef) -> Option<Structure>

source

pub fn is_subset(&self, superset: &StructureRef) -> bool

source

pub fn fixate(&mut self)

source

pub fn fixate_field(&mut self, name: impl IntoGStr) -> bool

source

pub fn fixate_field_bool(&mut self, name: impl IntoGStr, target: bool) -> bool

source

pub fn fixate_field_str( &mut self, name: impl IntoGStr, target: impl IntoGStr, ) -> bool

source

pub fn fixate_field_nearest_double( &mut self, name: impl IntoGStr, target: f64, ) -> bool

source

pub fn fixate_field_nearest_fraction( &mut self, name: impl IntoGStr, target: impl Into<Fraction>, ) -> bool

source

pub fn fixate_field_nearest_int( &mut self, name: impl IntoGStr, target: i32, ) -> bool

source

pub fn foreach<F>(&self, func: F) -> bool
where F: FnMut(Quark, &Value) -> ControlFlow<()>,

source

pub fn map_in_place<F>(&mut self, func: F) -> bool
where F: FnMut(Quark, &mut Value) -> ControlFlow<()>,

source

pub fn filter_map_in_place<F>(&mut self, func: F)
where F: FnMut(Quark, Value) -> Option<Value>,

Trait Implementations§

source§

impl AsMut<StructureRef> for VideoConverterConfig

source§

fn as_mut(&mut self) -> &mut StructureRef

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<StructureRef> for VideoConverterConfig

source§

fn as_ref(&self) -> &StructureRef

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for VideoConverterConfig

source§

fn clone(&self) -> VideoConverterConfig

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VideoConverterConfig

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for VideoConverterConfig

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Deref for VideoConverterConfig

source§

type Target = StructureRef

The resulting type after dereferencing.
source§

fn deref(&self) -> &StructureRef

Dereferences the value.
source§

impl DerefMut for VideoConverterConfig

source§

fn deref_mut(&mut self) -> &mut StructureRef

Mutably dereferences the value.
source§

impl From<VideoConverterConfig> for Structure

source§

fn from(v: VideoConverterConfig) -> Self

Converts to this type from the input type.
source§

impl From<VideoConverterConfig> for Value

source§

fn from(s: VideoConverterConfig) -> Value

Converts to this type from the input type.
source§

impl PartialEq for VideoConverterConfig

source§

fn eq(&self, other: &VideoConverterConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToValue for VideoConverterConfig

source§

fn to_value(&self) -> Value

Convert a value to a Value.
source§

fn value_type(&self) -> Type

Returns the type identifier of self. Read more
source§

impl ToValueOptional for VideoConverterConfig

source§

fn to_value_optional(s: Option<&Self>) -> Value

Convert an Option to a Value.
source§

impl<'a> TryFrom<&'a StructureRef> for VideoConverterConfig

source§

type Error = BoolError

The type returned in the event of a conversion error.
source§

fn try_from(v: &'a StructureRef) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<Structure> for VideoConverterConfig

source§

type Error = BoolError

The type returned in the event of a conversion error.
source§

fn try_from(v: Structure) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Eq for VideoConverterConfig

source§

impl StructuralPartialEq for VideoConverterConfig

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoClosureReturnValue for T
where T: Into<Value>,

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToSendValue for T
where T: Send + ToValue + ?Sized,

source§

fn to_send_value(&self) -> SendValue

Returns a SendValue clone of self.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.