Function rs2_create_record_device_ex

Function Documentation

rs2_device *rs2_create_record_device_ex(const rs2_device *device, const char *file, int compression_enabled, rs2_error **error)

Creates a recording device to record the given device and save it to the given file

Parameters:
  • device[in] The device to record

  • file[in] The desired path to which the recorder should save the data

  • compression_enabled[in] Indicates if compression is enabled, 0 means false, otherwise true

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

Returns:

A pointer to a device that records its data to file, or null in case of failure