Function rs2_stream_profile_is

Function Documentation

int rs2_stream_profile_is(const rs2_stream_profile *mode, rs2_extension type, rs2_error **error)

Try to extend stream profile to an extension type

Parameters:
  • mode[in] input stream profile

  • type[in] extension type, for example RS2_EXTENSION_VIDEO_STREAM_PROFILE

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

Returns:

non-zero if profile is extendable to specified extension, zero otherwise