ds-private.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2016 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 #ifndef LIBREALSENSE_DS_PRIVATE_H
6 #define LIBREALSENSE_DS_PRIVATE_H
7 
8 #include "uvc.h"
9 #include <algorithm>
10 #include <ctime>
11 #include <cmath>
12 
13 namespace rsimpl
14 {
15  namespace ds
16  {
17  const uvc::extension_unit lr_xu = {0, 2, 1, {0x18682d34, 0xdd2c, 0x4073, {0xad, 0x23, 0x72, 0x14, 0x73, 0x9a, 0x07, 0x4c}}};
18 
19  const int STATUS_BIT_Z_STREAMING = 1 << 0;
20  const int STATUS_BIT_LR_STREAMING = 1 << 1;
21  const int STATUS_BIT_WEB_STREAMING = 1 << 2;
22 
24  {
25  int version;
26  uint32_t serial_number;
30  float Rthird[9], T[3], B;
31  };
32 
33  enum ds_lens_type : uint32_t
34  {
51  };
52 
53 
54  inline std::ostream & operator<<(std::ostream & out, ds_lens_type type)
55  {
56  switch (type)
57  {
58  case DS_LENS_UNKNOWN: return out << "Unknown lens type";
59  case DS_LENS_DSL103: return out << "Sunex DSL103: Internal standard";
60  case DS_LENS_DSL821C: return out << "Sunex DSL 821C";
61  case DS_LENS_DSL202A: return out << "Sunex DSL 202A";
62  case DS_LENS_DSL203: return out << "Sunex DSL 203";
63  case DS_LENS_PENTAX2514: return out << "Pentax cmount lens 25mm";
64  case DS_LENS_DSL924A: return out << "Sunex DSL 924a";
65  case DS_LENS_AZW58: return out << "58 degree lenses on the AZureWave boards (DS-526)";
66  case DS_LENS_Largan9386: return out << "50 HFOV 38 VFOV (60DFOV): CTM2/6 Module L&R";
67  case DS_LENS_DS6100: return out << "Newmax 67.8 x 41.4 degs in 1080p";
68  case DS_LENS_DS6177: return out << "Newmax 71.7 x 44.2 degs in 1080p";
69  case DS_LENS_DS6237: return out << "Newmax 58.9 x 45.9 degs in VGA";
70  case DS_LENS_AEOT_1LS0901L: return out << "AEOT";
71  default: return out << "Other lens type (" << (int)type << "), application needs update";
72  }
73  }
74 
75  enum ds_lens_coating_type : uint32_t
76  {
83  };
84 
85 
86  inline std::ostream & operator<<(std::ostream & out, ds_lens_coating_type type)
87  {
88  switch (type)
89  {
90  case DS_LENS_COATING_UNKNOWN: return out << "Unknown lens coating type";
91  case DS_LENS_COATING_IR_CUT: return out << "IR coating";
92  case DS_LENS_COATING_ALL_PASS: return out << "No IR coating";
93  case DS_LENS_COATING_IR_PASS: return out << "Visible-light block / IR pass";
94  case DS_LENS_COATING_IR_PASS_859_43: return out << "Visible-light block / IR pass 43 nm width";
95  default: return out << "Other lens coating type (" << (int)type << "), application needs update";
96  }
97  }
98 
99  enum ds_emitter_type : uint32_t
100  {
106  };
107 
108  inline std::ostream & operator<<(std::ostream & out, ds_emitter_type type)
109  {
110  switch (type)
111  {
112  case DS_EMITTER_NONE: return out << "No emitter";
113  case DS_EMITTER_LD2: return out << "Laser Driver 2, NO PWM Controls";
114  case DS_EMITTER_LD3: return out << "Laser Driver 3";
115  case DS_EMITTER_LD4_1: return out << "Laser Driver 4.1";
116  default:
117  return out << "Other emitter type (" << (int)type << "), application needs update";
118  }
119  }
120 
121  enum ds_oem_id : uint32_t
122  {
124  };
125 
126  inline std::ostream & operator<<(std::ostream & out, ds_oem_id type)
127  {
128  switch (type)
129  {
130  case DS_OEM_NONE: return out << "OEM None";
131  default:
132  return out << "Unercognized OEM type (" << (int)type << "), application needs update";
133  }
134  }
135 
136  enum ds_prq_type : uint8_t
137  {
139  };
140 
141  inline std::ostream & operator<<(std::ostream & out, ds_prq_type type)
142  {
143  switch (type)
144  {
145  case DS_PRQ_READY: return out << "PRQ-Ready";
146  default:
147  return out << "Non-PRQ type (" << (int)type << ")";
148  }
149  }
150 
152  {
153  std::string date("Undefined value");
154 
155  // rigorous validation is required due to improper handling of NAN by gcc
156  if (std::isnormal(val) && std::isfinite(val) && (!std::isnan(val)) )
157  {
158  auto time = time_t(val);
159  std::vector<char> outstr;
160  outstr.resize(200);
161  strftime(outstr.data(),outstr.size(),"%Y-%m-%d %H:%M:%S",std::gmtime(&time));
162  date = to_string()<< outstr.data() << " UTC";
163  }
164  return date;
165  }
166 
167 #pragma pack(push,1)
168  struct ds_head_content
170  {
171  enum { DS_HEADER_VERSION_NUMBER = 12 }; // required camera header version number for DS devices
172  uint32_t serial_number;
175  uint8_t model_data[64]; // TODO requires additional info
176  double build_date;
180  uint8_t module_version;
189  uint8_t reserved1[2];
191  uint8_t reserved2[4];
193  uint32_t platform_camera_focus; // This is the value during calibration
198  double rectification_data_qres[54];
199  double rectification_data_padding[26];
200  double cx_qres;
201  double cy_qres;
202  double cz_qres;
203  double kx_qres;
204  double ky_qres;
207  double cx_big;
208  double cy_big;
209  double cz_big;
210  double kx_big;
211  double ky_big;
212  double cx_special;
213  double cy_special;
214  double cz_special;
215  double kx_special;
216  double ky_special;
218  double rectification_data_big[54];
219  double rectification_data_special[54];
222  uint8_t body_serial_number[20];
223  double dx;
224  double dy;
225  double dz;
226  double theta_x;
227  double theta_y;
228  double theta_z;
230  double registration_rotation[9];
231  double registration_translation[3];
235  int32_t nominal_baseline_platform[3]; // NOTE: Signed, since platform camera can be mounted anywhere
238  uint32_t the_last_word;
239  uint8_t reserved3[37];
240  };
241 
242 #pragma pack(pop)
243 
244  struct ds_info
245  {
248  };
249 
250 
251  ds_info read_camera_info(uvc::device & device);
252  std::string read_firmware_version(uvc::device & device);
253  std::string read_isp_firmware_version(uvc::device & device);
254 
258 
259  enum class control // UVC extension control codes
260  {
261  command_response = 1,
262  fisheye_xu_strobe = 1,
263  iffley = 2,
265  stream_intent = 3,
266  fisheye_exposure = 3,
267  depth_units = 4,
268  min_max = 5,
269  disparity = 6,
270  rectification = 7,
271  emitter = 8,
272  temperature = 9,
273  depth_params = 10,
274  last_error = 12,
275  embedded_count = 13,
276  lr_exposure = 14,
278  sw_reset = 16,
279  lr_gain = 17,
280  lr_exposure_mode = 18,
281  disparity_shift = 19,
282  status = 20,
284  lr_gain_discovery = 22,
285  hw_timestamp = 23,
286  };
287 
288  void xu_read(const uvc::device & device, uvc::extension_unit xu, control xu_ctrl, void * buffer, uint32_t length);
289  void xu_write(uvc::device & device, uvc::extension_unit xu, control xu_ctrl, void * buffer, uint32_t length);
290 
291  template<class T> T xu_read(const uvc::device & dev, uvc::extension_unit xu, control ctrl) { T val; xu_read(dev, xu, ctrl, &val, sizeof(val)); return val; }
292  template<class T> void xu_write(uvc::device & dev, uvc::extension_unit xu, control ctrl, const T & value) { T val = value; xu_write(dev, xu, ctrl, &val, sizeof(val)); }
293 
294  #pragma pack(push, 1)
295  struct ae_params // Auto-exposure algorithm parameters
296  {
299  float kp_gain;
300  float kp_exposure;
306  };
307 
308  struct dc_params // Depth control algorithm parameters
309  {
312  uint32_t median_thresh;
318  uint32_t neighbor_thresh;
319  uint32_t lr_thresh;
320 
321  enum { MAX_PRESETS = 6 };
322  static const dc_params presets[MAX_PRESETS];
323  };
324 
325  class time_pad
326  {
327  std::chrono::high_resolution_clock::duration _duration;
328  std::chrono::high_resolution_clock::time_point _start_time;
329 
330  public:
331  time_pad(std::chrono::high_resolution_clock::duration duration) : _duration(duration) {}
332  void start()
333  {
334  _start_time = std::chrono::high_resolution_clock::now();
335  }
336 
337  void stop()
338  {
339  auto elapsed = std::chrono::high_resolution_clock::now() - _start_time;
340  if (elapsed < _duration)
341  {
342  auto left = _duration - elapsed;
343  std::this_thread::sleep_for(left);
344  }
345  }
346  };
347 
348  struct range { uint16_t min, max; };
349  struct disp_mode { uint32_t is_disparity_enabled; double disparity_multiplier; };
350  struct rate_value { uint32_t rate, value; }; // Framerate dependent value, such as exposure or gain
351  struct temperature { int8_t current, min, max, min_fault; };
352  struct discovery { uint32_t fps, min, max, default_value, resolution; }; // Fields other than fps are in same units as field (exposure in tenths of a millisecond, gain as percent)
353  #pragma pack(pop)
354 
355  void set_stream_intent(uvc::device & device, uint8_t & intent);
356  void get_stream_status(const uvc::device & device, uint32_t & status);
357  void force_firmware_reset(uvc::device & device);
358  bool get_emitter_state(const uvc::device & device, bool is_streaming, bool is_depth_enabled);
359  void set_emitter_state(uvc::device & device, bool state);
360 
361  void get_register_value(uvc::device & device, uint32_t reg, uint32_t & value);
362  void set_register_value(uvc::device & device, uint32_t reg, uint32_t value);
363 
364 
365  inline uint32_t get_depth_units (const uvc::device & device) { return xu_read<uint32_t >(device, lr_xu, control::depth_units); }
366  inline range get_min_max_depth (const uvc::device & device) { return xu_read<range >(device, lr_xu, control::min_max); }
367  inline disp_mode get_disparity_mode (const uvc::device & device) { return xu_read<disp_mode >(device, lr_xu, control::disparity); }
368  inline temperature get_temperature (const uvc::device & device) { return xu_read<temperature>(device, lr_xu, control::temperature); }
369  inline dc_params get_depth_params (const uvc::device & device) { return xu_read<dc_params >(device, lr_xu, control::depth_params); }
370  inline uint8_t get_last_error (const uvc::device & device) { return xu_read<uint8_t >(device, lr_xu, control::last_error); }
371  inline rate_value get_lr_exposure (const uvc::device & device) { return xu_read<rate_value >(device, lr_xu, control::lr_exposure); }
372  inline ae_params get_lr_auto_exposure_params(const uvc::device & device, std::vector<supported_option> ae_vec) {
373  auto ret_val = xu_read<ae_params >(device, lr_xu, control::lr_autoexposure_parameters);
374 
375  for (auto& elem : ae_vec)
376  {
377  switch (elem.option)
378  {
380  ret_val.exposure_top_edge = std::min((uint16_t)elem.max, ret_val.exposure_top_edge);
381  break;
382 
384  ret_val.exposure_bottom_edge = std::min((uint16_t)elem.max, ret_val.exposure_bottom_edge);
385  break;
386 
388  ret_val.exposure_left_edge = std::min((uint16_t)elem.max, ret_val.exposure_left_edge);
389  break;
390 
392  ret_val.exposure_right_edge = std::min((uint16_t)elem.max, ret_val.exposure_right_edge);
393  break;
394  default :
395  break;
396  }
397  }
398  return ret_val;
399  }
400  inline rate_value get_lr_gain (const uvc::device & device) { return xu_read<rate_value >(device, lr_xu, control::lr_gain); }
401  inline uint8_t get_lr_exposure_mode (const uvc::device & device) { return xu_read<uint8_t >(device, lr_xu, control::lr_exposure_mode); }
402  inline uint32_t get_disparity_shift (const uvc::device & device) { return xu_read<uint32_t >(device, lr_xu, control::disparity_shift); }
403  inline discovery get_lr_exposure_discovery (const uvc::device & device) { return xu_read<discovery >(device, lr_xu, control::lr_exposure_discovery); }
404  inline discovery get_lr_gain_discovery (const uvc::device & device) { return xu_read<discovery >(device, lr_xu, control::lr_gain_discovery); }
405 
406  inline void set_depth_units (uvc::device & device, uint32_t units) { xu_write(device, lr_xu, control::depth_units, units); }
407  inline void set_min_max_depth (uvc::device & device, range min_max) { xu_write(device, lr_xu, control::min_max, min_max); }
408  inline void set_disparity_mode (uvc::device & device, disp_mode mode) { xu_write(device, lr_xu, control::disparity, mode); }
409  inline void set_temperature (uvc::device & device, temperature temp) { xu_write(device, lr_xu, control::temperature, temp); }
410  inline void set_depth_params (uvc::device & device, dc_params params) { xu_write(device, lr_xu, control::depth_params, params); }
411  inline void set_lr_auto_exposure_params (uvc::device & device, ae_params params) {
412  if (params.exposure_top_edge >= params.exposure_bottom_edge || params.exposure_left_edge >= params.exposure_right_edge)
413  throw std::logic_error("set_lr_auto_exposure_params failed.");
414  xu_write(device, lr_xu, control::lr_autoexposure_parameters, params); }
415  inline void set_lr_exposure_mode (uvc::device & device, uint8_t mode) { xu_write(device, lr_xu, control::lr_exposure_mode, mode); }
416  inline void set_disparity_shift (uvc::device & device, uint32_t shift) { xu_write(device, lr_xu, control::disparity_shift, shift); }
417  inline void set_lr_exposure_discovery (uvc::device & device, discovery disc) { xu_write(device, lr_xu, control::lr_exposure_discovery, disc); }
418  inline void set_lr_gain_discovery (uvc::device & device, discovery disc) { xu_write(device, lr_xu, control::lr_gain_discovery, disc); }
419  inline void set_lr_exposure (uvc::device & device, rate_value exposure) { if (get_lr_exposure_mode(device)) set_lr_exposure_mode(device,0); xu_write(device, lr_xu, control::lr_exposure, exposure);}
420  inline void set_lr_gain (uvc::device & device, rate_value gain) { if (get_lr_exposure_mode(device)) set_lr_exposure_mode(device,0); xu_write(device, lr_xu, control::lr_gain, gain);}
421 
422 
423  #pragma pack(push, 1)
424  struct dinghy
425  {
426  uint32_t magicNumber;
427  uint32_t frameCount;
428  uint32_t frameStatus;
429  uint32_t exposureLeftSum;
435  uint32_t CAMmoduleStatus;
436  uint32_t pad0;
437  uint32_t pad1;
438  uint32_t pad2;
439  uint32_t pad3;
440  uint32_t VDFerrorStatus;
441  uint32_t pad4;
442  };
443  #pragma pack(pop)
444  }
445 
446  namespace zr300
447  {
448  const uvc::extension_unit fisheye_xu = { 3, 3, 2,{ 0xf6c3c3d1, 0x5cde, 0x4477,{ 0xad, 0xf0, 0x41, 0x33, 0xf5, 0x8d, 0xa6, 0xf4 } } };
449 
450  // Claim USB interface used for motion module device
451  void claim_motion_module_interface(uvc::device & device);
452 
453  uint8_t get_fisheye_strobe(const uvc::device & device);
454  void set_fisheye_strobe(uvc::device & device, uint8_t strobe);
455  uint8_t get_fisheye_external_trigger(const uvc::device & device);
456  void set_fisheye_external_trigger(uvc::device & device, uint8_t ext_trig);
457  uint16_t get_fisheye_exposure(const uvc::device & device);
458  void set_fisheye_exposure(uvc::device & device, uint16_t exposure);
459 
460  }
461 }
462 
463 #endif // DS_PRIVATE_H
uint32_t score_max_thresh
Definition: ds-private.h:314
const GLfloat * params
Definition: glext.h:371
uint32_t texture_count_thresh
Definition: ds-private.h:315
uint16_t get_fisheye_exposure(const uvc::device &device)
Definition: ds-private.cpp:444
uint32_t texture_diff_thresh
Definition: ds-private.h:316
uint32_t robbins_munroe_plus_inc
Definition: ds-private.h:311
void set_disparity_mode(uvc::device &device, disp_mode mode)
Definition: ds-private.h:408
uint8_t camera_head_data_little_endian
Definition: ds-private.h:217
GLfixed units
Definition: glext.h:4893
void set_fisheye_external_trigger(uvc::device &device, uint8_t ext_trig)
Definition: ds-private.cpp:429
uint32_t get_depth_units(const uvc::device &device)
Definition: ds-private.h:365
uint32_t VDFerrorStatus
Definition: ds-private.h:440
bool get_emitter_state(const uvc::device &device, bool is_streaming, bool is_depth_enabled)
Definition: ds-private.cpp:384
GLsizei const GLchar *const * string
Definition: glext.h:683
uint32_t exposureLeftDarkCount
Definition: ds-private.h:430
const int STATUS_BIT_WEB_STREAMING
Definition: ds-private.h:21
Sunex DSL 821C.
Definition: ds-private.h:37
Definition: archive.h:12
void xu_read(const uvc::device &device, uvc::extension_unit xu, control xu_ctrl, void *buffer, uint32_t length)
Definition: ds-private.cpp:36
uint32_t exposureLeftSum
Definition: ds-private.h:429
uint32_t exposureRightDarkCount
Definition: ds-private.h:433
const int STATUS_BIT_Z_STREAMING
Definition: ds-private.h:19
void set_register_value(uvc::device &device, uint32_t reg, uint32_t value)
Definition: ds-private.cpp:401
uint8_t get_fisheye_external_trigger(const uvc::device &device)
Definition: ds-private.cpp:424
Laser Driver 2, NO PWM Controls.
Definition: ds-private.h:102
disp_mode get_disparity_mode(const uvc::device &device)
Definition: ds-private.h:367
void force_firmware_reset(uvc::device &device)
Definition: ds-private.cpp:374
void set_lr_exposure_discovery(uvc::device &device, discovery disc)
Definition: ds-private.h:417
uint32_t get_disparity_shift(const uvc::device &device)
Definition: ds-private.h:402
rate_value get_lr_gain(const uvc::device &device)
Definition: ds-private.h:400
58 degree lenses on the AZureWave boards (DS-526)
Definition: ds-private.h:42
Lens either unknown or not needing special treatment.
Definition: ds-private.h:35
GLuint buffer
Definition: glext.h:528
void claim_motion_module_interface(uvc::device &device)
Definition: ds-private.cpp:454
uint8_t get_lr_exposure_mode(const uvc::device &device)
Definition: ds-private.h:401
void set_fisheye_exposure(uvc::device &device, uint16_t exposure)
Definition: ds-private.cpp:449
void set_lr_auto_exposure_params(uvc::device &device, ae_params params)
Definition: ds-private.h:411
uint16_t exposure_bottom_edge
Definition: ds-private.h:303
ae_params get_lr_auto_exposure_params(const uvc::device &device, std::vector< supported_option > ae_vec)
Definition: ds-private.h:372
ds_calibration calibration
Definition: ds-private.h:247
uint32_t camera_head_contents_version
Definition: ds-private.h:205
uint16_t exposure_left_edge
Definition: ds-private.h:304
Pentax cmount lens 25mm.
Definition: ds-private.h:40
ds_head_content head_content
Definition: ds-private.h:246
uint32_t neighbor_thresh
Definition: ds-private.h:318
temperature get_temperature(const uvc::device &device)
Definition: ds-private.h:368
const uvc::extension_unit lr_xu
Definition: ds-private.h:17
time_pad(std::chrono::high_resolution_clock::duration duration)
Definition: ds-private.h:331
void set_emitter_state(uvc::device &device, bool state)
Definition: ds-private.cpp:392
uint32_t camera_head_contents_size_bytes
Definition: ds-private.h:206
void set_temperature(uvc::device &device, temperature temp)
Definition: ds-private.h:409
uint32_t is_disparity_enabled
Definition: ds-private.h:349
Laser Driver 4.1.
Definition: ds-private.h:104
uint8_t get_fisheye_strobe(const uvc::device &device)
Definition: ds-private.cpp:434
void get_register_value(uvc::device &device, uint32_t reg, uint32_t &value)
Definition: ds-private.cpp:397
const int STATUS_BIT_LR_STREAMING
Definition: ds-private.h:20
uint32_t robbins_munroe_minus_inc
Definition: ds-private.h:310
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
uint32_t score_min_thresh
Definition: ds-private.h:313
void set_stream_intent(uvc::device &device, uint8_t &intent)
Definition: ds-private.cpp:362
discovery get_lr_gain_discovery(const uvc::device &device)
Definition: ds-private.h:404
uint32_t exposureLeftBrightCount
Definition: ds-private.h:431
ds_lens_coating_type lens_coating_type
Definition: ds-private.h:234
std::chrono::high_resolution_clock::duration _duration
Definition: ds-private.h:327
uint32_t second_peak_thresh
Definition: ds-private.h:317
void set_depth_units(uvc::device &device, uint32_t units)
Definition: ds-private.h:406
Laser Driver 3.
Definition: ds-private.h:103
GLint left
Definition: glext.h:1947
rs_intrinsics modesThird[2][2]
Definition: ds-private.h:29
void get_stream_status(const uvc::device &device, int &status)
Definition: ds-private.cpp:367
uint16_t exposure_right_edge
Definition: ds-private.h:305
GLsizei const GLfloat * value
Definition: glext.h:693
Newmax 58.9 x 45.9 degs in VGA.
Definition: ds-private.h:46
Visible-light block / IR pass: center 860, width 25nm.
Definition: ds-private.h:80
float mean_intensity_set_point
Definition: ds-private.h:297
ds_info read_camera_info(uvc::device &device)
Definition: ds-private.cpp:332
GLenum mode
Definition: glext.h:1117
rs_intrinsics intrinsicsThird[2]
Definition: ds-private.h:28
uint32_t exposureRightBrightCount
Definition: ds-private.h:434
uint16_t exposure_top_edge
Definition: ds-private.h:302
discovery get_lr_exposure_discovery(const uvc::device &device)
Definition: ds-private.h:403
rate_value get_lr_exposure(const uvc::device &device)
Definition: ds-private.h:371
Video stream intrinsics.
Definition: rs.h:300
IR coating DS4: Innowave 670 cut off.
Definition: ds-private.h:78
ds_emitter_type emitter_type
Definition: ds-private.h:190
void set_lr_gain_discovery(uvc::device &device, discovery disc)
Definition: ds-private.h:418
void set_lr_gain(uvc::device &device, rate_value gain)
Definition: ds-private.h:420
void set_depth_params(uvc::device &device, dc_params params)
Definition: ds-private.h:410
void set_disparity_shift(uvc::device &device, uint32_t shift)
Definition: ds-private.h:416
ds_lens_coating_type
Definition: ds-private.h:75
uint32_t CAMmoduleStatus
Definition: ds-private.h:435
Sunex DSL103: Internal standard.
Definition: ds-private.h:36
rs_intrinsics modesLR[3]
Definition: ds-private.h:27
rs_device * dev
void xu_write(uvc::device &device, uvc::extension_unit xu, control xu_ctrl, void *buffer, uint32_t length)
Definition: ds-private.cpp:41
Sunex DSL 202A.
Definition: ds-private.h:38
GLuint GLsizei GLsizei * length
Definition: glext.h:664
Sunex DSL 924a.
Definition: ds-private.h:41
uint32_t magicNumber
Definition: ds-private.h:426
void set_lr_exposure(uvc::device &device, rate_value exposure)
Definition: ds-private.h:419
const uvc::extension_unit fisheye_xu
Definition: ds-private.h:448
Newmax 67.8 x 41.4 degs in 1080p.
Definition: ds-private.h:44
Visible-light block / IR pass center 859, width 43nm.
Definition: ds-private.h:81
std::string read_isp_firmware_version(uvc::device &device)
Definition: ds-private.cpp:356
std::ostream & operator<<(std::ostream &out, ds_lens_type type)
Definition: ds-private.h:54
50 HFOV 38 VFOV (60DFOV): CTM2/6 Module L&R
Definition: ds-private.h:43
uint8_t get_last_error(const uvc::device &device)
Definition: ds-private.h:370
ds_lens_type lens_type_third_imager
Definition: ds-private.h:184
void set_fisheye_strobe(uvc::device &device, uint8_t strobe)
Definition: ds-private.cpp:439
std::string read_firmware_version(uvc::device &device)
Definition: ds-private.cpp:350
uint32_t exposureRightSum
Definition: ds-private.h:432
dc_params get_depth_params(const uvc::device &device)
Definition: ds-private.h:369
uint32_t frameStatus
Definition: ds-private.h:428
range get_min_max_depth(const uvc::device &device)
Definition: ds-private.h:366
std::chrono::high_resolution_clock::time_point _start_time
Definition: ds-private.h:328
The struct is aligned with the data layout in device.
Definition: ds-private.h:169
void set_min_max_depth(uvc::device &device, range min_max)
Definition: ds-private.h:407
GLuint GLfloat * val
Definition: glext.h:1490
std::string time_to_string(double val)
Definition: ds-private.h:151
GLuint GLuint GLsizei GLenum type
Definition: glext.h:111
void set_lr_exposure_mode(uvc::device &device, uint8_t mode)
Definition: ds-private.h:415
ds_lens_coating_type lens_coating_type_third_imager
Definition: ds-private.h:186
uint32_t frameCount
Definition: ds-private.h:427
Newmax 71.7 x 44.2 degs in 1080p.
Definition: ds-private.h:45


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