#[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,
}
Expand description
The video transfer function defines the formula for converting between non-linear RGB (R’G’B’) and linear RGB
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
unknown transfer function
Gamma10
linear RGB, gamma 1.0 curve
Gamma18
Gamma 1.8 curve
Gamma20
Gamma 2.0 curve
Gamma22
Gamma 2.2 curve
Bt709
Gamma 2.2 curve with a linear segment in the lower range, also ITU-R BT470M / ITU-R BT1700 625 PAL & SECAM / ITU-R BT1361
Smpte240m
Gamma 2.2 curve with a linear segment in the lower range
Srgb
Gamma 2.4 curve with a linear segment in the lower range. IEC 61966-2-1 (sRGB or sYCC)
Gamma28
Gamma 2.8 curve, also ITU-R BT470BG
Log100
Logarithmic transfer characteristic 100:1 range
Log316
Logarithmic transfer characteristic 316.22777:1 range (100 * sqrt(10) : 1)
Bt202012
Gamma 2.2 curve with a linear segment in the lower range. Used for BT.2020 with 12 bits per component. Since: 1.6
Adobergb
Gamma 2.19921875. Since: 1.8
Bt202010
Rec. ITU-R BT.2020-2 with 10 bits per component. (functionally the same as the values GST_VIDEO_TRANSFER_BT709 and GST_VIDEO_TRANSFER_BT601). Since: 1.18
Smpte2084
SMPTE ST 2084 for 10, 12, 14, and 16-bit systems. Known as perceptual quantization (PQ) Since: 1.18
AribStdB67
Association of Radio Industries and Businesses (ARIB) STD-B67 and Rec. ITU-R BT.2100-1 hybrid loggamma (HLG) system Since: 1.18
Bt601
also known as SMPTE170M / ITU-R BT1358 525 or 625 / ITU-R BT1700 NTSC
Implementations§
Trait Implementations§
source§impl Clone for VideoTransferFunction
impl Clone for VideoTransferFunction
source§fn clone(&self) -> VideoTransferFunction
fn clone(&self) -> VideoTransferFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VideoTransferFunction
impl Debug for VideoTransferFunction
source§impl From<VideoTransferFunction> for Value
impl From<VideoTransferFunction> for Value
source§fn from(v: VideoTransferFunction) -> Self
fn from(v: VideoTransferFunction) -> Self
source§impl<'a> FromValue<'a> for VideoTransferFunction
impl<'a> FromValue<'a> for VideoTransferFunction
§type Checker = GenericValueTypeChecker<VideoTransferFunction>
type Checker = GenericValueTypeChecker<VideoTransferFunction>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl HasParamSpec for VideoTransferFunction
impl HasParamSpec for VideoTransferFunction
type ParamSpec = ParamSpecEnum
§type SetValue = VideoTransferFunction
type SetValue = VideoTransferFunction
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
source§fn cmp(&self, other: &VideoTransferFunction) -> Ordering
fn cmp(&self, other: &VideoTransferFunction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for VideoTransferFunction
impl PartialEq for VideoTransferFunction
source§fn eq(&self, other: &VideoTransferFunction) -> bool
fn eq(&self, other: &VideoTransferFunction) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VideoTransferFunction
impl PartialOrd for VideoTransferFunction
source§fn partial_cmp(&self, other: &VideoTransferFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &VideoTransferFunction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for VideoTransferFunction
impl StaticType for VideoTransferFunction
source§fn static_type() -> Type
fn static_type() -> Type
Self
.source§impl ToValue for VideoTransferFunction
impl ToValue for VideoTransferFunction
source§impl ValueType for VideoTransferFunction
impl ValueType for VideoTransferFunction
§type Type = VideoTransferFunction
type Type = VideoTransferFunction
Type
from. Read moreimpl Copy for VideoTransferFunction
impl Eq for VideoTransferFunction
impl StructuralPartialEq for VideoTransferFunction
Auto Trait Implementations§
impl Freeze for VideoTransferFunction
impl RefUnwindSafe for VideoTransferFunction
impl Send for VideoTransferFunction
impl Sync for VideoTransferFunction
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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()
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.