pub struct ExposureContrastTransform { /* private fields */ }Expand description
Exposure/contrast/gamma style transform with optional dynamic controls.
The try_* queries preserve native errors. The infallible getters retain
their compatibility fallback values if a native query fails.
Implementations§
Source§impl ExposureContrastTransform
impl ExposureContrastTransform
Sourcepub fn try_exposure(&self) -> Result<f64>
pub fn try_exposure(&self) -> Result<f64>
Read exposure while preserving native errors.
Sourcepub fn try_contrast(&self) -> Result<f64>
pub fn try_contrast(&self) -> Result<f64>
Read contrast while preserving native errors.
Sourcepub fn try_log_exposure_step(&self) -> Result<f64>
pub fn try_log_exposure_step(&self) -> Result<f64>
Read log exposure step while preserving native errors.
Sourcepub fn try_log_mid_gray(&self) -> Result<f64>
pub fn try_log_mid_gray(&self) -> Result<f64>
Read log mid-gray while preserving native errors.
Sourcepub fn try_is_exposure_dynamic(&self) -> Result<bool>
pub fn try_is_exposure_dynamic(&self) -> Result<bool>
Read the dynamic exposure flag while preserving native errors.
Sourcepub fn try_is_contrast_dynamic(&self) -> Result<bool>
pub fn try_is_contrast_dynamic(&self) -> Result<bool>
Read the dynamic contrast flag while preserving native errors.
Sourcepub fn try_is_gamma_dynamic(&self) -> Result<bool>
pub fn try_is_gamma_dynamic(&self) -> Result<bool>
Read the dynamic gamma flag while preserving native errors.
Sourcepub fn try_style(&self) -> Result<ExposureContrastStyle>
pub fn try_style(&self) -> Result<ExposureContrastStyle>
Read the native style, rejecting native errors and unknown values.
Sourcepub fn set_exposure(&self, exposure: f64)
pub fn set_exposure(&self, exposure: f64)
Set the exposure value.
Sourcepub fn try_set_exposure(&self, exposure: f64) -> Result<()>
pub fn try_set_exposure(&self, exposure: f64) -> Result<()>
Set exposure and surface any OCIO validation error.
Sourcepub fn set_contrast(&self, contrast: f64)
pub fn set_contrast(&self, contrast: f64)
Set the contrast value.
Sourcepub fn try_set_contrast(&self, contrast: f64) -> Result<()>
pub fn try_set_contrast(&self, contrast: f64) -> Result<()>
Set contrast and surface any OCIO validation error.
Sourcepub fn try_set_gamma(&self, gamma: f64) -> Result<()>
pub fn try_set_gamma(&self, gamma: f64) -> Result<()>
Set gamma and surface any OCIO validation error.
Sourcepub fn try_set_pivot(&self, pivot: f64) -> Result<()>
pub fn try_set_pivot(&self, pivot: f64) -> Result<()>
Set pivot and surface any OCIO validation error.
Sourcepub fn style(&self) -> ExposureContrastStyle
pub fn style(&self) -> ExposureContrastStyle
Return the current exposure-contrast style.
Sourcepub fn set_style(&self, style: ExposureContrastStyle)
pub fn set_style(&self, style: ExposureContrastStyle)
Set the exposure-contrast style.
Sourcepub fn try_set_style(&self, style: ExposureContrastStyle) -> Result<()>
pub fn try_set_style(&self, style: ExposureContrastStyle) -> Result<()>
Set the exposure/contrast style and surface any OCIO validation error.
Sourcepub fn is_exposure_dynamic(&self) -> bool
pub fn is_exposure_dynamic(&self) -> bool
Return whether exposure is marked as dynamic.
Sourcepub fn make_exposure_dynamic(&self)
pub fn make_exposure_dynamic(&self)
Mark exposure as dynamic.
Sourcepub fn try_make_exposure_dynamic(&self) -> Result<()>
pub fn try_make_exposure_dynamic(&self) -> Result<()>
Mark exposure as dynamic and surface any OCIO validation error.
Sourcepub fn is_contrast_dynamic(&self) -> bool
pub fn is_contrast_dynamic(&self) -> bool
Return whether contrast is marked as dynamic.
Sourcepub fn make_contrast_dynamic(&self)
pub fn make_contrast_dynamic(&self)
Mark contrast as dynamic.
Sourcepub fn try_make_contrast_dynamic(&self) -> Result<()>
pub fn try_make_contrast_dynamic(&self) -> Result<()>
Mark contrast as dynamic and surface any OCIO validation error.
Sourcepub fn make_exposure_non_dynamic(&self)
pub fn make_exposure_non_dynamic(&self)
Mark exposure as non-dynamic.
Sourcepub fn try_make_exposure_non_dynamic(&self) -> Result<()>
pub fn try_make_exposure_non_dynamic(&self) -> Result<()>
Mark exposure as non-dynamic and surface any OCIO validation error.
Sourcepub fn make_contrast_non_dynamic(&self)
pub fn make_contrast_non_dynamic(&self)
Mark contrast as non-dynamic.
Sourcepub fn try_make_contrast_non_dynamic(&self) -> Result<()>
pub fn try_make_contrast_non_dynamic(&self) -> Result<()>
Mark contrast as non-dynamic and surface any OCIO validation error.
Sourcepub fn is_gamma_dynamic(&self) -> bool
pub fn is_gamma_dynamic(&self) -> bool
Return whether gamma is marked as dynamic.
Sourcepub fn make_gamma_dynamic(&self)
pub fn make_gamma_dynamic(&self)
Mark gamma as dynamic.
Sourcepub fn try_make_gamma_dynamic(&self) -> Result<()>
pub fn try_make_gamma_dynamic(&self) -> Result<()>
Mark gamma as dynamic and surface any OCIO validation error.
Sourcepub fn make_gamma_non_dynamic(&self)
pub fn make_gamma_non_dynamic(&self)
Mark gamma as non-dynamic.
Sourcepub fn try_make_gamma_non_dynamic(&self) -> Result<()>
pub fn try_make_gamma_non_dynamic(&self) -> Result<()>
Mark gamma as non-dynamic and surface any OCIO validation error.
Sourcepub fn log_exposure_step(&self) -> f64
pub fn log_exposure_step(&self) -> f64
Return the log exposure step value.
Sourcepub fn set_log_exposure_step(&self, step: f64)
pub fn set_log_exposure_step(&self, step: f64)
Set the log exposure step value.
Sourcepub fn try_set_log_exposure_step(&self, step: f64) -> Result<()>
pub fn try_set_log_exposure_step(&self, step: f64) -> Result<()>
Set the log exposure step and surface any OCIO validation error.
Sourcepub fn log_mid_gray(&self) -> f64
pub fn log_mid_gray(&self) -> f64
Return the log mid-gray value.
Sourcepub fn set_log_mid_gray(&self, mid_gray: f64)
pub fn set_log_mid_gray(&self, mid_gray: f64)
Set the log mid-gray value.
Sourcepub fn try_set_log_mid_gray(&self, mid_gray: f64) -> Result<()>
pub fn try_set_log_mid_gray(&self, mid_gray: f64) -> Result<()>
Set the log mid-gray value and surface any OCIO validation error.
Sourcepub fn direction(&self) -> TransformDirection
pub fn direction(&self) -> TransformDirection
Return the transform direction.
Sourcepub fn set_direction(&self, direction: TransformDirection)
pub fn set_direction(&self, direction: TransformDirection)
Set the transform direction.
Sourcepub fn try_set_direction(&self, direction: TransformDirection) -> Result<()>
pub fn try_set_direction(&self, direction: TransformDirection) -> Result<()>
Set the transform 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 independent copy of this transform.
Sourcepub fn format_metadata(&self) -> Option<FormatMetadata>
pub fn format_metadata(&self) -> Option<FormatMetadata>
Return format metadata attached to the transform, when available.
pub fn format_metadata_v1(&self) -> Option<FormatMetadata>
compat alias; prefer format_metadata()
pub fn format_metadata_v2(&self) -> Option<FormatMetadata>
compat alias; prefer format_metadata()
Trait Implementations§
Source§impl Drop for ExposureContrastTransform
impl Drop for ExposureContrastTransform
Source§impl TransformHandle for ExposureContrastTransform
impl TransformHandle for ExposureContrastTransform
fn as_ptr(&self) -> *mut c_void
Source§fn diagnostic_text(&self) -> Result<String>
fn diagnostic_text(&self) -> Result<String>
Source§fn try_type_tag(&self) -> Result<i32>
fn try_type_tag(&self) -> Result<i32>
crate::TransformType.Source§fn try_set_direction(&mut self, direction: TransformDirection) -> Result<()>
fn try_set_direction(&mut self, direction: TransformDirection) -> Result<()>
Source§fn try_validate(&self) -> Result<()>
fn try_validate(&self) -> Result<()>
Source§fn try_create_editable_copy(&self) -> Result<Transform>
fn try_create_editable_copy(&self) -> Result<Transform>
GroupTransform::create_deep_copy.