Function realsense_sys::rs2_allocate_synthetic_motion_frame[][src]

pub unsafe extern "C" fn rs2_allocate_synthetic_motion_frame(
    source: *mut rs2_source,
    new_stream: *const rs2_stream_profile,
    original: *mut rs2_frame,
    frame_type: rs2_extension,
    error: *mut *mut rs2_error
) -> *mut rs2_frame
Expand description

Allocate new motion frame using a frame-source provided form a processing block \param[in] source Frame pool to allocate the frame from \param[in] new_stream New stream profile to assign to newly created frame \param[in] original A reference frame that can be used to fill in auxilary information like format, width, height, bpp, stride (if applicable) \param[in] frame_type New value for frame type for the allocated frame \param[out] error If non-null, receives any error that occurs during this call, otherwise, errors are ignored \return reference to a newly allocated frame, must be released with release_frame memory for the frame is likely to be re-used from previous frame, but in lack of available frames in the pool will be allocated from the free store