#[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: u8Chroma sample location.\c VA_CHROMA_SITING_VERTICAL_XXX | VA_CHROMA_SITING_HORIZONTAL_XXX
color_range: u8Color range. \c VA_SOURCE_RANGE_XXX
colour_primaries: u8Colour 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: u8Transfer 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: u8Matrix 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
impl Clone for _VAProcColorProperties
Source§fn clone(&self) -> _VAProcColorProperties
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for _VAProcColorProperties
Source§impl Debug for _VAProcColorProperties
impl Debug for _VAProcColorProperties
Source§impl Default for _VAProcColorProperties
impl Default for _VAProcColorProperties
Source§fn default() -> _VAProcColorProperties
fn default() -> _VAProcColorProperties
Returns the “default value” for a type. Read more
impl Eq for _VAProcColorProperties
Source§impl PartialEq for _VAProcColorProperties
impl PartialEq for _VAProcColorProperties
Source§fn eq(&self, other: &_VAProcColorProperties) -> bool
fn eq(&self, other: &_VAProcColorProperties) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for _VAProcColorProperties
Auto Trait Implementations§
impl Freeze for _VAProcColorProperties
impl RefUnwindSafe for _VAProcColorProperties
impl Send for _VAProcColorProperties
impl Sync for _VAProcColorProperties
impl Unpin for _VAProcColorProperties
impl UnsafeUnpin for _VAProcColorProperties
impl UnwindSafe for _VAProcColorProperties
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