pub unsafe trait CIToneMapHeadroom: 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 sourceHeadroom(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setSourceHeadroom(&self, source_headroom: c_float)
where Self: Sized + Message { ... }
unsafe fn targetHeadroom(&self) -> c_float
where Self: Sized + Message { ... }
unsafe fn setTargetHeadroom(&self, target_headroom: c_float)
where Self: Sized + Message { ... }
}Available on crate features
CIFilter and CIFilterBuiltins only.Expand description
The protocol for the Tone Map Headroom filter.
Apply a global tone curve to an image that reduces colors from a source headroom value to a target headroom value.
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 an optional content headroom property.
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 sourceHeadroom(&self) -> c_float
unsafe fn sourceHeadroom(&self) -> c_float
If non-nil, this overrides the headroom property of the input image.
Sourceunsafe fn setSourceHeadroom(&self, source_headroom: c_float)
unsafe fn setSourceHeadroom(&self, source_headroom: c_float)
Setter for sourceHeadroom.
Sourceunsafe fn targetHeadroom(&self) -> c_float
unsafe fn targetHeadroom(&self) -> c_float
Specifies the target headroom of the output image.
Sourceunsafe fn setTargetHeadroom(&self, target_headroom: c_float)
unsafe fn setTargetHeadroom(&self, target_headroom: c_float)
Setter for targetHeadroom.