diff options
Diffstat (limited to 'mpvcore/m_option.h')
-rw-r--r-- | mpvcore/m_option.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mpvcore/m_option.h b/mpvcore/m_option.h index d357456f63..443412a035 100644 --- a/mpvcore/m_option.h +++ b/mpvcore/m_option.h @@ -273,6 +273,10 @@ struct m_option_type { // the value is clipped, or wraps around to the opposite max/min. void (*add)(const m_option_t *opt, void *val, double add, bool wrap); + // Multiply the value with the factor f. The callback must clip the result + // to the valid value range of the option. + void (*multiply)(const m_option_t *opt, void *val, double f); + // Clamp the value in val to the option's valid value range. // Return values: // M_OPT_OUT_OF_RANGE: val was invalid, and modified (clamped) to be valid |