Function rs2_frame_add_ref

Function Documentation

void rs2_frame_add_ref(rs2_frame *frame, rs2_error **error)

create additional reference to a frame without duplicating frame data

Parameters:
  • frame[in] handle returned from a callback

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored

Returns:

new frame reference, has to be released by rs2_release_frame