IODisplayTimingRangeV2

Struct IODisplayTimingRangeV2 

Source
pub struct IODisplayTimingRangeV2 {
Show 73 fields pub version: u32, pub minPixelClock: u64, pub maxPixelClock: u64, pub maxPixelError: u32, pub supportedSyncFlags: u32, pub supportedSignalLevels: u32, pub supportedSignalConfigs: u32, pub minFrameRate: u32, pub maxFrameRate: u32, pub minLineRate: u32, pub maxLineRate: u32, pub maxHorizontalTotal: u32, pub maxVerticalTotal: u32, pub charSizeHorizontalActive: u8, pub charSizeHorizontalBlanking: u8, pub charSizeHorizontalSyncOffset: u8, pub charSizeHorizontalSyncPulse: u8, pub charSizeVerticalActive: u8, pub charSizeVerticalBlanking: u8, pub charSizeVerticalSyncOffset: u8, pub charSizeVerticalSyncPulse: u8, pub charSizeHorizontalBorderLeft: u8, pub charSizeHorizontalBorderRight: u8, pub charSizeVerticalBorderTop: u8, pub charSizeVerticalBorderBottom: u8, pub charSizeHorizontalTotal: u8, pub charSizeVerticalTotal: u8, pub minHorizontalActiveClocks: u32, pub maxHorizontalActiveClocks: u32, pub minHorizontalBlankingClocks: u32, pub maxHorizontalBlankingClocks: u32, pub minHorizontalSyncOffsetClocks: u32, pub maxHorizontalSyncOffsetClocks: u32, pub minHorizontalPulseWidthClocks: u32, pub maxHorizontalPulseWidthClocks: u32, pub minVerticalActiveClocks: u32, pub maxVerticalActiveClocks: u32, pub minVerticalBlankingClocks: u32, pub maxVerticalBlankingClocks: u32, pub minVerticalSyncOffsetClocks: u32, pub maxVerticalSyncOffsetClocks: u32, pub minVerticalPulseWidthClocks: u32, pub maxVerticalPulseWidthClocks: u32, pub minHorizontalBorderLeft: u32, pub maxHorizontalBorderLeft: u32, pub minHorizontalBorderRight: u32, pub maxHorizontalBorderRight: u32, pub minVerticalBorderTop: u32, pub maxVerticalBorderTop: u32, pub minVerticalBorderBottom: u32, pub maxVerticalBorderBottom: u32, pub maxNumLinks: u32, pub minLink0PixelClock: u32, pub maxLink0PixelClock: u32, pub minLink1PixelClock: u32, pub maxLink1PixelClock: u32, pub supportedPixelEncoding: u16, pub supportedBitsPerColorComponent: u16, pub supportedColorimetryModes: u16, pub supportedDynamicRangeModes: u16, pub maxBandwidth: u64, pub dscMinSliceHeight: u32, pub dscMaxSliceHeight: u32, pub dscMinSliceWidth: u32, pub dscMaxSliceWidth: u32, pub dscMinSlicePerLine: u32, pub dscMaxSlicePerLine: u32, pub dscMinBPC: u16, pub dscMaxBPC: u16, pub dscMinBPP: u16, pub dscMaxBPP: u16, pub dscVBR: u8, pub dscBlockPredEnable: u8, /* private fields */
}
Available on crate feature graphics only.
Expand description

A structure defining the limits and attributes of DSC capabilities in a framebuffer.

This structure is used to define the limits for DSC enabled modes programmed as detailed timings by the OS. The VESA DSC spec is useful background information for many of these fields. Field: maxBandwidth Maximum permitted bandwidth of the given topology in bits per second. Field: dscMinSliceHeight Minimum slice Height, in units of line. Field: dscMaxSliceHeight Maximum slice Height, in units of line. Field: dscMinSliceWidth Minimum slice width, in units of line. Field: dscMaxSliceWidth Maximum slice width, in units of line. Field: dscMinSlicePerLine Minimum slice per Line. Field: dscMaxSlicePerLine Maximum slice per Line. Field: dscMinBPC Minimum Bits per component, in units of bits. Field: dscMaxBPC Maximum Bits per component, in units of bits. Field: dscMinBPP Minimum target bits/pixel, in bpp. Field: dscMaxBPP Maximum target bits/pixel, in bpp. Field: dscVBR VBR mode, 0:disabled 1:enabled. Field: dscBlockPredEnable DSC BP is user or not, 0: not used, 1: used. Field: __reservedF Set to zero.

