pub struct GradingPrimaryTransform {
pub direction: TransformDirection,
pub style: GradingStyle,
pub value: GradingPrimary,
pub dynamic: bool,
pub metadata: FormatMetadata,
}Expand description
Primary grading (lift/gamma/gain, contrast, offset, exposure, saturation).
Fields§
§direction: TransformDirectionThe transform direction.
style: GradingStyleThe grading style (log, linear or video).
value: GradingPrimaryThe grading values.
dynamic: boolIf true, the values are a dynamic property.
metadata: FormatMetadataFormat metadata.
Implementations§
Source§impl GradingPrimaryTransform
impl GradingPrimaryTransform
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: GradingPrimary) -> Result<()>
pub fn set_value(&mut self, value: GradingPrimary) -> 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 GradingPrimaryTransform
impl GradingPrimaryTransform
Sourcepub fn new(style: GradingStyle) -> Self
pub fn new(style: GradingStyle) -> Self
Identity grading for the given style.
Trait Implementations§
Source§impl BuildOps for GradingPrimaryTransform
impl BuildOps for GradingPrimaryTransform
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 GradingPrimaryTransform
impl Clone for GradingPrimaryTransform
Source§impl Debug for GradingPrimaryTransform
impl Debug for GradingPrimaryTransform
Source§impl Display for GradingPrimaryTransform
impl Display for GradingPrimaryTransform
Source§impl From<GradingPrimaryTransform> for Transform
impl From<GradingPrimaryTransform> for Transform
Source§fn from(t: GradingPrimaryTransform) -> Self
fn from(t: GradingPrimaryTransform) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GradingPrimaryTransform
impl PartialEq for GradingPrimaryTransform
impl StructuralPartialEq for GradingPrimaryTransform
Auto Trait Implementations§
impl Forget for GradingPrimaryTransform
impl Freeze for GradingPrimaryTransform
impl Move for GradingPrimaryTransform
impl RefUnwindSafe for GradingPrimaryTransform
impl Send for GradingPrimaryTransform
impl Sync for GradingPrimaryTransform
impl Unpin for GradingPrimaryTransform
impl UnsafeUnpin for GradingPrimaryTransform
impl UnwindSafe for GradingPrimaryTransform
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