#[non_exhaustive]pub struct CrtcCapabilities {
pub crtc_id: u32,
pub degamma_lut_size: u32,
pub gamma_lut_size: u32,
pub has_degamma_lut: bool,
pub has_ctm: bool,
pub has_gamma_lut: bool,
}Expand description
What one CRTC’s color pipeline can be asked to do.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.crtc_id: u32The CRTC this describes.
degamma_lut_size: u32Rows the driver expects in a DEGAMMA_LUT blob. Zero if absent.
gamma_lut_size: u32Rows the driver expects in a GAMMA_LUT blob. Zero if absent.
has_degamma_lut: boolWhether DEGAMMA_LUT is exposed.
has_ctm: boolWhether CTM is exposed.
has_gamma_lut: boolWhether GAMMA_LUT is exposed.
Implementations§
Source§impl CrtcCapabilities
impl CrtcCapabilities
Sourcepub fn from_properties(properties: &PropertyStore, crtc_id: u32) -> Self
pub fn from_properties(properties: &PropertyStore, crtc_id: u32) -> Self
As CrtcCapabilities::probe, from a cache the caller already filled
in.
Sourcepub const fn has_full_pipeline(&self) -> bool
pub const fn has_full_pipeline(&self) -> bool
Whether the CRTC has the whole degamma, matrix, gamma pipeline.
False on a driver exposing only part of it – vkms has GAMMA_LUT and
nothing else – even though the stages it does have are usable.
Trait Implementations§
Source§impl Clone for CrtcCapabilities
impl Clone for CrtcCapabilities
impl Copy for CrtcCapabilities
Source§impl Debug for CrtcCapabilities
impl Debug for CrtcCapabilities
Source§impl Default for CrtcCapabilities
impl Default for CrtcCapabilities
impl Eq for CrtcCapabilities
Source§impl PartialEq for CrtcCapabilities
impl PartialEq for CrtcCapabilities
impl StructuralPartialEq for CrtcCapabilities
Auto Trait Implementations§
impl Freeze for CrtcCapabilities
impl RefUnwindSafe for CrtcCapabilities
impl Send for CrtcCapabilities
impl Sync for CrtcCapabilities
impl Unpin for CrtcCapabilities
impl UnsafeUnpin for CrtcCapabilities
impl UnwindSafe for CrtcCapabilities
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