See also Apple’s documentation

Fields§

§version: u32§minPixelClock: u64§maxPixelClock: u64§maxPixelError: u32§supportedSyncFlags: u32§supportedSignalLevels: u32§supportedSignalConfigs: u32§minFrameRate: u32§maxFrameRate: u32§minLineRate: u32§maxLineRate: u32§maxHorizontalTotal: u32§maxVerticalTotal: u32§charSizeHorizontalActive: u8§charSizeHorizontalBlanking: u8§charSizeHorizontalSyncOffset: u8§charSizeHorizontalSyncPulse: u8§charSizeVerticalActive: u8§charSizeVerticalBlanking: u8§charSizeVerticalSyncOffset: u8§charSizeVerticalSyncPulse: u8§charSizeHorizontalBorderLeft: u8§charSizeHorizontalBorderRight: u8§charSizeVerticalBorderTop: u8§charSizeVerticalBorderBottom: u8§charSizeHorizontalTotal: u8§charSizeVerticalTotal: u8§minHorizontalActiveClocks: u32§maxHorizontalActiveClocks: u32§minHorizontalBlankingClocks: u32§maxHorizontalBlankingClocks: u32§minHorizontalSyncOffsetClocks: u32§maxHorizontalSyncOffsetClocks: u32§minHorizontalPulseWidthClocks: u32§maxHorizontalPulseWidthClocks: u32§minVerticalActiveClocks: u32§maxVerticalActiveClocks: u32§minVerticalBlankingClocks: u32§maxVerticalBlankingClocks: u32§minVerticalSyncOffsetClocks: u32§maxVerticalSyncOffsetClocks: u32§minVerticalPulseWidthClocks: u32§maxVerticalPulseWidthClocks: u32§minHorizontalBorderLeft: u32§maxHorizontalBorderLeft: u32§minHorizontalBorderRight: u32§maxHorizontalBorderRight: u32§minVerticalBorderTop: u32§maxVerticalBorderTop: u32§minVerticalBorderBottom: u32§maxVerticalBorderBottom: u32§maxNumLinks: u32§minLink0PixelClock: u32§maxLink0PixelClock: u32§minLink1PixelClock: u32§maxLink1PixelClock: u32§supportedPixelEncoding: u16§supportedBitsPerColorComponent: u16§supportedColorimetryModes: u16§supportedDynamicRangeModes: u16§maxBandwidth: u64§dscMinSliceHeight: u32§dscMaxSliceHeight: u32§dscMinSliceWidth: u32§dscMaxSliceWidth: u32§dscMinSlicePerLine: u32§dscMaxSlicePerLine: u32§dscMinBPC: u16§dscMaxBPC: u16§dscMinBPP: u16§dscMaxBPP: u16§dscVBR: u8§dscBlockPredEnable: u8

Trait Implementations§

Source§

impl Clone for IODisplayTimingRangeV2

Source§

fn clone(&self) -> IODisplayTimingRangeV2

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for IODisplayTimingRangeV2

Source§

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

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

impl Encode for IODisplayTimingRangeV2

Available on crate feature objc2 only.
Source§

const ENCODING: Encoding

The Objective-C type-encoding for this type.
Source§

impl PartialEq for IODisplayTimingRangeV2

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 RefEncode for IODisplayTimingRangeV2

Available on crate feature objc2 only.
Source§

const ENCODING_REF: Encoding

The Objective-C type-encoding for a reference of this type. Read more
Source§

impl Copy for IODisplayTimingRangeV2

Source§

impl StructuralPartialEq for IODisplayTimingRangeV2

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> EncodeArgument for T
where T: Encode,

Source§

const ENCODING_ARGUMENT: Encoding = T::ENCODING

The Objective-C type-encoding for this type.
Source§

impl<T> EncodeReturn for T
where T: Encode,

Source§

const ENCODING_RETURN: Encoding = T::ENCODING

The Objective-C type-encoding for this type.
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.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,