Function rs2_create_mock_context_versioned
Defined in File rs_internal.h
Function Documentation
-
rs2_context *rs2_create_mock_context_versioned(int api_version, const char *filename, const char *section, const char *min_api_version, 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
- 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
min_api_version – [in] reject any file that was recorded before this version
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