Function rs2_create_mock_context

Function Documentation

rs2_context *rs2_create_mock_context(int api_version, const char *filename, const char *section, rs2_error **error)

Create librealsense context that given a file will respond to calls exactly as the recording did if the user calls a method that was either not called during recording or violates causality of the recording error will be thrown

Deprecated:

Parameters:
  • api_version[in] realsense API version as provided by RS2_API_VERSION macro

  • filename[in] string representing the name of the file to play back from

  • section[in] string representing the name of the section within existing recording

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

Returns:

context object, should be released by rs2_delete_context