Function rs2_is_frame_extendable_to

Function Documentation

int rs2_is_frame_extendable_to(const rs2_frame *frame, rs2_extension extension_type, rs2_error **error)

Test if the given frame can be extended to the requested extension

Parameters:
  • frame[in] Realsense frame

  • extension_type[in] The extension to which the frame should be tested if it is extendable

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

Returns:

non-zero value iff the frame can be extended to the given extension