[][src]Function realsense_sys::rs2_config_enable_stream

pub unsafe extern "C" fn rs2_config_enable_stream(
    config: *mut rs2_config,
    stream: rs2_stream,
    index: c_int,
    width: c_int,
    height: c_int,
    format: rs2_format,
    framerate: c_int,
    error: *mut *mut rs2_error
)

Enable a device stream explicitly, with selected stream parameters. The method allows the application to request a stream with specific configuration. If no stream is explicitly enabled, the pipeline configures the device and its streams according to the attached computer vision modules and processing blocks requirements, or default configuration for the first available device. The application can configure any of the input stream parameters according to its requirement, or set to 0 for don't care value. The config accumulates the application calls for enable configuration methods, until the configuration is applied. Multiple enable stream calls for the same stream with conflicting parameters override each other, and the last call is maintained. Upon calling \c resolve(), the config checks for conflicts between the application configuration requests and the attached computer vision modules and processing blocks requirements, and fails if conflicts are found. Before \c resolve() is called, no conflict check is done.

\param[in] config A pointer to an instance of a config \param[in] stream Stream type to be enabled \param[in] index Stream index, used for multiple streams of the same type. -1 indicates any. \param[in] width Stream image width - for images streams. 0 indicates any. \param[in] height Stream image height - for images streams. 0 indicates any. \param[in] format Stream data format - pixel format for images streams, of data type for other streams. RS2_FORMAT_ANY indicates any. \param[in] framerate Stream frames per second. 0 indicates any. \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored