[][src]Function realsense_sys::rs2_processing_block_register_simple_option

pub unsafe extern "C" fn rs2_processing_block_register_simple_option(
    block: *mut rs2_processing_block,
    option_id: rs2_option,
    min: f32,
    max: f32,
    step: f32,
    def: f32,
    error: *mut *mut rs2_error
) -> c_int

This method adds a custom option to a custom processing block. This is a simple float that can be accessed via rs2_set_option and rs2_get_option This is an infrastructure function aimed at middleware developers, and also used by provided blocks such as save_to_ply, etc.. \param[in] block Processing block \param[in] option_id an int ID for referencing the option \param[in] min the minimum value which will be accepted for this option \param[in] max the maximum value which will be accepted for this option \param[in] step the granularity of options which accept discrete values, or zero if the option accepts continuous values \param[in] def the default value of the option. This will be the initial value. \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored \return true if adding the option succeeds. false if it fails e.g. an option with this id is already registered