void rs_get_stream_mode(const rs_device * device, rs_stream stream, int index, int * width, int * height, rs_format * format, int * framerate, rs_error ** error) try { VALIDATE_NOT_NULL(device); VALIDATE_ENUM(stream); VALIDATE_RANGE(index, 0, device->get_stream_interface(stream).get_mode_count()-1); device->get_stream_interface(stream).get_mode(index, width, height, format, framerate); }
void rs_get_stream_intrinsics(const rs_device * device, rs_stream stream, rs_intrinsics * intrin, rs_error ** error) try { VALIDATE_NOT_NULL(device); VALIDATE_ENUM(stream); VALIDATE_NOT_NULL(intrin); *intrin = device->get_stream_interface(stream).get_intrinsics(); }
int rs_get_stream_framerate(const rs_device * device, rs_stream stream, rs_error ** error) try { VALIDATE_NOT_NULL(device); VALIDATE_ENUM(stream); return device->get_stream_interface(stream).get_framerate(); }
int rs_get_stream_height(const rs_device * device, rs_stream stream, rs_error ** error) try { VALIDATE_NOT_NULL(device); VALIDATE_ENUM(stream); return device->get_stream_interface(stream).get_intrinsics().height; }
int rs_is_stream_enabled(const rs_device * device, rs_stream stream, rs_error ** error) try { VALIDATE_NOT_NULL(device); VALIDATE_ENUM(stream); return device->get_stream_interface(stream).is_enabled(); }
unsigned long long rs_get_frame_number(const rs_device * device, rs_stream stream, rs_error ** error) try { VALIDATE_NOT_NULL(device); VALIDATE_ENUM(stream); return device->get_stream_interface(stream).get_frame_number(); }