Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
align.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include <map>
7 #include <utility>
8 #include "core/processing.h"
10 #include "image.h"
11 #include "source.h"
12 
13 namespace librealsense
14 {
15  class align : public processing_block
16  {
17  public:
18  align(rs2_stream align_to);
19 
20  private:
22  std::shared_ptr<stream_profile_interface> create_aligned_profile(
23  const std::shared_ptr<stream_profile_interface>& original_profile,
24  const std::shared_ptr<stream_profile_interface>& to_profile);
25  int get_unique_id(const std::shared_ptr<stream_profile_interface>& original_profile,
26  const std::shared_ptr<stream_profile_interface>& to_profile,
27  const std::shared_ptr<stream_profile_interface>& aligned_profile);
28  rs2_stream _to_stream_type;
29  std::map<std::pair<int, int>, int> align_stream_unique_ids;
30  };
31 }
Definition: synthetic-stream.h:41
std::function< void(frame_interface *)> on_frame
Definition: streaming.h:103
Definition: algo.h:16
Definition: align.h:15
rs2_stream
Streams are different types of data provided by RealSense devices.
Definition: rs_sensor.h:38
stream_profile to_profile(const stream_profile_interface *sp)
Definition: stream.h:170
Definition: types.h:637
Definition: processing.h:19
align(rs2_stream align_to)