Skip to main content

_VAProcColorProperties

Struct _VAProcColorProperties 

Source
#[repr(C)]
pub struct _VAProcColorProperties { pub chroma_sample_location: u8, pub color_range: u8, pub colour_primaries: u8, pub transfer_characteristics: u8, pub matrix_coefficients: u8, pub reserved: [u8; 3], }

Fields§

§chroma_sample_location: u8

Chroma sample location.\c VA_CHROMA_SITING_VERTICAL_XXX | VA_CHROMA_SITING_HORIZONTAL_XXX

§color_range: u8

Color range. \c VA_SOURCE_RANGE_XXX

§colour_primaries: u8

Colour primaries.

§See ISO/IEC 23001-8 or ITU H.273, section 8.1 and table 2. Only used if the color standard in use is \c VAColorStandardExplicit. Below list the typical colour primaries for the reference.

§| Value | Primaries | Informative Remark |

§| 1 |primary x y |Rec.ITU-R BT.709-5 | | |green 0.300 0.600 |IEC 61966-2-1(sRGB or sYCC) | | |blue 0.150 0.060 | | | |red 0.640 0.330 | | | |whiteD65 0.3127 0.3290 | |

§| 6 |primary x y |Rec.ITU-R BT.601-6 525 | | |green 0.310 0.595 | | | |blue 0.155 0.070 | | | |red 0.630 0.340 | | | |whiteD65 0.3127 0.3290 | |

§| 9 |primary x y |Rec.ITU-R BT.2020 | | |green 0.170 0.797 | | | |blue 0.131 0.046 | | | |red 0.708 0.292 | | | |whiteD65 0.3127 0.3290 | |

§transfer_characteristics: u8

Transfer characteristics.

§See ISO/IEC 23001-8 or ITU H.273, section 8.2 and table 3. Only used if the color standard in use is \c VAColorStandardExplicit. Below list the typical transfer characteristics for the reference.

§| Value | Informative Remark |

§| 1 |Rec.ITU-R BT.709-5 | | |colour gamut system |

§| 4 |Assumed display gamma 2.2 |

§| 6 |Rec.ITU-R BT.601-6 525 or 625 |

§| 8 |Linear transfer characteristics |

§| 13 |IEC 61966-2-1(sRGB or sYCC) |

§| 14,15 |Rec.ITU-R BT.2020 |

§| 16 |SMPTE ST 2084 for 10,12,14 and 16bit system |

§matrix_coefficients: u8

Matrix coefficients.

See ISO/IEC 23001-8 or ITU H.273, section 8.3 and table 4. Only used if the color standard in use is \c VAColorStandardExplicit.

§reserved: [u8; 3]

Reserved bytes for future use, must be zero.

Trait Implementations§

Source§

impl Clone for _VAProcColorProperties

Source§

fn clone(&self) -> _VAProcColorProperties

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for _VAProcColorProperties

Source§

impl Debug for _VAProcColorProperties

Source§

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

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

impl Default for _VAProcColorProperties

Source§

fn default() -> _VAProcColorProperties

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

impl Eq for _VAProcColorProperties

Source§

impl PartialEq for _VAProcColorProperties

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for _VAProcColorProperties

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> 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, 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.