CISystemToneMap

Trait CISystemToneMap 

Source
pub unsafe trait CISystemToneMap: CIFilterProtocol {
    // Provided methods
    unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
       where Self: Sized + Message { ... }
    unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
       where Self: Sized + Message { ... }
    unsafe fn displayHeadroom(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn setDisplayHeadroom(&self, display_headroom: c_float)
       where Self: Sized + Message { ... }
    unsafe fn preferredDynamicRange(
        &self,
    ) -> Option<Retained<CIDynamicRangeOption>>
       where Self: Sized + Message { ... }
    unsafe fn setPreferredDynamicRange(
        &self,
        preferred_dynamic_range: Option<&CIDynamicRangeOption>,
    )
       where Self: Sized + Message { ... }
}
Available on crate features CIFilter and CIFilterBuiltins only.
Expand description

The protocol for the System Tone Map filter.

Apply a global tone curve to an image that reduces colors of the input image to a desired dynamic range consistent with other frameworks.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
where Self: Sized + Message,

Available on crate feature CIImage only.

Specifies input image with content headroom and average light level properties.

Source

unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
where Self: Sized + Message,

Available on crate feature CIImage only.

Setter for inputImage.

Source

unsafe fn displayHeadroom(&self) -> c_float
where Self: Sized + Message,

Specifies the current headroom of the intended display.

Source

unsafe fn setDisplayHeadroom(&self, display_headroom: c_float)
where Self: Sized + Message,

Setter for displayHeadroom.

Source

unsafe fn preferredDynamicRange(&self) -> Option<Retained<CIDynamicRangeOption>>
where Self: Sized + Message,

Specifies the preferred dynamic range behavior of the tone mapping. The value should be kCIDynamicRangeStandard, kCIDynamicRangeConstrainedHigh, kCIDynamicRangeHigh or nil. If nil then it will behave as kCIDynamicRangeHigh.

Source

unsafe fn setPreferredDynamicRange( &self, preferred_dynamic_range: Option<&CIDynamicRangeOption>, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn CISystemToneMap

Source§

const NAME: &'static str = "CISystemToneMap"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CISystemToneMap

Implementations on Foreign Types§

Source§

impl<T> CISystemToneMap for ProtocolObject<T>
where T: ?Sized + CISystemToneMap,

Implementors§