28 auto depth_callback = [depth_intrin, depth_format](
rs::frame f)
30 std::cout << depth_intrin.
width <<
"x" << depth_intrin.
height 31 <<
" " << depth_format <<
"\tat t = " <<
f.get_timestamp() <<
" ms" << std::endl;
33 auto color_callback = [color_intrin, color_format](
rs::frame f)
35 std::cout << color_intrin.
width <<
"x" << color_intrin.
height 36 <<
" " << color_format <<
"\tat t = " <<
f.get_timestamp() <<
" ms" << std::endl;
Provides convenience methods relating to devices.
intrinsics get_stream_intrinsics(stream stream) const
Retrieves intrinsic camera parameters for specific stream.
void enable_stream(stream stream, int width, int height, format format, int framerate, output_buffer_format output_buffer_type=output_buffer_format::continous)
Enables specific stream and requests specific properties.
const std::string & get_failed_args() const
Exposes librealsense functionality for C++ compilers.
format get_stream_format(stream stream) const
Retrieves pixel format for specific stream.
void stop(rs::source source=rs::source::video)
Ends streaming on all streams for this device.
format
Formats: defines how each stream can be encoded. rs_format specifies how a frame is represented in me...
void start(rs::source source=rs::source::video)
Begins streaming on all enabled streams for this device.
void set_frame_callback(rs::stream stream, std::function< void(frame)> frame_handler)
Sets callback for frame arrival event.
device * get_device(int index)
const std::string & get_failed_function() const
int get_device_count() const