#[repr(C)]pub struct IODisplayScalerInformation {
pub version: u32,
pub scalerFeatures: IOOptionBits,
pub maxHorizontalPixels: u32,
pub maxVerticalPixels: u32,
/* private fields */
}graphics only.Expand description
A structure defining the scaling capabilities of a framebuffer.
This structure is used to define the limits for modes programmed as detailed timings by the OS. A data property with this structure under the key kIOFBScalerInfoKey in a framebuffer will allow the OS to program detailed timings that are scaled to a displays native resolution.
Field: __reservedA Set to zero.
Field: version Set to zero.
Field: __reservedB Set to zero.
Field: scalerFeatures Mask of scaling features. The following are defined:
kIOScaleStretchOnly If set the framebuffer can only provide stretched scaling with non-square pixels, without borders.
kIOScaleCanUpSamplePixels If set framebuffer can scale up from a smaller number of source pixels to a larger native timing (eg. 640x480 pixels on a 1600x1200 timing).
kIOScaleCanDownSamplePixels If set framebuffer can scale down from a larger number of source pixels to a smaller native timing (eg. 1600x1200 pixels on a 640x480 timing).
kIOScaleCanScaleInterlaced If set framebuffer can scale an interlaced detailed timing.
kIOScaleCanSupportInset If set framebuffer can support scaled modes with non-zero horizontalScaledInset, verticalScaledInset fields.
kIOScaleCanRotate If set framebuffer can support some of the flags in the kIOScaleRotateFlags mask.
kIOScaleCanBorderInsetOnly If set framebuffer can support scaled modes with non-zero horizontalScaledInset, verticalScaledInset fields, but requires the active pixels to be equal in size to the inset area, ie. can do insets with a border versus scaling an image.
Field: maxHorizontalPixels Maximum number of horizontal source pixels (horizontalScaled).
Field: maxVerticalPixels Maximum number of vertical source pixels (verticalScaled).
Field: __reservedC Set to zero.
See also Apple’s documentation
Fields§
§version: u32§scalerFeatures: IOOptionBits§maxHorizontalPixels: u32§maxVerticalPixels: u32Trait Implementations§
Source§impl Clone for IODisplayScalerInformation
impl Clone for IODisplayScalerInformation
Source§fn clone(&self) -> IODisplayScalerInformation
fn clone(&self) -> IODisplayScalerInformation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IODisplayScalerInformation
impl Debug for IODisplayScalerInformation
Source§impl Encode for IODisplayScalerInformation
Available on crate feature objc2 only.
impl Encode for IODisplayScalerInformation
objc2 only.Source§impl RefEncode for IODisplayScalerInformation
Available on crate feature objc2 only.
impl RefEncode for IODisplayScalerInformation
objc2 only.