[][src]Function realsense_sys::rs2_pipeline_poll_for_frames

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

Check if a new set of frames is available and retrieve the latest undelivered set. The frames set includes time-synchronized frames of each enabled stream in the pipeline. The method returns without blocking the calling thread, with status of new frames available or not. If available, it fetches the latest 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 calls to this method shall return no new frames, until resources are retained. \param[in] pipe the pipeline \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