pub struct ColorSpaceTransform { /* private fields */ }Expand description
Converts between two named color spaces inside a config.
Implementations§
Source§impl ColorSpaceTransform
impl ColorSpaceTransform
Sourcepub fn create() -> Result<Self>
pub fn create() -> Result<Self>
Create a color-space transform with default source and destination.
Sourcepub fn set_dst(&self, dst: impl AsRef<str>) -> Result<()>
pub fn set_dst(&self, dst: impl AsRef<str>) -> Result<()>
Set the destination color space name.
Sourcepub fn data_bypass(&self) -> bool
pub fn data_bypass(&self) -> bool
Return whether data channel bypass is enabled.
Sourcepub fn set_data_bypass(&self, bypass: bool)
pub fn set_data_bypass(&self, bypass: bool)
Set data bypass behavior, panicking on validation error.
Sourcepub fn try_set_data_bypass(&self, bypass: bool) -> Result<()>
pub fn try_set_data_bypass(&self, bypass: bool) -> Result<()>
Set data bypass behavior and surface any OCIO validation error.
Sourcepub fn direction(&self) -> TransformDirection
pub fn direction(&self) -> TransformDirection
Return the evaluation direction.
Sourcepub fn set_direction(&self, direction: TransformDirection)
pub fn set_direction(&self, direction: TransformDirection)
Set the evaluation direction, panicking on validation error.
Sourcepub fn try_set_direction(&self, direction: TransformDirection) -> Result<()>
pub fn try_set_direction(&self, direction: TransformDirection) -> Result<()>
Set evaluation direction and surface any OCIO validation error.
Sourcepub fn create_editable_copy(&self) -> Result<Self>
pub fn create_editable_copy(&self) -> Result<Self>
Create an editable copy that is independent from the original transform.
Sourcepub fn format_metadata(&self) -> Option<FormatMetadata>
pub fn format_metadata(&self) -> Option<FormatMetadata>
Return format metadata attached to the transform, when available.
Trait Implementations§
Source§impl Drop for ColorSpaceTransform
impl Drop for ColorSpaceTransform
Source§impl TransformHandle for ColorSpaceTransform
impl TransformHandle for ColorSpaceTransform
fn as_ptr(&self) -> *mut c_void
Source§fn diagnostic_text(&self) -> Result<String>
fn diagnostic_text(&self) -> Result<String>
Return OCIO’s diagnostic representation, which may include file paths.
This text is not a stable interchange format.
Source§fn try_type_tag(&self) -> Result<i32>
fn try_type_tag(&self) -> Result<i32>
Return the version-independent tag corresponding to
crate::TransformType.Source§fn try_set_direction(&mut self, direction: TransformDirection) -> Result<()>
fn try_set_direction(&mut self, direction: TransformDirection) -> Result<()>
Change the native evaluation direction without modifying the stored parameters.
Source§fn try_validate(&self) -> Result<()>
fn try_validate(&self) -> Result<()>
Validate the native transform without copying it or building a processor.
Source§fn try_create_editable_copy(&self) -> Result<Transform>
fn try_create_editable_copy(&self) -> Result<Transform>
Create a native editable copy, preserving the concrete transform type.
A copied group shares its children with the original. For an independent
built-in group graph, use
GroupTransform::create_deep_copy.Source§fn try_direction(&self) -> Result<TransformDirection>
fn try_direction(&self) -> Result<TransformDirection>
Query the native direction with validation, for any supported transform.
Auto Trait Implementations§
impl !Send for ColorSpaceTransform
impl !Sync for ColorSpaceTransform
impl Forget for ColorSpaceTransform
impl Freeze for ColorSpaceTransform
impl Move for ColorSpaceTransform
impl RefUnwindSafe for ColorSpaceTransform
impl Unpin for ColorSpaceTransform
impl UnsafeUnpin for ColorSpaceTransform
impl UnwindSafe for ColorSpaceTransform
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