#[non_exhaustive]pub enum VideoTransferFunction {
Show 17 variants
Unknown,
Gamma10,
Gamma18,
Gamma20,
Gamma22,
Bt709,
Smpte240m,
Srgb,
Gamma28,
Log100,
Log316,
Bt202012,
Adobergb,
Bt202010,
Smpte2084,
AribStdB67,
Bt601,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Gamma10
Gamma18
Gamma20
Gamma22
Bt709
Smpte240m
Srgb
Gamma28
Log100
Log316
Bt202012
Adobergb
Bt202010
Available on crate feature
v1_18 only.Smpte2084
Available on crate feature
v1_18 only.AribStdB67
Available on crate feature
v1_18 only.Bt601
Available on crate feature
v1_18 only.Implementations§
Source§impl VideoTransferFunction
impl VideoTransferFunction
pub fn decode(self, val: f64) -> f64
Available on crate feature
v1_20 only.pub fn encode(self, val: f64) -> f64
Available on crate feature
v1_20 only.pub fn from_iso(value: u32) -> VideoTransferFunction
Available on crate feature
v1_18 only.pub fn is_equivalent( self, from_bpp: u32, to_func: VideoTransferFunction, to_bpp: u32, ) -> bool
Available on crate feature
v1_18 only.pub fn to_iso(self) -> u32
Available on crate feature
v1_18 only.Trait Implementations§
Source§impl Clone for VideoTransferFunction
impl Clone for VideoTransferFunction
impl Copy for VideoTransferFunction
Source§impl Debug for VideoTransferFunction
impl Debug for VideoTransferFunction
impl Eq for VideoTransferFunction
Source§impl From<VideoTransferFunction> for Value
impl From<VideoTransferFunction> for Value
Source§fn from(v: VideoTransferFunction) -> Self
fn from(v: VideoTransferFunction) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for VideoTransferFunction
impl<'a> FromValue<'a> for VideoTransferFunction
Source§type Checker = GenericValueTypeChecker<VideoTransferFunction>
type Checker = GenericValueTypeChecker<VideoTransferFunction>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for VideoTransferFunction
impl HasParamSpec for VideoTransferFunction
type ParamSpec = ParamSpecEnum
Source§type SetValue = VideoTransferFunction
type SetValue = VideoTransferFunction
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, VideoTransferFunction) -> ParamSpecEnumBuilder<'_, VideoTransferFunction>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for VideoTransferFunction
impl Hash for VideoTransferFunction
Source§impl Ord for VideoTransferFunction
impl Ord for VideoTransferFunction
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for VideoTransferFunction
impl PartialEq for VideoTransferFunction
Source§impl PartialOrd for VideoTransferFunction
impl PartialOrd for VideoTransferFunction
Source§impl StaticType for VideoTransferFunction
impl StaticType for VideoTransferFunction
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl StructuralPartialEq for VideoTransferFunction
Source§impl ToValue for VideoTransferFunction
impl ToValue for VideoTransferFunction
Source§impl ValueType for VideoTransferFunction
impl ValueType for VideoTransferFunction
Source§type Type = VideoTransferFunction
type Type = VideoTransferFunction
Type to get the
Type from. Read moreAuto Trait Implementations§
impl Freeze for VideoTransferFunction
impl RefUnwindSafe for VideoTransferFunction
impl Send for VideoTransferFunction
impl Sync for VideoTransferFunction
impl Unpin for VideoTransferFunction
impl UnsafeUnpin for VideoTransferFunction
impl UnwindSafe for VideoTransferFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.