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§
Sourceunsafe fn inputImage(&self) -> Option<Retained<CIImage>>
Available on crate feature CIImage only.
unsafe fn inputImage(&self) -> Option<Retained<CIImage>>
CIImage only.Specifies input image with content headroom and average light level properties.
Sourceunsafe fn setInputImage(&self, input_image: Option<&CIImage>)
Available on crate feature CIImage only.
unsafe fn setInputImage(&self, input_image: Option<&CIImage>)
CIImage only.Setter for inputImage.
Sourceunsafe fn displayHeadroom(&self) -> c_float
unsafe fn displayHeadroom(&self) -> c_float
Specifies the current headroom of the intended display.
Sourceunsafe fn setDisplayHeadroom(&self, display_headroom: c_float)
unsafe fn setDisplayHeadroom(&self, display_headroom: c_float)
Setter for displayHeadroom.
Sourceunsafe fn preferredDynamicRange(&self) -> Option<Retained<CIDynamicRangeOption>>
unsafe fn preferredDynamicRange(&self) -> Option<Retained<CIDynamicRangeOption>>
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.
Sourceunsafe fn setPreferredDynamicRange(
&self,
preferred_dynamic_range: Option<&CIDynamicRangeOption>,
)
unsafe fn setPreferredDynamicRange( &self, preferred_dynamic_range: Option<&CIDynamicRangeOption>, )
Setter for preferredDynamicRange.