Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
ds5-color.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 
6 #include "ds5-device.h"
7 #include "stream.h"
8 
9 namespace librealsense
10 {
11  class ds5_color : public virtual ds5_device
12  {
13  public:
14  std::shared_ptr<uvc_sensor> create_color_device(std::shared_ptr<context> ctx,
15  const std::vector<platform::uvc_device_info>& all_device_infos);
16 
17  ds5_color(std::shared_ptr<context> ctx,
18  const platform::backend_device_group& group);
19 
20  protected:
21  std::shared_ptr<stream_interface> _color_stream;
22 
23  private:
24  friend class ds5_color_sensor;
25 
26  uint8_t _color_device_idx = -1;
27 
28 
29  lazy<std::vector<uint8_t>> _color_calib_table_raw;
30  std::shared_ptr<lazy<rs2_extrinsics>> _color_extrinsic;
31  };
32 
34  {
35  public:
36  explicit ds5_color_sensor(ds5_color* owner,
37  std::shared_ptr<platform::uvc_device> uvc_device,
38  std::unique_ptr<frame_timestamp_reader> timestamp_reader)
39  : uvc_sensor("RGB Camera", uvc_device, move(timestamp_reader), owner), _owner(owner)
40  {}
41 
42  rs2_intrinsics get_intrinsics(const stream_profile& profile) const override;
43  stream_profiles init_stream_profiles() override;
44 
45  private:
46  const ds5_color* _owner;
47  };
48 
49 }
std::shared_ptr< stream_interface > _color_stream
Definition: ds5-color.h:21
Definition: types.h:269
ds5_color(std::shared_ptr< context > ctx, const platform::backend_device_group &group)
Definition: ds5-color.h:11
Definition: ds5-device.h:16
Definition: algo.h:16
std::shared_ptr< uvc_sensor > create_color_device(std::shared_ptr< context > ctx, const std::vector< platform::uvc_device_info > &all_device_infos)
std::vector< std::shared_ptr< stream_profile_interface >> stream_profiles
Definition: streaming.h:104
Definition: types.h:470
Video stream intrinsics.
Definition: rs_types.h:55
Definition: ds5-color.h:33
ds5_color_sensor(ds5_color *owner, std::shared_ptr< platform::uvc_device > uvc_device, std::unique_ptr< frame_timestamp_reader > timestamp_reader)
Definition: ds5-color.h:36
Definition: sensor.h:174