[][src]Function realsense_sys::rs2_pipeline_try_wait_for_frames

pub unsafe extern "C" fn rs2_pipeline_try_wait_for_frames(
    pipe: *mut rs2_pipeline,
    output_frame: *mut *mut rs2_frame,
    timeout_ms: c_uint,
    error: *mut *mut rs2_error
) -> c_int

Wait until a new set of frames becomes available. The frames set includes time-synchronized frames of each enabled stream in the pipeline. The method blocks the calling thread, and fetches the latest unread frames set. Device frames, which were produced while the function wasn't called, are dropped. To avoid frame drops, this method should be called as fast as the device frame rate. The application can maintain the frames handles to defer processing. However, if the application maintains too long history, the device may lack memory resources to produce new frames, and the following call to this method shall fail to retrieve new frames, until resources are retained. \param[in] pipe the pipeline \param[in] timeout_ms max time in milliseconds to wait until a frame becomes available \param[out] output_frame frame handle to be released using rs2_release_frame \param[out] error if non-null, receives any error that occurs during this call, otherwise, errors are ignored \return true if new frame was stored to output_frame