pub struct GradingToneTransform {
pub direction: TransformDirection,
pub style: GradingStyle,
pub value: GradingTone,
pub dynamic: bool,
pub metadata: FormatMetadata,
}Expand description
Tonal grading (blacks, shadows, midtones, highlights, whites).
Fields§
§direction: TransformDirectionThe transform direction.
style: GradingStyleThe grading style (log, linear or video).
value: GradingToneThe tonal grading values.
dynamic: boolIf true, the values are a dynamic property.
metadata: FormatMetadataFormat metadata.
Implementations§
Source§impl GradingToneTransform
impl GradingToneTransform
Sourcepub fn set_style(&mut self, style: GradingStyle)
pub fn set_style(&mut self, style: GradingStyle)
Change the style (values are reset to the defaults of the new style).
Sourcepub fn set_value(&mut self, value: GradingTone) -> Result<()>
pub fn set_value(&mut self, value: GradingTone) -> Result<()>
Set the values (they are validated first).
Sourcepub fn is_dynamic(&self) -> bool
pub fn is_dynamic(&self) -> bool
True if the created op holds a dynamic property.
Sourcepub fn make_dynamic(&mut self)
pub fn make_dynamic(&mut self)
Make the created op hold a dynamic property.
Sourcepub fn make_non_dynamic(&mut self)
pub fn make_non_dynamic(&mut self)
Make the created op static.
Source§impl GradingToneTransform
impl GradingToneTransform
Sourcepub fn new(style: GradingStyle) -> Self
pub fn new(style: GradingStyle) -> Self
Identity tonal grading for the given style.
Trait Implementations§
Source§impl BuildOps for GradingToneTransform
impl BuildOps for GradingToneTransform
Source§fn build_ops(
&self,
ops: &mut OpVec,
_config: &Config,
_context: &Context,
dir: TransformDirection,
) -> Result<()>
fn build_ops( &self, ops: &mut OpVec, _config: &Config, _context: &Context, dir: TransformDirection, ) -> Result<()>
Append the ops implementing
self to ops. dir is the direction
requested by the caller; implementations must combine it with the
transform’s own direction (self.direction.combine(dir)).Source§impl Clone for GradingToneTransform
impl Clone for GradingToneTransform
Source§impl Debug for GradingToneTransform
impl Debug for GradingToneTransform
Source§impl Display for GradingToneTransform
impl Display for GradingToneTransform
Source§impl From<GradingToneTransform> for Transform
impl From<GradingToneTransform> for Transform
Source§fn from(t: GradingToneTransform) -> Self
fn from(t: GradingToneTransform) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GradingToneTransform
impl PartialEq for GradingToneTransform
impl StructuralPartialEq for GradingToneTransform
Auto Trait Implementations§
impl Forget for GradingToneTransform
impl Freeze for GradingToneTransform
impl Move for GradingToneTransform
impl RefUnwindSafe for GradingToneTransform
impl Send for GradingToneTransform
impl Sync for GradingToneTransform
impl Unpin for GradingToneTransform
impl UnsafeUnpin for GradingToneTransform
impl UnwindSafe for GradingToneTransform
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