RsSource.hh
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "DeviceSource.hh"
7 
8 #include <condition_variable>
9 #include <mutex>
10 #include <rs.hpp> // Include RealSense Cross Platform API
11 
12 class RsDeviceSource : public FramedSource
13 {
14 public:
15  static RsDeviceSource* createNew(UsageEnvironment& t_env, rs2::video_stream_profile& t_videoStreamProfile, rs2::frame_queue& t_queue);
16  void handleWaitForFrame();
17  static void waitForFrame(RsDeviceSource* t_deviceSource);
18 
19 protected:
20  RsDeviceSource(UsageEnvironment& t_env, rs2::video_stream_profile& t_videoStreamProfile, rs2::frame_queue& t_queue);
21  virtual ~RsDeviceSource();
22 
23 private:
24  virtual void doGetNextFrame();
26  {
27  return m_framesQueue;
28  };
29  void deliverRSFrame(rs2::frame* t_frame);
30 
31 private:
34 };
void deliverRSFrame(rs2::frame *t_frame)
Definition: RsSource.cpp:79
RsDeviceSource(UsageEnvironment &t_env, rs2::video_stream_profile &t_videoStreamProfile, rs2::frame_queue &t_queue)
Definition: RsSource.cpp:19
virtual ~RsDeviceSource()
Definition: RsSource.cpp:26
rs2::frame_queue * m_framesQueue
Definition: RsSource.hh:32
rs2::frame_queue * getFramesQueue()
Definition: RsSource.hh:25
static void waitForFrame(RsDeviceSource *t_deviceSource)
Definition: RsSource.cpp:74
virtual void doGetNextFrame()
Definition: RsSource.cpp:28
rs2::video_stream_profile * m_streamProfile
Definition: RsSource.hh:33
void handleWaitForFrame()
Definition: RsSource.cpp:51
static RsDeviceSource * createNew(UsageEnvironment &t_env, rs2::video_stream_profile &t_videoStreamProfile, rs2::frame_queue &t_queue)
Definition: RsSource.cpp:14


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:41