Function rs2_get_video_stream_resolution

Function Documentation

void rs2_get_video_stream_resolution(const rs2_stream_profile *mode, int *width, int *height, rs2_error **error)

When called on a video stream profile, will return the width and the height of the stream

Parameters:
  • mode[in] input stream profile

  • width[out] width in pixels of the video stream

  • height[out] height in pixels of the video stream

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