pub struct CpuProcessor { /* private fields */ }Expand description
A processor for CPU evaluation.
Implementations§
Source§impl CpuProcessor
impl CpuProcessor
Sourcepub fn is_identity(&self) -> bool
pub fn is_identity(&self) -> bool
True if all ops are identities.
Sourcepub fn has_channel_crosstalk(&self) -> bool
pub fn has_channel_crosstalk(&self) -> bool
True if an op makes an output channel depend on other input channels.
Sourcepub fn input_bit_depth(&self) -> BitDepth
pub fn input_bit_depth(&self) -> BitDepth
Bit depth of the input pixels.
Sourcepub fn output_bit_depth(&self) -> BitDepth
pub fn output_bit_depth(&self) -> BitDepth
Bit depth of the output pixels.
Sourcepub fn is_dynamic(&self) -> bool
pub fn is_dynamic(&self) -> bool
True if any op has a dynamic property.
Sourcepub fn has_dynamic_property(&self, ty: DynamicPropertyType) -> bool
pub fn has_dynamic_property(&self, ty: DynamicPropertyType) -> bool
True if an op has a dynamic property of the given type.
Sourcepub fn dynamic_property(
&self,
ty: DynamicPropertyType,
) -> Option<DynamicProperty>
pub fn dynamic_property( &self, ty: DynamicPropertyType, ) -> Option<DynamicProperty>
The dynamic property of the given type (shared by all ops using it).
Sourcepub fn apply_pixels(&self, pixels: &mut [Pixel])
pub fn apply_pixels(&self, pixels: &mut [Pixel])
Apply to RGBA pixels in place.
Sourcepub fn apply_rgba(&self, rgba: &mut [f32; 4])
pub fn apply_rgba(&self, rgba: &mut [f32; 4])
Apply to one RGBA pixel.
Sourcepub fn apply_rgb_slice(&self, data: &mut [f32])
pub fn apply_rgb_slice(&self, data: &mut [f32])
Apply to a packed RGB f32 buffer (length multiple of 3).
Sourcepub fn apply_rgba_slice(&self, data: &mut [f32])
pub fn apply_rgba_slice(&self, data: &mut [f32])
Apply to a packed RGBA f32 buffer (length multiple of 4).
Trait Implementations§
Source§impl Clone for CpuProcessor
impl Clone for CpuProcessor
Auto Trait Implementations§
impl !RefUnwindSafe for CpuProcessor
impl !UnwindSafe for CpuProcessor
impl Forget for CpuProcessor
impl Freeze for CpuProcessor
impl Move for CpuProcessor
impl Send for CpuProcessor
impl Sync for CpuProcessor
impl Unpin for CpuProcessor
impl UnsafeUnpin for CpuProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more