ivcam-device.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 #ifndef LIBREALSENSE_IV_CAMERA_H
6 #define LIBREALSENSE_IV_CAMERA_H
7 
8 #include "ivcam-private.h"
9 #include "device.h"
10 
11 namespace rsimpl
12 {
13  struct cam_mode { int2 dims; std::vector<int> fps; };
14 
17  void update_supported_options(uvc::device& dev,
19  const std::vector <std::pair<rs_option, char>> options,
20  std::vector<supported_option>& supported_options);
21 
22  class iv_camera : public rs_device_base
23  {
24  protected:
25  std::timed_mutex usbMutex;
26 
29 
30  public:
31  iv_camera(std::shared_ptr<uvc::device> device, const static_device_info & info, const ivcam::camera_calib_params & calib);
32  ~iv_camera() {};
33 
34  void on_before_start(const std::vector<subdevice_mode_selection> & selected_modes) override;
35  rs_stream select_key_stream(const std::vector<rsimpl::subdevice_mode_selection> & selected_modes) override;
36 
37  void set_options(const rs_option options[], size_t count, const double values[]) override;
38  void get_options(const rs_option options[], size_t count, double values[]) override;
39 
40  std::vector<std::shared_ptr<frame_timestamp_reader>> create_frame_timestamp_readers() const override;
41 
42  void start_fw_logger(char fw_log_op_code, int grab_rate_in_ms, std::timed_mutex& mutex) override;
43  void stop_fw_logger() override;
44  };
45 }
46 
47 #endif // IV_CAMERA_H
std::vector< int > fps
Definition: ivcam-device.h:13
void update_supported_options(uvc::device &dev, const uvc::extension_unit depth_xu, const std::vector< std::pair< rs_option, char >> options, std::vector< supported_option > &supported_options)
Definition: archive.h:12
rs_option
Defines general configuration controls.
Definition: rs.h:128
ivcam::camera_calib_params base_calibration
Definition: ivcam-device.h:27
ivcam::cam_auto_range_request arr
Definition: ivcam-device.h:28
rs_intrinsics MakeDepthIntrinsics(const ivcam::camera_calib_params &c, const int2 &dims)
const GLubyte * c
Definition: glext.h:11542
GLuint GLuint GLsizei count
Definition: glext.h:111
std::timed_mutex usbMutex
Definition: ivcam-device.h:25
const uvc::extension_unit depth_xu
Definition: ivcam-private.h:14
rs_intrinsics MakeColorIntrinsics(const ivcam::camera_calib_params &c, const int2 &dims)
Video stream intrinsics.
Definition: rs.h:300
GLenum GLsizei GLsizei GLint * values
Definition: glext.h:1484
rs_stream
Streams are different types of data provided by RealSense devices.
Definition: rs.h:33
rs_device * dev


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:17