Skip to content

Commit

Permalink
crates/capi/improc: Explain the brightness value parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
etemesi254 committed Dec 24, 2023
1 parent a2836ee commit 3e6b10c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/zune-capi/src/improc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ pub extern "C" fn zil_imgproc_invert(image: *mut ZImage, status: *mut ZStatus) {

/// Brighten an image
///
/// This increases an image pixels by a specific value `value`
/// which has a brighten effect.
/// This increases or reduces an image pixels by a specific value `value`
///
/// Formula
///
Expand All @@ -292,7 +291,7 @@ pub extern "C" fn zil_imgproc_invert(image: *mut ZImage, status: *mut ZStatus) {
/// \endcode
///
/// \param image: Mutable image, should not be null
/// \param value: Value to be added to image
/// \param value: Value to be added to image, should be between -1 and 1 where -1 is total darkness and 1 is total brightness
/// \param status: Image status recorder
#[no_mangle]
pub extern "C" fn zil_imgproc_brighten(image: *mut ZImage, value: f32, status: *mut ZStatus) {
Expand Down

0 comments on commit 3e6b10c

Please sign in to comment.